怎样写这个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>"); SlideShowExtender控件的效果出不来,请高手帮忙! 有会用过ef的codefirst吗?如何改变int 主键默认为identity的约定 怎样把背景网页的图片距上边框30px vs2010调试时自己跳出调试状态 可以获取母版页上面的WebPartZone里面的控件吗? 50分求一段临时浏览功能的代码 如何通过电击datagrid中邦定的某行单选按钮来获取该行的索引值 单选按钮是html控件 如何设置image控件的宽度 return的意思? 编译的时候可不可以只编译修改的文件 各位高手:关于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>");