473,412 Members | 2,067 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Update Pages in ASP.Net

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?
Nov 15 '05 #1
3 1080
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jeremy Ames" <yo******@here.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
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?

Nov 15 '05 #2
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.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jeremy Ames" <yo******@here.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
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?


Nov 15 '05 #3
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>
----------------------------------------------

"Jeremy Ames" <yo******@here.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
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?

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Jim | last post by:
Hi, Let me explain how I'd generally do things. For a page where the user edits data, I'd generally call it something like editfred.php (for example), the page which updates the data would be...
16
by: robert | last post by:
been ruminating on the question (mostly in a 390/v7 context) of whether, and if so when, a row update becomes an insert/delete. i assume that there is a threshold on the number of columns of the...
2
by: tdi1686 | last post by:
(Using a jet 4 oledb connection to an access 2000 db) I have a site that is programmed using Dreamweaver MX ASP.NET VB. I have several pages that update, and insert stuff into the access DB. ...
17
by: Zvi Danovich | last post by:
Hi, I am a newby in ASP.NET, and till now wrote only simple "classic" WEB-sites. But - the time came, and now I need that: 1. Server will "listen" for some events on its local machine 2....
2
by: Stephen Brown | last post by:
We've been using dotNet for a couple of years now and have been updating our live server by just overwriting (Explorer drag and drop) the aspx and assembly files until we had some errors reported...
4
by: fmatamoros | last post by:
I sometimes get the following error from an update statement in a stored procedure: Transaction (Process ID 62) was deadlocked on thread | communication buffer resources with another process and...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
3
by: Kristijan Marin | last post by:
Hi, I need to print a report like document. So in report there are many articles and what I need when I get to the end, is to update page numbers on the second page where the Table of Content...
3
by: Michel Esber | last post by:
Hi all, DB2 V8 LUW FP 15 There is a table T (ID varchar (24), ABC timestamp). ID is PK. Our application needs to frequently update T with a new value for ABC. update T set ABC=? where ID...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.