.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

If there is a button on asp page what is the order of event when button is Clicked?Page_Load or Button_Click?

Posted By :Rajshree     Posted Date :September 14, 2010    Points :10   Category :ASP.Net 
Page_Load() would fire first than Button_Click

You can also find related Interview Question to If there is a button on asp page what is the order of event when button is Clicked?Page_Load or Button_Click?  below: 

In the page load event I assigned DropDownList's DataSource property to a valid list. On the submit button click.. the same DataSource property is coming as null. Why?

  
As ViewState is not storing the DataSource property.

We have to use Items property of DropDownList to get the items back. (More...)

Suppose you want a certain ASP.NET function executed on MouseOver for a certain button. Where do you add an event handler?

  
Add an OnMouseOver attribute to the button. Example: btnSubmit.Attributes.Add("onmouseover","someClientCodeHere();"); (More...)

Is it possible make a call to server side event of any button using javascript?

  
Yes, it's possible. You can use __doPostBack() function to call server side event.
(More...)

Which method is used to generate the click event of the Control class for the Button control in C#?

  
The PerformClick() method of the Button class is used to generate the Click event of the System.Windows.Forms.Control class. (More...)

How to clear a datagrid on a button click?

  
You need to Clear the DataSource of the dadaGrid.
So try this: dataSet1.Clear();
dataGrid1.DataSource = dataSet1.TableNameHere.DefaultView;
or
C#: dataGrid1.DataSource = null;
VB: dataGrid1.DataSource = nothing (More...)

Which is the first event in page life-cycle Event?

  
Page_PreInit is the First event that will be executed on the page. (More...)

What is the difference between Page_init and Page_Load event?

  
Page_init - This is the first event to occur in the lifecycle of ASP.NET. This event fires only the first time the page is loaded and from the next time on a postback Page_init is not fired.

Page_Load - This is the event where most of our work will be done, this event occurs
when all objects/controls on the page are created and will be available for use. (More...)

How to define a button USING XAML?

  
To define a button in WPD using XAML use the following syntax,



Example:-


Here the

which event will perform first when a content page is loaded ?

  
Master page controls Init event is performed first when a content page is loaded. (More...)

Which is the first event in page life-cycle Event?

  
This Preinit event will first check this things Check the IsPostBack property to determine whether this is the first time the page is being processed. Create or re-create dynamic controls. Set a master page dynamically. Set the Theme property dynamically. Read or set profile property values. (More...)

How to Change the BackGround Color of a Button dynamically in WPF?

  
System.Windows.Controls.Button b = new System.Windows.Controls.Button();

b.Content = "OK";

b.Background = System.Windows.Media.Brushes.Red;
(More...)

How can we call javascript function in page load event?

  
this.button.Attributes.Add("OnClick",return functionname(););
(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend