Hi I am developig a website and when I try to see the page source in the explorer I have houndreds of lines about this:
















 

How can I do not to show all of this? Thanks 

0
miguelangel197
7/10/2008 10:31:10 AM
📁 asp.net.state-management
📃 8807 articles.
⭐ 0 followers.

💬 3 Replies
👁️‍🗨️ 276 Views

These are all the internal workings of ASP.NET. It's not something you have any control over. You can turn off ViewState, but if you do that, many controls will stop working like you expect them to.

0
MelvynHarbour
7/10/2008 10:56:59 AM

 But is there another way, because the html code is very large. It would be possible to store in a session state?

0
miguelangel197
7/10/2008 11:40:24 AM

Yes, you can. In cases where the viewstate gets very large, developers overwrite the viewstate mechanism to store it on the server or on a database instead of sending to the client in the html.

 Just google "Storing asp.net viewstate in session" or "storing asp.net viewstate in database" and you should get several results showing you how.


Tarique
0
tarique_s
7/14/2008 4:52:25 AM