Update Pages in ASP.Net

  • Thread starter Thread starter Jeremy Ames
  • Start date Start date
J

Jeremy Ames

In classic ASP, when you wanted to process information on the server, you
could create an ASP page that had no HTML elements and do your processing
and then just redirect the page.

I am trying to do this with ASP.Net, but I am not having much luck. When I
try to redirect the page, the querystring and form collections of the
request object have problems.

What is the best way to accomplish this with ASP.Net?
 
Jeremy,

Have you tried to use the Transfer method on the Server property of the
page? It should do what you want.

How are you doing it now?
 
I have tried using the Server.Transfer method, but when I go to the next
page, my form or querystring is not sent. I have tried posting information
on the form and in the querystring, but it does not receive it. In fact,
when I use the querystring approach, the address from the update page is
still shown in the address bar.

message Jeremy,

Have you tried to use the Transfer method on the Server property of the
page? It should do what you want.

How are you doing it now?
 
Lookup the Reference Page directive, using it allows you to refer back to a
pages property values after you have done a transfer, so in the processing
page you can set your properties and then transfer to the next page and
recieve them.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
 
Back
Top