M
mvr
Hi all
Per my requirement, I have to send an instant email from an classic
asp application(my limitations are I cannot use the CDONTS). So I created a
asp.net application (using smtpclient)to send email.
When the user clicks "submit" button on classic ASP page, I will
invoke a call to the .Net asp application, which will send the email. So far
is good.
My problem is I want to close the asp.net browser with out user
interation. I am using IE 7. and using the following code to close.
ClientScript.RegisterStartupScript(Me.GetType(), "clientscript",
"self.close();", True)
' Response.Write("<script language = ""JavaScript"">")
' Response.Write("self.close();")
'Response.Write("</script>")
At the time of closing the browser, it is showing a pop up to user asking
do you want to close this page.
Can some one suggest a way to close this alert box with out user
interaction.
Thanks in advance
mvr
Per my requirement, I have to send an instant email from an classic
asp application(my limitations are I cannot use the CDONTS). So I created a
asp.net application (using smtpclient)to send email.
When the user clicks "submit" button on classic ASP page, I will
invoke a call to the .Net asp application, which will send the email. So far
is good.
My problem is I want to close the asp.net browser with out user
interation. I am using IE 7. and using the following code to close.
ClientScript.RegisterStartupScript(Me.GetType(), "clientscript",
"self.close();", True)
' Response.Write("<script language = ""JavaScript"">")
' Response.Write("self.close();")
'Response.Write("</script>")
At the time of closing the browser, it is showing a pop up to user asking
do you want to close this page.
Can some one suggest a way to close this alert box with out user
interaction.
Thanks in advance
mvr