473,503 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calling an aspx page

Hello:

From an aspx.net , I am trying to call a second one when a user presses a
button. On the second page he selects a row in a data grid, after this I
need to return the control to the first page preserving all the fields that
the users has previously filled in, adding values of the selected row. Now
,I am using server.transfer and response.redirect with the preserve
parameter set to TRUE, but it's like the page is being loaded as the first
time and I am losing all the values of the fields I have in the first page.

Help please
Nov 18 '05 #1
2 1051
Gina,
I don't have an answer for your question because ASP.NET doesn't work
like that. To be blunt, I recommend that you study up on ASP.NET before
continuing. It appears that you need a better understanding of the nature
of web programming with .Net.

ASP.NET pages are stateless and don't save information from page to
page. You have to take special steps if you need to save information from
page to page. A common method is to save information in the Session memory.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Gina L. Hernandez" <pd*****@nospam.wdsinc.com> wrote in message
news:OI**************@TK2MSFTNGP14.phx.gbl...
Hello:

From an aspx.net , I am trying to call a second one when a user presses a
button. On the second page he selects a row in a data grid, after this I
need to return the control to the first page preserving all the fields that the users has previously filled in, adding values of the selected row. Now ,I am using server.transfer and response.redirect with the preserve
parameter set to TRUE, but it's like the page is being loaded as the first
time and I am losing all the values of the fields I have in the first page.
Help please

Nov 18 '05 #2
You can try the following code to pop up the child window from the
parent window.

- string scriptblock = "<script language='javascript'>returnValue =
window.showModalDialog('Child.aspx', 'Child_Window'); </Script>"
Page.RegisterStartupScript("Launch_Child_Window",s criptblock);
- showModalDialog function can be replaced with OpenWindow to open a
modeless window.

Hope this helps
Vijay Kerji



"Jeffrey Palermo [MCP]" <http://dotnetjunkies.com/weblog/jpalermo> wrote in message news:<em**************@TK2MSFTNGP11.phx.gbl>...
Gina,
I don't have an answer for your question because ASP.NET doesn't work
like that. To be blunt, I recommend that you study up on ASP.NET before
continuing. It appears that you need a better understanding of the nature
of web programming with .Net.

ASP.NET pages are stateless and don't save information from page to
page. You have to take special steps if you need to save information from
page to page. A common method is to save information in the Session memory.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Gina L. Hernandez" <pd*****@nospam.wdsinc.com> wrote in message
news:OI**************@TK2MSFTNGP14.phx.gbl...
Hello:

From an aspx.net , I am trying to call a second one when a user presses a
button. On the second page he selects a row in a data grid, after this I
need to return the control to the first page preserving all the fields

that
the users has previously filled in, adding values of the selected row.

Now
,I am using server.transfer and response.redirect with the preserve
parameter set to TRUE, but it's like the page is being loaded as the first
time and I am losing all the values of the fields I have in the first

page.

Help please

Nov 18 '05 #3

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

Similar topics

17
14757
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call...
2
1675
by: Andrew Banks | last post by:
I've got the following code as part of a C# web form but am having problems calling a command. I create a dataset and put some data on the screen. This works fine. (relevant sample below) ...
2
2343
by: Christopher Ambler | last post by:
I'm wondering if there's a solution here - I have an ASPX page with a sole purpose of scaling an image. The ASPX page contains a single line with the codebehind tag, and the .cs file contains...
1
2816
by: Benny | last post by:
hello all, currently im working on an asp.net web application using c#. im able to calling a javascript funtion in the .aspx page from the .aspx.cs page method. however, now i want other way...
5
1490
by: Mark Fox | last post by:
Hello, I have a page DoBatchWork.aspx that my web host's cron requests periodically. It currently calls another web page that does some batch processing. The code I am currently using in...
3
8255
by: Dustin II. | last post by:
Hi, I have an ASP.NET solution, and the ASPX page I have a form , I want to copy some of the data from that form to the clipboard, I am using the below script the script works fine when I use a...
6
4658
by: johnf401 | last post by:
I've got a VB .NET Web application that has several frames (for discussion sake, let's call them Form1.aspx and Form2.aspx). I want to be able to call a code module in Form2.aspx.vb from code...
3
9051
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
1
3617
by: DevNll2002 | last post by:
Can it be done? ( This is a related issue to my recent post... http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/a229a66642bedfaf/870614ae257ae699...
1
1010
by: David C | last post by:
I have an aspx page with a GridView that has an onclick attribute added to a LinkButton. The onclick calls the following Javascript function that opens a new window to edit information: ...
0
7205
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
7093
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
7349
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
7467
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...
1
5022
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
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.