Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Why we use runat="server"
November 03, 2011
Hi Friends My Question is that why we use runat="server" in asp.net what is the role of it.
Posted Date: November 03, 2011 Points: 20
I understand your point, but the importance of [runat="server"] is more for consistancy and extensibility. If the developer has to mark some tags some ways (ie an "asp:" prefix) and in other cases using runat, then it creates more confusion. Also, this simplifies what is sent directly to the user agent as a Response.Write and what needs to be parsed by the ASP.NET engine. What if some user agent of the future has a name collision with one of the ASP.NET tags, it would be difficult otherwise to tell ASP.NET to ignore a tag.
Posted Date: November 04, 2011 Points: 20
Please read the following forums
Posted Date: November 18, 2011 Points: 20
You cannot access your control on server side until runat = server is not specified
To post reply
Related Questions Related Questions
Findcontrol iframe without giving runat server
How to copy a file from server to local system
To save image in the SQL server.
Image store in Database SQL SERVER
How to get the current row in SQL Server 2005
Sql Server Concepts with syntax and Examples
Server.Transfer vs Server.Execute
Unable to Connect to the ASP.NET Development Server
session expired in hosting server
Have doubt in store procedure in sql server
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend