calling an aspx page

G

Gina L. Hernandez

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
 
J

Jeffrey Palermo [MCP]

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.
 
V

Vijay Kerji

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",scriptblock);


- showModalDialog function can be replaced with OpenWindow to open a
modeless window.

Hope this helps


Vijay Kerji
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top