-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: mrp
Message 1 in Discussion

hi   <a 
href="javascript:void(window.showModalDialog('../tricks/childmodal.aspx','userpref','dialogHeight:40;dialogWidth:35'))">abc</a>
 
the opened ModalWindow has a Save button,when i click on that button some server side 
code will get executed and that modal window will get closed and the parent window 
should get refreshed.How to do this ?? i tried some thing like this
1>>
 Dim str As String
str = 
"<script>self.opener.location='../dashboard/myparent.aspx';self.close();</script>"
Response.Write(str) 2>>
 Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder             
sb.Append("<script Language='JavaScript'>")
           
            sb.Append("opener.document.location.href='../dashboard/myparent.aspx';")   
          sb.Append("window.close();")
            sb.Append("</script>")             If Not 
IsClientScriptBlockRegistered("1a") Then
                RegisterClientScriptBlock("1a", sb.ToString)
            End If 
but in both case it is opening a new page please help me

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to