javascript警报消息

编程入门 行业动态 更新时间:2024-10-10 15:17:49
本文介绍了javascript警报消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

protected void Button1_Click(object sender, EventArgs e) { if ((DropDownList1.SelectedItem.Text == "---- Select ----") || (TextBox1.Text == "") || (TextBox2.Text == "")) { Label1.Visible = true; Label1.Text = "All fields are mandatory, can not left blank."; TextBox1.Text = ""; TextBox2.Text = ""; } else if ((TextBox1.Text != TextBox2.Text)) { Label1.Visible = true; Label1.Text = "Confirm Password does not match, Try Again."; TextBox1.Text = ""; TextBox2.Text = ""; TextBox1.Focus(); } else { string lsUsrName, lsPwd; lsUsrName = DropDownList1.SelectedItem.Text; lsPwd = TextBox1.Text; Response.Write("<script>var resp = window.confirm ('Are you sure want to change password?');alert(resp);</script>"); } }

警告消息给出了正确的,我选择了,如何将它存储在ac#变量中以便进一步处理??????帮帮我专家....

alert message is giving the correct , which i select, how to store it in a c# variable for further process?????? Help me experts ....

推荐答案

隐藏的领域是方式,但有一些安全限制所以要小心。 阅读 [ ^ ]

您好, 对于您的问题,您可以使用Ajax工具包中的ModalPopupExtender控件。步骤: - 1.将一个模态弹出扩展器添加到.aspx页面,然后在其上添加两个按钮。 2.通过调用以下方式打开该弹出窗口: - ModalPopup1.show() 3.现在将事件添加到确定按钮。 如果您需要任何其他帮助,请发表评论。我会帮你的。 谢谢! Hi, For your problem you can use ModalPopupExtender control from Ajax toolkit. Steps:- 1. Add a Modal Popup Extender to your .aspx page and then add two buttons on it. 2. Open that popup by calling :- ModalPopup1.show() 3. Now add the event to your ''OK'' button. If you need any other assistance please put comment. I will help you. Thanks!

更多推荐

javascript警报消息

本文发布于:2023-11-27 17:55:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639021.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   消息   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!