thanx, but, my problem is more complex than that.
check this out:
page1
|_| -> A couple of buttons, that do the ordinary
postback .net stuf
->but for one button I want the user to stay on the
current page +send the form information to a separate page
in another browser window.
ie its not just a question of processing the data in
another webform, but keep the old form alive,
and get another one started.
Page2 is an excel presentation of the data in page1,
and i want the user to be able to look att both
at the same time.
the first way (standard HTML form)
sounds like a lot of hassle as I have a table
that i build dynamically, containing a couple of
servercontrols
It might be possible, but surely
there must be a simpler way to make page2 treat the request
as a post request and not drop the form variables?
-----Original Message-----
There are a couple of ways to do this. For a form post,
switch the form inquestion back to a standard HTML form and then pull from
the requestcollection. It is also possible to transfer on the server
and use viewstateto pull data (and better in a truly .NET enable environ).
In your example, you would be best to either make the
paradigm shift to .NET(ie, form and handler in same page (can be done rather
easily withcontainers like panels)) or switch the form to a client
side standard HTMLform and pull from request.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge
************************************************* *********
**********************
Think Outside the Box!
************************************************* *********
**********************
"Magnus" <ho*******@hotmail.com> wrote in message
news:0b****************************@phx.gbl... Hi!
This is my problem:
I want to go from page1 to page2,
and to get all the form variables from page1
to page2.
I have turned the viewstate and the sessionstate off,
and i really just want to get these variables the
oldfashioned way (ie via the request.form collection)
This is how im trying to do this:
I have a javascript that fires on page1 that
changes the action of its form to page2 and then submits
the page.
//page1 javascript
function test()
{
Form1.target="_blank";
Form1.action="page2.aspx";
Form1.submit();
}
but when i get to page2, the form collection
from page1 is gone...
+ the request object says i used method=GET...
can someone help me out here plz
.