怎样写这个messagebox的脚本? 呵呵,web应用这样的MessageBox()要么用JavaScript的alert(),confirm(),要么用validatorSummary控件,要么用第三方控件,在论坛里搜索一下MessageBox,这方面讨论太多了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to arding123(阿拉丁) JavaScript怎样实现? <script language=javascript> alert("You trigger a event! "); confirm("Are you sure ?");</script>or<asp:button ID="Button1" runat=server onclick="javascript:return confirm('Are you sure ?");'>aaa</asp:button> private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { LinkButton myDeleteButton; switch(e.Item.ItemType) { case ListItemType.Item: case ListItemType.AlternatingItem: myDeleteButton = (LinkButton) e.Item.Cells[1].Controls[0]; myDeleteButton.Attributes.Add("onclick", @"return confirm('你确认要删除吗?');"); break; } } Response.Write("<script Language=JavaScript>");Response.Write("if ( confirm( '添加成功,继续添加吗?' ) == true ){window.location.href='input.aspx';}");Response.Write("else{window.location.href='index.aspx';}</script>"); 为什么cookie每次得到都是点击的那个ID值,传入不同的ID值不能相加 【疑难杂症】网页抓取抓的频繁了就返回远程服务器返回错误: (503) 服务器不可用 请教如何将服务器端的数据及时反馈到客户端? 动态行列转换(一行对应多列) 我想知道在asp.net 中不用ajax技术怎么实现局部的刷新的效果 这些字符串是何种编码啊? 问个很简单的问题?急!! 请问:在ASP.NET2.0中,aspx 和 cs 文件的关系是什么? 蛇形分组 FormView的ItemInserted事件不执行 各位高手:关于multipage的问题? asp。net编译通过,却不能正确运行,提示CGI错误。
JavaScript怎样实现?
alert("You trigger a event! ");
confirm("Are you sure ?");
</script>or<asp:button ID="Button1" runat=server onclick="javascript:return confirm('Are you sure ?");'>aaa</asp:button>
{
LinkButton myDeleteButton;
switch(e.Item.ItemType)
{
case ListItemType.Item:
case ListItemType.AlternatingItem:
myDeleteButton = (LinkButton) e.Item.Cells[1].Controls[0];
myDeleteButton.Attributes.Add("onclick", @"return confirm('你确认要删除吗?');");
break; } }
Response.Write("if ( confirm( '添加成功,继续添加吗?' ) == true ){window.location.href='input.aspx';}");
Response.Write("else{window.location.href='index.aspx';}</script>");