弹出信息框被屏弊了的问题!急啊,相当急一定给分! Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", " <script >alert( '保存成 '); location.href='新增页面';</script >"); 这样不行吗 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我知道上面的可以,但是我要用IWorkItem item = AuthorizationManager.GetNewWorkItemsOfUserAndTargetObject(manager.GetRootId(), typeof(InsuranceProductAddGatherWorkItem)); if (item != null) { ((InsuranceProductAddGatherWorkItem)item).GotoAddGather();//这是跳转新增页面 } 跳转到新页。还有没有其它的解决办法 Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", " <script >alert( '保存成 '); location.href= '新增页面 '; </script >"); 这样不就OK???一样的道理 !! Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", " <script >alert( '保存成 '); location.href= '新增页面 '; </script >"); 应该说这样的比上面的更好 //message是提示的信息,url是跳转到的页面地址public static void ShowAndRedirect(string message, string url) { #region string js = @"<Script language='JavaScript'> alert('{0}');location.href('{1}') </Script>"; js = string.Format(js, message, url); HttpContext.Current.Response.Write(js); #endregion } //message 提示信息//url 转向的地址 //先弹出对话框,然后再转页 public void MsgBox(string message, string url) { ClientScriptManager cs = Page.ClientScript; // 定义名称和脚本类型. String csname1 = "PopupScript"; Type cstype = this.GetType(); // 检查脚本是否已经完成. if (!cs.IsStartupScriptRegistered(cstype, csname1)) { String cstext1 = "alert('" + Server.HtmlEncode(message) + "');window.location='" + url + "';"; cs.RegisterStartupScript(cstype, csname1, cstext1, true); } } Response.Redirect("新增页面");你看下可以不? 设置网页的背景图片 订单产品多种价格操作问题 不是dbo,不能使用 mode="SQLServer" sessionState吗? 音频的问题 关于模板控件 高分回报——一个棘手的问题请教高手:Server Error in '/' Application. 请问如何将Session变量 付给一个数组? 求救!!!调试asp.net的时候出现问题... Asp.net中有無類似PB中DataWindow(Grid型式)的控件 webservice接口 有关word操作的问题 问题问题问题问题问题问题问题问题问题
IWorkItem item = AuthorizationManager.GetNewWorkItemsOfUserAndTargetObject(manager.GetRootId(), typeof(InsuranceProductAddGatherWorkItem));
if (item != null)
{ ((InsuranceProductAddGatherWorkItem)item).GotoAddGather();//这是跳转新增页面 }
跳转到新页。还有没有其它的解决办法
这样不就OK???
一样的道理 !!
应该说这样的比上面的更好
public static void ShowAndRedirect(string message, string url)
{
#region
string js = @"<Script language='JavaScript'>
alert('{0}');location.href('{1}')
</Script>";
js = string.Format(js, message, url);
HttpContext.Current.Response.Write(js);
#endregion
}
//url 转向的地址
//先弹出对话框,然后再转页
public void MsgBox(string message, string url)
{
ClientScriptManager cs = Page.ClientScript;
// 定义名称和脚本类型.
String csname1 = "PopupScript";
Type cstype = this.GetType(); // 检查脚本是否已经完成.
if (!cs.IsStartupScriptRegistered(cstype, csname1))
{
String cstext1 = "alert('" + Server.HtmlEncode(message) + "');window.location='" + url + "';";
cs.RegisterStartupScript(cstype, csname1, cstext1, true);
}
}
你看下可以不?