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 caching,session? when & what is used mostly in which situtations, how they r implemented in real time? tell with example?

1 Answers   Satyam,


Please brief not about xsd,xslt & xml?

0 Answers  


What is __ requestverificationtoken?

0 Answers  


Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice

2 Answers   Syntel,


How can I open ashx file in mobile?

0 Answers  






Can session variables be accessed from code-behind?

2 Answers   Microsoft, RMS,


What is difference between view state and session state?

0 Answers  


whats the best method to cal id in javascript

2 Answers  


I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?

1 Answers   FutureTech,


What is caching? What are the different types of caching?

6 Answers  


How do you change the session time-out value?

0 Answers   TryTechnicals Pvt Ltd,


What are the different types of caching ?

1 Answers  


Categories