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

What is a url string?

0 Answers  


About session modes

3 Answers   Wipro,


In what languages in ASP written?

4 Answers   Microsoft,


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

0 Answers   EDS,


Explain about Automatic resource management?

0 Answers  






Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

0 Answers  


What is application state?

0 Answers  


What is a form tag?

0 Answers  


What does this do? sn -t foo.dll

3 Answers  


What I need to create and run an asp.net application?

0 Answers  


What's a bubbled event?

3 Answers   Siebel,


Explain the life cycle of an ASP .NET page

2 Answers   HCL, Surya Software,


Categories