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 asp net objects?

0 Answers  


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

0 Answers  


How do u optimize a query in asp.net?

0 Answers   MCN Solutions,


Define application state variable and session state variable?

0 Answers   UGC Corporation,


What is master page in dtp?

0 Answers  






What is the use of ASP.NET routing?

0 Answers  


Where does the Web page belong in the .NET Framework class hierarchy?

1 Answers   Perot Systems, Visual Soft,


can sn.exe can be used before gacutil.exe

2 Answers   Accenture,


What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

1 Answers   Siebel Systems,


How many Garbage Collectors are there for one Application or one Page

1 Answers   Emphasis,


What is difference between session and cookie?

0 Answers  


What are the two Layouts supported by a Web form in ASP.NET?

0 Answers   MCN Solutions,


Categories