OnClientClick 事件中 confirm 出来的窗口内容怎么修改啊?

linjiangxian11 linjiangxian11 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
下面这段代码可以弹出一个提示框,我想让它提示的内容不是简单的“确定吗?”,而是把两个控件Calendar和DropDownList的值也写到弹出窗口里。例如弹出窗口提示“你选择的时间是2012-10-24,分公司是九州分公司”,最好还能让两个变量分成两行显示。能实现么?
 <asp:Calendar ID="Calendar_Time" runat="server"></asp:Calendar>
<asp:DropDownList ID="DropDownList_Company" runat="server" AutoPostBack="True">
<asp:ListItem>九州分公司</asp:ListItem>
<asp:ListItem>物业管理部</asp:ListItem>
<asp:ListItem>株洲分公司</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button_Sumbit" runat="server" Text="确定"
onclick="Button_Sumbit_Click" OnClientClick="return confirm('确定吗?');" Font-Size ="13px"/>
...全文
评论 23
收藏 已收藏
分享
返回顶部
linjiangxian11
.NET社区 62,275 成员 668,968 内容