创建联系我们页面 [英] creating a contact us page

查看:99
本文介绍了创建联系我们页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我已经创建了HTML的与我们联系"页面.现在,我想从该HTML页面发送邮件.为此,我添加了一个aspx文件,邮件也可以正常发送.现在我的问题是,发送邮件的代码在aspx页面.发送邮件后,aspx页面在HTML页面上也可见.发送邮件后如何自动关闭aspx页面.我也尝试过window.close(),但问题是每次出现带有以下对话框的确认框.

您正在查看的网页正在尝试关闭此窗口.是否要关闭此窗口?
有没有一种方法可以防止确认框出现,只需将其关闭即可.



预先感谢您
Dhanya

Hello all,


I have created a contact us page in HTML.Now I want to send mail from that HTML page.For that I have added an aspx file and the mail was also sending properly.Now my problem is,the code for sending the mail is in the aspx page.After sending the mail,the aspx page is also visible along the HTML pages.How can I close this aspx page automatically after sending the mail.Also I have tried window.close(),But the problem was every time a confirm box with the following dialog is appearing.

The web page you are viewing is trying to close this window.Do you want to close this window?
Is there a way to prevent the confirm box from coming up, and just close it.



Thanking you in advance
Dhanya

推荐答案

您的上一个问题已经回答了.您不应针对同一问题创建不同的帖子,而应选择改善问题"以将信息添加到您的问题中.


This has already been answered in your previous question. You should not create different posts with the same question rather choose ''Improve Question'' to add information to your question.


dhanovember写道:
dhanovember wrote:

如何在发送邮件后自动关闭此aspx页面.

How can I close this aspx page automatically after sending the mail.



发送邮件后,您可以考虑重定向到html页面.像



You may consider redirecting to the html page after the mail is sent. Something like

Response.Redirect("~/ContactUs.html");


发送邮件代码后.

希望这会有所帮助!


after the send mail code.

Hope this helps!


这篇关于创建联系我们页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆