Modal Window Trouble

L

Laurahn

Hi:

i'm using modal window (showmodelessdialog) on asp.
when the object is created i used session variables.
After the object is closed the data is remaining on the modal window when is
open again, even if i clear all session variables.

i call the modal windows as:
Response.write("<script>window.showModelessDialog('myPage.aspx','window',
'center:Yes;help:No;status:false;dialogWidth:740px;dialogHeight:395px')</script>")

The first time i load the modal window it works fine, but the next time i
call the modal window, it's not doing the page load method. The second time
the modal window is showed, it shows all the values showed in the first
time.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Try
LblNum.Text = Session("Num")
lblSer.Text = CType(Session("dsSolicitud"), data.dataset).Ser

...... all other variables

Session("dsSolicitud") = Nothing

Catch ex As Exception

End Try
End Sub

the code for cleaning session variables is
Session("var") = nothing

Also the page dispose method always is ignored...(never enter)

Protected Sub Page_Disposed(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Disposed
Dispose()
Finalize()
Session("dsSolicitud") = Nothing
End Sub
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top