Re: How we define runat="server"
- From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Mar 2007 09:00:19 -0500
You do not have to use runat="server" on everything. You can, if you are merely working client side, use HTML controls rather than server controls. But, as soon as you try to fill the control from code behind, you will have to add the runat. For server controls, you do have to set runat, as the command has to be rendered and control servers side. This has to do with the inheritance tree of the control and how it is internally set up.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*********************************************
Think outside the box!
*********************************************
<gunjan.mait@xxxxxxxxx> wrote in message news:1174396792.663117.68650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi,
i wanted to know the exact use of runat="server" which is being used
is ASP.NET
why we every time need to use it, even when i want to do the work at
client side? How to do simple processings like displaying some message
at client side only without hitting server?
what is the use of onclick, as we have to use onserverclick always?
why it is not possible to do the things without using runat="server"
in script?
what is the exact difference between coding at client-side and coding
at server-side?
In ASP.NET, there are two forms design form and code-behind form and
several controls.
what is the difference between HTML and webforms controls?
because we hav to include runat="server" while dealing with HTML
controls.
.
- References:
- How we define runat="server"
- From: gunjan . mait
- How we define runat="server"
- Prev by Date: Re: How to get a list of only the files on an ftp server
- Next by Date: Re: reporting using SQL Server security
- Previous by thread: Re: How we define runat="server"
- Next by thread: Re: How we define runat="server"
- Index(es):
Relevant Pages
|