Html Server Controls
If a add runat="server" attribute in a Html control then what effect or changes will occure . what will this control execute at .net server or not.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Feb 21, 2015, 1:52 AM
Nanhe SiddiquePosted Feb 20, 2015, 11:02 PM
the parser simply ignores all text (tags or no tags) unless it is a tag with the
runat=serverattribute . ASP.NET is designed to allow separation of the web designers .aspx page and the web developers aspx.cs or aspx.vb , the web designers can use their own web designer tools to place HTML and client-side JavaScript without having to know about ASP.NET specific tags or attributes.so, if you use runat=server on html control it work fine. but on code behind for accessing this control you have to write.
controlID.Attributes.Add("propertirs","value");