日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

asp.net在iframe中彈出信息并執(zhí)行跳轉(zhuǎn)問題探討_.Net教程

編輯Tag賺U幣

推薦:asp.net CheckBoxList各項(xiàng)最小寬度CSS樣式(兼容性good)
ASP.NET中,CheckBoxList里的選擇都是自動(dòng)寬度的,屬性時(shí)沒有設(shè)置各項(xiàng)寬度的設(shè)置,在IE10、遨游4極速模式及兼容模式下均可正確顯示最小寬度,此樣式除了用于CheckBoxList外,也可用于DIV等

復(fù)制代碼 代碼如下:www.hl5o.cn

/// <summary>
/// iframe 中,彈出信息并跳轉(zhuǎn)
/// </summary>
/// <param name="msg"></param>
/// <param name="targetPageName"></param>
public static void ResponseShowMsg(string msg, string targetPageName)
{
string str = "<script> alert('{0}'); window.parent.frames[\"sysMain\"].location.href = '{1}'; </script>";
string Urls = HttpContext.Current.Request.Url.OriginalString;
if (Urls.LastIndexOf('?') > 0)
{
Urls = Urls.Substring(0, Urls.LastIndexOf('?')).Replace(HttpContext.Current.Request.Url.Segments[HttpContext.Current.Request.Url.Segments.Length - 1], targetPageName);
}
else
{
Urls = Urls.Replace(HttpContext.Current.Request.Url.Segments[HttpContext.Current.Request.Url.Segments.Length - 1], targetPageName);
}
str = string.Format(str, msg, Urls);
HttpContext.Current.Response.Write(str);
}

頁面調(diào)用 cs文件
復(fù)制代碼 代碼如下:www.hl5o.cn

protected void btnSave_Click(object sender, EventArgs e)
{
if (bll.RoleAdd(model, tempMs))
{
CmvspCommon.MessageBox.ResponseShowMsg( "保存成功!", "add.aspx");
}
else {
CmvspCommon.MessageBox.Show(this, "保存失��!");
}
}

分享:asp.net url重寫的好處與方法
asp.net url重寫的好處與方法,需要的朋友可以參考一下

來源:模板無憂//所屬分類:.Net教程/更新時(shí)間:2013-04-22
相關(guān).Net教程