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;dialogW
idth:740px;dialogHeight:395px')</scr
ipt>")
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 SubOn Jun 11, 4:15 am, "Laurahn" <leme...@.newsgroups.nospam> wrote:
> 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;dialogW
idth:740px;dialogHeight:395px')</s
cript>")
> 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 tim
e
> 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
hi...
try this
put
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
in your page load ... of the modal window that is myPage.aspx ...
Thanks
Masudur
http://www.munnacs.blogspot.com
0 comments:
Post a Comment