calling an aspx page

  • Thread starter Thread starter Gina L. Hernandez
  • Start date Start date
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
 
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.
 
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
 
Back
Top