This is a multi-part message in MIME format.
------=_NextPart_000_0019_01C1C5A3.1CCAD300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MessageThe quick workaround for the ViewState problem would be to add
EnableViewStateMac=3D"false" to the page attribute in the posted page,
page2.
<%@ Page EnableViewStateMac=3D"false" %>
I was hoping it would not matter because you said you disabled
ViewState. Maybe it is case sensitive and should be EnableViewState
with a capital "E".
Doug
<Francois_Vallieres@I...> wrote in message
news:153987@a..._professional...
Hi Douglas,
Thanks for your reply. I try your suggestion, but it gives me that
message error when I submit page1 for page2:
The View State is invalid for this page and might be corrupted.
What I found weird is that I put enableViewState=3D"False" at the two
pages, but when the page is create to the client, I still have something
like that::
<input type=3D"hidden" name=3D"__VIEWSTATE"
value=3D"dDwxMzc1NzUyMDY1Ozs+ae14ipLPuwWtKN3mi8/acUYfA+Y=3D" />
-------------------------------------------------
Francois Vallieres
Observatoire des Sciences et des Technologies
http://www.ost.qc.ca
-----Original Message-----
From: Douglas J. Badin [mailto:DJBadin@m...]
Sent: 6 mars, 2002 20:52
To: ASPX_Professional
Subject: [aspx_professional] RE: Page1.aspx to Page2.aspx
Tri this:
Wrap your Web Forms Controls in a Form tag with runat=3D"server".
Wrap that Form with a Form tag without runat=3D"server" but with
action=3D"Page2.aspx"
<FORM action=3D"Page2.aspx">
<FORM runat=3D"server">
Web Form Controls
</FORM>
</FROM>
Doug
-----Original Message-----
From: Francois_Vallieres@I...
[mailto:Francois_Vallieres@I...]
Sent: Wednesday, March 06, 2002 4:21 PM
To: ASPX_Professional
Subject: [aspx_professional] Page1.aspx to Page2.aspx
Hi,
I've done a project working well with beta2, but I've install the
final release and it's not working anymore. My problem is that I'm
confused about the way to go from one aspx page to another. Here is
what I'm trying to do:
Page1.aspx got some input box and list box that the users fill and
call Page2.aspx to produce a report.
In ASP, I would put in the Form tag action=3DPage2.aspx to go from
Page1 to Page2 to produce a report. I don't want the "viewstate", I
need to go page2.aspx.
In ASPX, If I don't put the tag Form runat=3Dserver, it's not
working, because I'm using Web Forms control (but in beta2, it was
working). When I run my program, the action command of Form tag is put
back to Page1.aspx (but I've put Page2.aspx). It's not possible to go to
another page and process the different value to generate a new page.
On beta2, the information in action command of the Form tag was not
change.
I use on another project one page with the viewstate, and it's
interesting, but it's not always appropriated.
So how it should be done?
Thanks
P.S. I disabled the viewstate on each page.
-------------------------------------------------
Francois Vallieres
Observatoire des Sciences et des Technologies
http://www.ost.qc.ca