472,096 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

regarding viewstate

Hi,
I am developing an Web application in ASP.NET with C# .when i run the
project on local machine i.e localhost the default page get loaded.
when i view its source code i get :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Digicertify.com-Login</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<LINK href="/images/StyleSheet.css" type="text/css" rel="stylesheet">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="login.aspx" language="javascript"
onsubmit="ValidatorOnSubmit();" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwxMjgzOTMxODMzOzs+hzlNUUBk1OBZE8b7exSs0NN br/M=" />

<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
<!--outer table-->
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="50%"></td>
<td width="778">
<!--main table-->
<table borderColor="#cccccc" cellSpacing="0" cellPadding="0"
width="100%" align="center"
border="1">
<tr>
<td width="100%">
<!--header table-->

My problem is that how can we remove the tag that follows in the above
source code i.e.the view state tag should not appear in the html source
file.
Apart from that i have disabled all view state properties.......

<input type="hidden" name="__VIEWSTATE"
value="dDwxMjgzOTMxODMzOzs+hzlNUUBk1OBZE8b7exSs0NN br/M=" />

Kindly suggest me the remedy ........
thanks in advance.
regards
Irshad Ahmad.
Jun 9 '06 #1
1 1091
Hi Irshad,

Thank you for your post.

Based on my understanding, the question is: Why the hidden field
__VIEWSTATE is still generated while ViewState is disabled? If I've
misunderstood anything, please feel free to post here.

Scott Mitchell has an exact excellent article on this question:

#Question: I set my page's EnableViewState property False; why is there
still a __VIEWSTATE hidden form field?
http://scottonwriting.net/sowblog/posts/1608.aspx

Hope this helps.
Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by aroraamit81 | last post: by
reply views Thread by Amrit | last post: by
reply views Thread by alagan | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.