Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Modal Window

Reply
Thread Tools

Modal Window

 
 
Laurahn
Guest
Posts: n/a
 
      06-10-2007
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


 
Reply With Quote
 
 
 
 
Masudur
Guest
Posts: n/a
 
      06-11-2007
On Jun 11, 4:15 am, "Laurahn" <(E-Mail Removed)> 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;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


hi....

try this
put
Response.Cache.SetCacheability(System.Web.HttpCach eability.NoCache);
in your page load ... of the modal window that is myPage.aspx ...

Thanks
Masudur
http://www.munnacs.blogspot.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening modal page from modal page Don ASP .Net 0 05-27-2008 11:49 PM
Modal and non modal in same app Leila Java 0 04-26-2005 09:48 PM
How to close a parent modal window when child modal window opens? gopal srinivasan Javascript 0 11-05-2004 05:59 AM
post the form data in modal window and close the modal window. Matt HTML 1 06-01-2004 08:22 PM
post the form data in modal window and close the modal window. Matt Javascript 0 06-01-2004 07:47 PM



Advertisments