如何更改消息框/警告框的标题。 [英] how to change the title of message box / alert box.

查看:81
本文介绍了如何更改消息框/警告框的标题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



我在asp.net创建了一个基于Web的项目,C#



这里面临着弹出消息的问题。



在我的网页上我有注册表单输入用户详细信息。我在这里给出了验证。

一切正常。



假如我点击提交按钮而不填写字段。



它显示弹出消息本地主页:641235说:



我想设置这个标题我自己。



注意:我在这里使用验证控件,而不是javascript验证。



我的要求只是我想改变提醒信息的标题..就是这样。



请帮助谢谢............. .........

Hi experts,

I have created a web based project in asp.net , C#

here am facing problem with popup message.

on my webpage i have registration form to enter user details. i gave validations here.
everything is working perfectly.

Suppose if i click submit button without filling the fields.

it shows a pop up message "The Page at localhost:641235 says : "

I want to set this title of my own.

Note: I used validation controls here, not javascript for validations.

My requirement is just i want to change the Title of alert message..,thats it.

Please help thank you......................

推荐答案

出于安全原因,您无法更改标题。这只能通过使用jQuery警告框来实现。它的UI很好,你可以根据你的要求进行定制。

你可以从这里开始

http://labs.abeautifulsite.net/archived/jquery-alerts/demo/ [ ^ ]
You cannot change the title for the security reasons. This can be only achieved by using jQuery alert box. Its good in UI and you can customize based on your requirement.
You can start from here
http://labs.abeautifulsite.net/archived/jquery-alerts/demo/[^]


这篇关于如何更改消息框/警告框的标题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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