Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to know that why asp.net web forms have no complete control over html tags. explain with one example please.

Thanks in advance
Posted
Updated 10-May-17 5:02am
Comments
bbirajdar 16-Jul-13 9:40am    
I want to know why you think that - "asp.net web forms have no complete control over html tags" ... Explain with one example please ....
Nirav Prabtani 16-Jul-13 9:49am    
you have wrong concept in your mind...:)
AmitGajjar 17-Jul-13 1:41am    
what you mean by complete control ?

it's very simple
HTML part:
ASP.NET
<img src="img.jpg" id="imgPersonal" runat="server"></img>


C# part:
C#
imgPersonal.Visible=true;


you can control html tags via this method.


Behnam Mohammadi
 
Share this answer
 
In ASP.NET you can give HTML elements an ID (ie. ID="htmlButton" and also set that it to runat="server". Then you have access to it in the code behind C# or VB.NET.

See Forum Discussion about it.
 
Share this answer
 
v2
ASP.Net web forms does have control over the html tags.
 
Share this answer
 
Comments
JasonMacD 17-Jul-13 9:01am    
This is not a solution.

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