asp.net Êý¾ÝË¢ÐÂÎÊÌâ
´ó¼ÒºÃ£¬ÎÊÏ´ó¼ÒÒÔÏÂÕâ¸ö¹¦ÄÜ´ó¼ÒÊÇÔõôʵÏÖµÄ
1.ÔÚb/sģʽÏ µ¯³öģʽ´°ÌåÒªÔõôʵÏÖ£¬
2.Èçģʽ´°ÌåΪÐÞ¸Ä±íµ¥µÄÒµÎñÂß¼£¬Èç¹ûÔÚ°´ÏÂÈ·¶¨ºó£¬¸¸´°ÌåË¢ÐÂÏàÓ¦µÄÊý¾Ý
×¢£º¸¸´°ÌåÓë×Ó´°ÌåΪ²»Í¬µÄwebForm,JavascriptÖÐÈçºÎˢи¸´°ÌåÊý¾Ý£¬Õâ¸ö¹¦ÄÜºÜÆÕ±é£¬ÎÊÏ´ó¼Ò¶¼ÊÇÔõôʵÏÖµÄ
ģʽ´°¿Ú,window.open¶¼¿ÉÒÔ°¡
¸¸£º
function OpenModalDialog()
{
var recdata=false;
try
{
recdata=showModalDialog("ShareSoftWareAuditingUpdate.aspx","newwindow","dialogHeight:600px;dialogWidth:800px; dialogTop:screen.height/4;dialogLeft:screen.width/4; edge:sunken ; center: Yes; help: No; resizable: No; status: No; scroll:yes;");
if(recdata==true)
{
// ˢе±Ç°´°¿Ú
window.location.href =window.location.href;
window.location.href.reload();
}
} catch(err)
{}
}
×Ó£º
ÔÚ±£´æ²Ù×÷¼Ó£º
string strScript = @" <script>window.returnValue=true;window.close(); </script>";
this.Response.Write(strScript);
ллÀÏ´óµÄ»Ø´ð£¬¹Ø¼üÎÊÌâÊǵڶþ¸ö
string strScript = @" <script>window.returnValue=true;window.close(); </script>";
this.Response.Write(strScript);
Õâ¸öÒѾ½â¾öÄãµÚ¶þ¸öÎÊÌâÁË
Â¥ÉϵÄÊÇ
Ïà¹ØÎÊ´ð£º
ÔÚµ¯³ö¿òÖеã»÷Ò»¸ö°´Å¥£¬Ôõôµ÷תµ½ÁíÒ»¸öä¯ÀÀÆ÷£¬²¢ÇÒÔÚ¸Ãä¯ÀÀÆ÷´ò¿ªÁ½¸öÒ³Ãæ
ÄãµÄÒâ˼Ӧ¸ÃÊÇ
response.write("<script>alert('È·ÈÏ'); window.location.href('xxxx.aspx'); </script>"); ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
ÎÒÔÚ×Ô¼ºµÄ»úÆ÷ÉÏдµÄAsp.net³ÌÐò£¬ÔÚ±ðÈ˵ĻúÆ÷ÉÏÔõôÈñð·ÃÎÊ¡£
°Ñ´úÂë·Åµ½Ò»¸öÖ§³Ö.NETµÄ¿Õ¼äÉÏ ¸øÈËÓòÃû¾Í¿ÉÒÔ·ÃÎÊÁË
btµÄ×ö·¨.µãµ÷ÊÔºó²»¶¯..
±ðÈËÓà http://ÄãµÄIP:¿´Ò»Ïµ÷ÊÔÓõĶ˿Ú/
¼´¿É·ÃÎÊ
ip+ ......
ASP.NETÈçºÎÓÃÒ»¸ö°´Å¥ÊµÏÖÑ¡ÔñÎļþ¼Ð·¾¶µ½Îı¾¿òÖУ¿£¨×¢ÒâÊÇÎļþ¼Ð·¾¶£¬²»ÊÇÎļþ·¾¶£©
http://blog.csdn.net/xianfajushi/archive/2008/10/18/3094474.aspx
Õâ²»ÊÇÎÒÒªµÄЧ¹û£¬ÎÒÒªÓõÄÊÇÀàËÆÓÚÎļþÉÏ´«¿ÉÒ ......