http://community.csdn.net/Expert/topic/3379/3379850.xml?temp=.5464441
问题在这个页面上面
问题在这个页面上面
解决方案 »
- 怎样算月平均信息录入数和日平均信息录入数?
- 整了个单点登录,Form来Form去的不知道安全不。
- 申请国际域名、空间问题(拒绝抢手、广告回帖!!)
- vs.net 2003无法创建asp.net应用程序
- 如何把 32度12分36.234秒 转化成 xx.xxxxxxx 度?(Oracle)。急,帮忙!!!!!!
- ASP.NET下用XmlTextWriter追加节点数据,不需读入全部xml文档,直接追加的例子。适合大型 XML 文件██===========
- 关于we.config验证。。。。。
- 如何对url为HTML的地址重写
- Page_Load中Response.Redirect后怎样获取上页地址
- frameset互操作问题
- 关于多人同时操作同一页面时的问题,请大虾帮忙!
- !!!求好的C#+asp.net 菜单源码!!!要求不会因被拦截而失效的那种!!!!
{
var cMsgWinStyle;
var iClientScreenWidth = window.screen.width;
var iClientScreenHeight = window.screen.height;
var iMessageWinLeft = (iClientScreenWidth - iWidth)/2;
var iMessageWinTop = (iClientScreenHeight - iHeight)/2; cMsgWinStyle = 'dialogTop:' + iMessageWinTop + 'px; dialogLeft:'+iMessageWinLeft+'px; dialogWidth:'+iWidth+'px; dialogHeight:'+iHeight+'px; center:yes; edge: raised; scroll :no; help: no; resizable: no; status: no';
window.showModalDialog(cUrl,cMsg,cMsgWinStyle); }
你用这个模拟开个窗口,这个页面里面就放一个确定好了,也可以使用返回值
你试试是不是这样?
{
if(!IsPostBack)
{
StringBuilder Msg = new StringBuilder();
Msg.Append("<script language='javascript'>");
Msg.Append("function confrimDelete(OrderID){");
Msg.Append("return confirm(''订单编号为"+OrderID+"你保存吗'');");
Msg.Append("}");
Msg.Append("</script>");
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
string OrderID = "O198823423";
//程序你自己可以生成
Response.Write("<script> confrimDelete("+OrderID+")</script>");//你自己的事情
}
Response.Write("<script>alert('是否转到其他页面?');</script>");
。。//按确定后跳转代码
大家帮着改一下
改成只弹出确定按钮
没有取消按钮
http://community.csdn.net/Expert/topic/3379/3379850.xml?temp=.5464441
Page.RegisterStartupScript("","<script>alert('恭喜您注册成功,您的定单号为:"+Did+"');window.location='login.aspx';</script>");
window.location=''重新定位的路径如不需要:
Page.RegisterStartupScript("","<script>alert('恭喜您注册成功,您的定单号为:"+Did+"')</script>");