Home Blog

C# Program to Find Largest Number in an Array

0
c# program to find largest number in an array

This blog post shows how to write a c# program to find the largest number in an array, and find the largest two numbers in a given array.

Input | arr = { 31, -41, 26, 59, -53, 58, 97, -93, -23, 84 };
Output | First Max: 97, Second Max:84

C# Program to Find Largest Number in an Array

Find the 3rd largest number in an array

Conclusion
I hope you like the article based on C# interview questions – find the largest number in an array. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Facebook Home Page Html Code

0
facebook home page html code

Keywords: facebook home page html code, html code for facebook home page 

Facebook Style Home Page Design

Facebook is one the top and most visited social networking website in the world. Every beginner and experienced website developer wanted to know how to design a facebook style home page in HTML and CSS. This example can help you to build a clone of facebook home page.

Facebook Home Page Body Sections

  • fb-header: This section basically divided into two sections left and right section. I have placed the logo on the left section and Login and Password on the right section.
  • fb-body: This section basically divided into two sections left & right section. I have placed Map image on left section and Registration form on the right section.
  • fb-footer: In this section, I have used language selection link, Copyright link and Designed By link.

Facebook Page HTML Code

Find the below html code for facebook home page with CSS:-

Download Code for Facebook Style HomePage

Conclusion
I hope you like the article based on how to design facebook home page in HTML and CSS. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

ASP NET Page Life Cycle Events with Example

0
asp net page life cycle with example

This article provides a brief explanation of the what is asp net page life cycle events with example, asp net application lifecycle and after that its events. Often in asp.net interviews, you are asked to explain the Lifecycle of ASP.NET Page during its first request, as well as during Postback.

What is ASP NET Page Life Cycle

When ASP.Net page is called, that goes through a particular life cycle. This is done before the response is sent to the user. There are a series of steps which are followed for the processing of a life cycle of asp net page.

These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering.

Following are the different stages of an ASP.NET page:

asp net page life cycle with example

  • Page Request
  • Start
  • Initialization
  • Load
  • PostBack Event Handling
  • Rendering
  • Unload

ASP NET Application Life Cycle

When an ASP.Net application runs, there are a series of steps which are carried out. These series of steps make up the lifecycle of the application.

Let’s look at the various stages of a typical asp net application lifecycle:-

asp net application life cycle

  1. Application Start
  2. Object Creation
  3. HttpApplication Creation
  4. Dispose
  5. Application End

ASP NET Page Life Cycle Events

Following are the page lifecycle events:

  • PreInit()
  • Init()
  • InitComplete()
  • PreLoad()
  • Load()
  • ControlEvents()
  • LoadComplete()
  • PreRender()
  • PreRenderComplete()
  • SaveStateComplete()
  • RenderComplete()
  • Unload()

asp net page life cycle

ASP NET Page Lifecycle with Example

Now for better understanding, let’s look at the life cycle of asp net page with an example:-

Output

  • When a page request sent to the web server initially.

asp net page life cycle events 1

  • Similarly, we will check On button’s click event

asp net page life cycle events 2

Conclusion
I hope you liked this article to understand asp net page life cycle, asp net application lifecycle, and its events. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

ASP NET Interview Questions in PDF Download

1
asp net interview questions in pdf

In this article, we provide you with a list of asp net interview questions in pdf format for fresher and experience dot net developer. Download interview questions on asp net pdf.

ASP NET Interview Questions in PDF Download

There are hundreds of questions you could ask to determine a job candidate’s fit for an ASP.NET related position. Find the list of top frequently asked ASP.NET interview questions are given below.

  • What is the difference between Classic ASP and ASP.Net?
  • Tell me the benefits of using ASP.Net?
  • What is a Cookie?
  • In which event are the controls fully loaded?
  • How can we identify that the Page is PostBack?
  • What is life span for items stored in view state?
  • What is the sequence in which ASP.NET events are processed?
  • How does ASP.NET maintain state in between subsequent request?
  • What is event bubbling?
  • How do we assign page-specific attributes?
  • How do we ensure view state has not tampered?
  • What is the use of @ Register directives?
  • Describe the use of Smart Navigation property?
  • What is AppSetting Section in “Web.Config file?
  • Where is the ViewState information stored?
  • What is the use of @ Output Cache directive in ASP.NET?
  • How can we create custom controls in ASP.NET?
  • How many types of validation controls are provided by ASP.NET?
  • Can you explain “AutoPostBack”?
  • How can you enable automatic paging in DataGrid?
  • What is the use of “GLOBAL.ASAX” file?
  • What is the difference between “Web.config” and “Machine.Config”?
  • What is a SESSION and APPLICATION object?
  • Describe types of Authentication in ASP.net?
  • What is Global Assembly Cache?
  • What are Strong Names?
  • When does a session actually start?
  • What are the various ways to send content from one page to another?
  • How many times will Application_Start event be fired if there are 10 users requesting your application?
  • Which is the parent class of the Web server control?
  • What are the advantages of the code-behind feature?
  • How do you sign out from forms authentication?
  • Why do you use the App_Code folder in ASP.NET?
  • What is an ASP.NET Web Form?
  • What is IIS? Why is it used?
  • What is Query String? What are its advantages and limitations?
  • How can you display all validation messages in one control?
  • Which two new properties are added in ASP.NET 4.0 Page class?
  • Difference between Server.Transfer and Response.Redirect?
  • What is a round trip?
  • What is the difference between Session cookie and a Persistent Cookie?
  • Which is the parent class of the Web server control?
  • What is the difference between Custom Control and User Control?
  • What is ViewState?
  • Describe Authentication and Authorization in asp.net?
  • What are the different ways to send data across pages in Asp.net?
  • What is the default timeout for a cookie?
  • Difference between HTML and Web server controls?
  • Difference between Server-side scripting and Client-side scripting?
  • How do you create a permanent cookie?
  • Which method do you use to redirect the user to another page without performing a round trip to the client?
  • What are the major events in Global.Asax file?
  • What tag do you use to add a hyperlink column to the DataGrid?
  • Which namespace is needed to implement debug and trace?
  • What is the difference between a Label control and a Literal control?
  • What is Role-based security?
  • Can we disable ViewState, If, yes how?
  • Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
  • What base class do all Web Forms inherit from?
  • How to Manage State in ASP.Net?
  • Tell me what is Remoting?
  • What is the difference between System.String and System.StringBuilder classes?
  • What are the differences between Server-side and Client-side code?
  • Is string a value type or a reference type?
  • What are the various security methods which IIS Provides apart from .NET?
  • What are Master Pages in ASP.NET?
  • What is WSDL?
  • What file extension does ASP.NET use for Web Services?
  • What are the standard event handler parameters for ASP.NET pages?
  • What is State management?
  • What are three programmatic improvements of ASP.NET over ASP?
  • Write three common properties of all validation controls?
  • Which property can be used to make a control post immediately to the server upon an event?
  • What base class do all Web Forms inherit from?
  • How do you identify a Master Page?
  • What namespaces are necessary to create a localized application?
  • What is Side-by-Side Execution?
  • How to view an assembly?
  • What are the layouts of ASP.NET Pages?
  • What is a multilingual Website?
  • What’s the difference between Codebehind=”MyCode.aspx.cs” and Src=”MyCode.aspx.cs”?
  • How many classes can a single .NET DLL contain?
  • What methods are fired during the page load?
  • Difference between in-proc and out-of-proc?
  • What is the difference between HTTP-Post and HTTP-Get?
  • How do you turn off cookies in one page of your asp.net application?
  • What’s the difference between Response.Write () and Response.Output.Write()?
  • What are the different types of Caching?
  • What is the difference between page level caching and fragment caching?
  • Which class deals with the user’s locale information?
  • Which template is to be provided in the Repeater control in order to display a data?
  • What is the difference between a Thread and a Process?
  • What’s the difference between the Debug class and Trace class?
  • What are the components of the web form in ASP.NET?
  • What does assert () do?
  • What is a cookieless session? How does it work?

asp net interview questions in pdf download free

Conclusion
I hope you like the list of asp net interview questions in pdf format. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Form Validation in JavaScript with Example

0
form validation in javascript with example

Keywords | form validation in javascript code, form validation in javascript with example, form validation in javascript, registration form validation in javascript source code

Form Validation in JavaScript with Example

Data validation is the process of ensuring that user input is clean, correct, and useful. Typical validation tasks are:

  • An email validation
  • Required field validation
  • Date validation
  • Website URL validation
  • File upload validation
  • Dropdown validation

Registration Form Validation in Javascript Source Code

The following form validation in javascript example code will demonstrate you how to form validation in javascript with error messages. Find the source code below:-

Download Code

What do you think?

I hope you liked this article based on how to form validation in javascript with error messages. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

STAY CONNECTED

11,019FansLike
66FollowersFollow
50SubscribersSubscribe

Knowledge Bytes

Ektron CMS Tutorial

This article provides a brief explanation of Ektron CMS, Ektron cms400.net, and Ektron cms features. Ektron CMS Tutorial - Basic Concepts Let's have a look into the basic...