Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Asp.netµ¯³ö´°¿Ú´óÈ«

 
Dim strScript As String = "<Script Language='VBScript'>" &vbCrLf
strScript &= "opener.parent.document.location.href=""" &"../Individual/UserJobs.aspx?EntityTableID=" &Request("EntityTableID") &"&ListID=" &BLL.TableType.Entity &"&OrgID=" &Request("OrgID") &"&TableID=" &oRightGroupAccessTableView.TemplateTable.TableID &IIf(Request("RecordID") Is Nothing, "", "&RecordID=" &Request("RecordID")) &"""" &vbCrLf
strScript &= "</Script>" &vbCrLf
Response.Write(strScript)
//¹Ø±Õ,¸¸´°¿Úµ¯³ö¶Ô»°¿ò,×Ó´°¿ÚÖ±½Ó¹Ø±Õ
this.Response.Write("<script language=javascript>window.close();</script>");
//¹Ø±Õ,¸¸´°¿ÚºÍ×Ó´°¿Ú¶¼²»µ¯³ö¶Ô»°¿ò,Ö±½Ó¹Ø±Õ
this.Response.Write("<script>");
this.Response.Write("{top.opener =null;top.close();}");
this.Response.Write("</script>");
//µ¯³ö´°¿Úˢе±Ç°Ò³Ãæwidth=200 height=200²Ëµ¥¡£²Ëµ¥À¸,¹¤¾ßÌõ,µØÖ·À¸,״̬À¸È«Ã»ÓÐ
this.Response.Write("<script language=javascript>window.open('rows.aspx','newwindow','width=200,height=200')</script>");
//µ¯³ö´°¿Úˢе±Ç°Ò³Ãæ
this.Response.Write("<script language=javascript>window.open('rows.aspx')</script>");
this.Response.Write("<script>window.open('WebForm2.aspx','_blank');</script>");
//µ¯³öÌáʾ´°¿ÚÌøµ½webform2.aspxÒ³(ÔÚÒ»¸öIE´°¿ÚÖÐ)
this.Response.Write(" <script language=javascript>alert('×¢²á³É¹¦');window.window.location.href='WebForm2.aspx';</script> ");
//¹Ø±Õµ±Ç°×Ó´°¿Ú,ˢи¸´°¿Ú
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;window.close();</script>");
this.Response.Write("<script>window.opener.location.replace(window.opener.document.referrer);window.close();</script>");
//×Ó´°¿Úˢи¸´°¿Ú
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;</script>");
this.Response.Write("<script>window.opener.location.href='WebForm1


Ïà¹ØÎĵµ£º

asp.net ³¤ÄÚÈÝÎÄÕÂ×Ô¶¯·ÖÒ³

ǰ̨´úÂ룺
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="articleview.aspx.cs" Inherits="articleview" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> ......

ASP.NET¶ÔÇëÇó´¦ÀíµÄ¹ý³Ì£º

ASP.NET¶ÔÇëÇó´¦ÀíµÄ¹ý³Ì£º
µ±ÇëÇóÒ»¸ö*.aspxÎļþµÄʱºò£¬Õâ¸öÇëÇó»á±»inetinfo.exe½ø³Ì½Ø»ñ£¬ËüÅжÏÎļþµÄºó׺£¨aspx£©Ö®ºó£¬½«Õâ¸öÇëÇóת½»¸øASPNET_ISAPI.dll£¬ASPNET_ISAPI.dll»áͨ¹ýhttp¹ÜµÀ£¨Http PipeLine£©½«ÇëÇó·¢Ë͸øASPNET_WP.exe½ø³Ì£¬ÔÚASPNET_WP.exe½ø³ÌÖÐͨ¹ýHttpRuntimeÀ´´¦ÀíÕâ¸öÇëÇ󣬴¦ÀíÍê±Ï½«½á¹û·µ» ......

ASP.NetÖеļ¸ÖÖÎļþÏÂÔØ·½·¨

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
         ΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
& ......

ʹÓÃasp.net 2.0ÖеÄSqlBulkCopyÀàÅúÁ¿¸´ÖÆÊý¾Ý

ÔÚÈí¼þ¿ª·¢ÖУ¬°ÑÊý¾Ý´ÓÒ»¸öµØ·½¸´ÖƵ½ÁíÒ»¸öµØ·½ÊÇÒ»¸öÆÕ±éµÄÓ¦Óá£
Ôںܶ಻ͬµÄ³¡ºÏ¶¼»áÖ´ÐÐÕâ¸ö²Ù×÷£¬°üÀ¨¾Éϵͳµ½ÐÂϵͳµÄÒÆÖ²£¬´Ó²»Í¬µÄÊý¾Ý¿â±¸·ÝÊý¾ÝºÍÊÕ¼¯Êý¾Ý¡£ ASP.NET
2.0ÓÐÒ»¸öSqlBulkCopyÀ࣬Ëü¿ÉÒÔ°ïÖúÄã´Ó²»Í¬µÄÊý¾ÝÔ´¸´ÖÆÊý¾Ýµ½SQL SERVERÊý¾Ý¿â¡£
±¾ÎÄÖÐÎÒ½«Ê¾·¶SqlBulkCopyÀàµÄ²»Í¬Ó¦Óá£
Êý¾Ý¿âÉè ......

ASP.NET(C#)³£ÓôúÂë30Àý

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ