VIEWSTATE QUESTION

  • Thread starter Thread starter Savas Ates
  • Start date Start date
S

Savas Ates

I wantto submit my form to another page without using viewstate. I used
EnableViewState="false" in my page directive


<%@ Page EnableViewState="false" Language="vb" AutoEventWireup="false"
Codebehind="Default.aspx.vb" Inherits="DATAGRID._Default"%>

<form id="Form1" method="post" runat="server" action="WebForm1.aspx" >
<input type="text" name="Urunadi" id="Text1" runat="server">

<input type="submit" value="GOSTER" id="Submit1" name="Submit1"
runat="server">
</form>

When I click submit button it doesnt submit it to webform1.aspx . It does
autopostback. How can i dasable it ?
 
I'm not sure how viewstate plays a role at all here?
I think if you remove the runat="server" from the form, it will submit the
appropriate page.
 
Back
Top