What is the result when the Web Form containing the
following line is complied and executed?
<asp:Button id=?thebutton? onClick=?theEvent? />

a) The button control is created; theEvent is the click
event handler.
b) Compiler error; the control must be set to runat=?server?.
c) Compiler error; onClick is not a valid attribute.
d) Runtime Exception; the control must be set to runat=?server?.

Answers were Sorted based on User's Feedback



What is the result when the Web Form containing the following line is complied and executed? &..

Answer / abbaas

c

Is This Answer Correct ?    2 Yes 0 No

What is the result when the Web Form containing the following line is complied and executed? &..

Answer / swapna

d) Runtime Exception; the control must be set to
runat=?server?.

Is This Answer Correct ?    2 Yes 2 No

What is the result when the Web Form containing the following line is complied and executed? &..

Answer / niraj pandey

b)Compiler error; the control must be set to runat=?server?.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

When Garbage Collector runs in an Application? 1)Application is running form more than 30 min. 2)On every 1/4th milisecond 3) Randomly 4) Application is running on low of memory

2 Answers   PCS,


what is webservices. howit is use in our project .

4 Answers   TCS,


Difference between viewstate, cache, session

2 Answers   Mind Tree,


what is the generics and where used generics in your project?

3 Answers   CTC,


How can you implement the postback property of an asp.net control?

0 Answers  






You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?

6 Answers   TCS,


Can the dictionary object be created in client?s scope ?

0 Answers   Satyam,


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

0 Answers  


What does WSDL stand for?

10 Answers   Siebel Systems,


Who will magage un-managed code?

7 Answers   HP,


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

0 Answers  


What is dynamic web page with example?

0 Answers  


Categories