VIEWSTATE QUESTION

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 ?
 
M

Marina Levit [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top