.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

Given the following methods of the ASP .Net Page class, in which of them would you attach an event handler to an event published by a control on the web page?

Posted By :Amit Mehra     Posted Date :August 05, 2009    Points :10   Category :ASP.Net 
OnInit()

You can also find related Interview Question to Given the following methods of the ASP .Net Page class, in which of them would you attach an event handler to an event published by a control on the web page?  below: 

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

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

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...)

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...)

How can we call javascript function in page load event?

  
this.button.Attributes.Add("OnClick",return functionname(););
(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 do I detach an event handler?

  
In the same way you attach an event handler, except using the -= operator.
For example:

button1.Click -= new EventHandler (button1_Click); (More...)

Where do you add an event handler?

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

In ASP.NET page framework an automatic way to associate page events and methods is

  
AutoEventWireup attribute of the Page directive is set to true (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