Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to know whether there are other options other than runat="server".
i know that runat="client" works in xfa. But does it work in Asp.Net?
Sorry i am completely new to this field. So please Help!!!
Posted

Somewhat strange and cryptic notation, I agree. It would be clear if runat="client" worked, but, to best of my knowledge, it does not in ASP.NET, or it would be a bogus. I cannot explain such assymmetric notation and I doubt the explanation would be rational.

The idea of running at client is completely different. Everything written in ASP.NET page is generated in response to HTTP request and sent to client in HTTP response of the server. It can contain any MIME type, any content at all, and, first of all, HTML page with any scripts which are executed on client site as usual. That's basically it. Everything else is just the tools for convenience of writing this contents and scripts; for example, you can register client-side script on ASP.NET page and the like, but you can simply write some script code, use other scripts and libraries like jQuery, and so on, so forth.

—SA
 
Share this answer
 
Comments
AshishChaudha 4-Jan-13 5:47am    
my +5!
Sergey Alexandrovich Kryukov 4-Jan-13 6:54am    
Thank you, Ashish.
—SA
scarletwitch1990 29-Jan-13 3:38am    
Thank you
Sergey Alexandrovich Kryukov 29-Jan-13 3:44am    
You are very welcome.
Good luck, call again.
—SA
scarletwitch1990 29-Jan-13 3:51am    
Actually i do...the link is below:
http://www.codeproject.com/Questions/535631/ValueProviderplusgivesplusanplusexception

could u help me with it??
No you dont have any other option than runat="server".
If you take a look at the following links you will have an answer:
Why does ASP.NET still require runat="server" everywhere?[^]
Runat='client' vs runat[^]
Why does asp.net webforms need the runat server attribute[^]
Why runat server for asp.net part2/[^]

Goodluck,
OI
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 4-Jan-13 7:39am    
Useful references, a 5.
—SA
scarletwitch1990 29-Jan-13 3:38am    
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900