Click here to Skip to main content
12,077,333 members (42,662 online)
Rate this:
 
Please Sign up or sign in to vote.
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 3-Jan-13 23:04pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
AshishChaudha 4-Jan-13 5:47am
   
my +5!
   
Thank you, Ashish.
—SA
sarahnimy 29-Jan-13 3:38am
   
Thank you
   
You are very welcome.
Good luck, call again.
—SA
sarahnimy 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??
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
   
Useful references, a 5.
—SA
sarahnimy 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160212.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100