Click here to Skip to main content
15,910,787 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,
In a webform, I have a textbox. The text in a textbox should not be seen in the rendered html when we go for view source (right click on webpage -> View source).
Is there any way to achieve this?
Any help appreciated.

Thanks,
Lok.
Posted
Comments
Praveen Kumar Upadhyay 8-Jan-15 6:36am    
Set the view state off for that control.

In ASP.NET any control that has Visible set to false at the server side will not render to the client at all...
 
Share this answer
 
Set your control visibility to true if it is not or set its view state property off.
 
Share this answer
 

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