I assume you are talking about cases where you are in HTML view and typing
in the tags yourself because if you were using the design mode and "drawing"
the controls, runat=server is automatically placed in the code for you.
When you are in HTML mode, you will get intelliSense help with closing tags
and attribute lists but it's not going to assume anything about the values
of those attributes. I agree that it would be nice (since I can't imaging
having a server control that doesn't runat the server!), but the HTML view
is just not setup that way.
"Abhishek Srivastava" <ab*****************@nospam.net> wrote in message
news:OF****************@TK2MSFTNGP10.phx.gbl...
Hello All,
While developing an asp.net application, I realized that the
runat='server attribute is not default for the asp.net server controls.
I have to explicitly put it everytime against each control.
Why is this the case? shouldn't the runat='server' be default?
regards,
Abhishek.