469,934 Members | 2,575 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

Modal Window Trouble

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
Jun 10 '07 #1
0 1019

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Patrick Lim | last post: by
2 posts views Thread by martin de vroom | last post: by
1 post views Thread by amith | last post: by
5 posts views Thread by CaptainZ | last post: by
2 posts views Thread by sthrudel | last post: by
4 posts views Thread by John Kotuby | last post: by
reply views Thread by Laurahn | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.