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

ASP.NET ¿çÒ³´«µÝ

Ò»¡¢ÏìÓ¦Öض¨Ïò·½·¨
ÏìÓ¦Öض¨Ïò·½·¨ÊÇĿǰΪֹ½«Ò»¸öÍøÒ³Öض¨Ïòµ½ÁíÒ»¸öÍøÒ³µÄ×î¼òµ¥µÄ·½·¨µÄ×î¼òµ¥µÄ·½·¨¡£µ±Web·þÎñÆ÷½Óµ½Ò»¸öÖض¨ÏòÇëÇóºó£¬Ëü»á½«Ò»¸öÏìӦͷË͸ø¿Í»§¶Ë£¬Õ⽫µ¼Ö¿ͻ§¶Ë·¢ËÍÒ»¸öеÄÇëÇóµ½·þÎñÆ÷¡£°´¾ä»°Ëµ£¬Ò»¸öÖض¨ÏòÇëÇóʵ¼ÊÉÏÊÇÁ½¸öÇëÇóÏìÓ¦£ºÒ»¸öÊÇ×î³õµÄÇëÇóÏìÓ¦£¬ÁíÒ»¸öÊÇеÄÖض¨ÏòÇëÇóÏìÓ¦¡£
ÔÚASP.NETÖÐʵÏÖÖض¨ÏòºÜÈÝÒס£ÏÂÃæµÄ´úÂëÑÝʾÁËÈçºÎʹÓÃResponse.Redirect·½·¨ÊµÏÖÍøÒ³Öض¨Ïò£º
protected void Redirect_Click(object sender, EventArgs e)
{
Response.Redirect("menu.aspx");
}
ҪעÒâµÄÊÇÖض¨ÏòÇëÇóÖ»ÊÇÒ»¸öGETÇëÇó£¬Õâ¾ÍÒâζ×ÅÎÒÃDz»ÄÜ´ÓÔ´Ò³ÖÐͨ¹ýÖض¨ÏòÃüÁîÌá½»Êý¾Ý¡£µ«ÊÇÎÒÃÇ¿ÉÒÔÔÚÖض¨ÏòÖÐʹÓòéѯ×Ö·û´®À´´«µÝÊý¾Ý¡£ÈçÏÂÃæ´úÂëËùʾ£º
protected void Redirect_Click(object sender, EventArgs e)
{
Response.Redirect("menu.aspx?userName=" + UserName.Text));
}
ÉÏÃæµÄÀý×Ó½«Ò»¸ö²éѯ×Ö·û´®×÷Ϊ²ÎÊý´«µÝ¸øÁËResponse.Redirect·½·¨µÄÄ¿±êURL¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÈçϵĴúÂë»ñµÃÔ´Êý¾Ý¡£
protected void Page_Load(object sender, EventArgs e)
{
string userName = Request["userName"];
}
¶þ¡¢·þÎñÆ÷´«Êä·½·¨
ºÍÒÀÀµÓÚ¿Í»§¶ËÏòÁíÒ»¸öÐÂÒ³·¢ÇëÇó²»Í¬£¬·þÎñÆ÷´«ÊäÊÇÒ»ÖÖ·þÎñÆ÷Öض¨Ïò¼¼Êõ£¬ÕâÖÖ¼¼Êõͨ¹ý¼òµ¥µÄ¸Ä±äWeb·þÎñÆ÷Ëù´¦ÀíµÄ´úÂëÀ´´ïµ½ÇëÇóÒ»¸öÐÂÒ³µÄÄ¿µÄ¡£µ±±»ÇëÇóÒ³ºÍÔ´Ò³ÃæÔÚͬһ¸ö·þÎñÆ÷ʱ£¬·þÎñÆ÷´«ÊäÒª±È Response.Redirect·½·¨¸üÓÐЧ£¬ÕâÊÇÓÉÓÚÕâÖÖ¼¼Êõ¿ÉÒÔ±ÜÃâ¶îÍâµÄ¿ªÏú£¬½ö½öʹÓ÷þÎñÆ÷µÄ×ÊÔ´¾Í¿ÉÒÔ½øÐÐÖض¨Ïò¡£Òª×¢ÒâµÄÕâÖÖ¼¼ÊõÓÐÒ»¸ö¸±×÷Óã¬ÔÚÒ³Ãæ½øÐÐÖض¨Ïòʱ£¬¿Í»§¶ËµÄURLÈÔÈ»»á±£³ÖÔ´Ò³ÃæµÄURL£¬Õâ¿ÉÄÜ»áʹ¿Í»§ÈÏΪËûÃÇËù»ñµÃµÄÊý¾ÝÊÇÔ´Ò³Ãæ²úÉúµÄ¡£µ±È»£¬ÔÚ´ó¶àÊýÇé¿öÏ£¬Õâ²»ÊÇÎÊÌ⣬µ«ÊÇÕ⽫ʹµ÷ÊÔ±äµÃ¸üÀ§ÄÑ¡£
Server.Transfer·½·¨»¹¿ÉÒÔ±£´æ³õʼҳµÄ HttpContext¡£Òò´Ë£¬Ä¿±êÒ³¿ÉÒÔ·ÃÎÊÔ´Ò³ÃæµÄÖµ¡£ÎÒÃÇ¿ÉÒÔʹÓÃFormsCollectionÊôÐÔÀ´´ÓÄ¿±êÒ³ÃæÖлñµÃÔ´Ò³ÃæµÄÖµ¡£Ê×ÏÈ£¬ÒªÈ·¶¨ÎÒÃÇʹÓÃÁ˱»ÖØÔصķ½·¨£¬Õâ¸ö·½·¨ÓÐÁ½¸ö²ÎÊý£ºÄ¿±êURLºÍÒ»¸öBooleanÀàÐ͵ÄÖµ£¬¸æËß·þÎñÆ÷ÊÇ·ñ±£´æÓÃÓÚÃèÊöÔ´Ò³ÃæÖµµÄForm¡£ÈçÏÂÃæµÄ´úÂëËùʾ£º
Server.Transfer("Menu.aspx",true);
È»ºó£¬ÎÒÃÇÔÚÄ¿±êÒ³ÃæÖлñµÃÒ»¸ö½ÐtxtUserNameµÄTextbox¿Ø¼þµÄÖµµÄ´úÂëÈçÏ£º
object obj = Req


Ïà¹ØÎĵµ£º

ASP.NET»Ö¸´SqlServerÊý¾Ý¿â»¹Ô­Ê§°Ü

ÔÚÓÃAsp.net¶Ô±¸·ÝµÄÊý¾Ý¿âÎļþ½øÐл¹Ô­µÄʱºò£¬ÓÐʱºò»á³öÏÖÏÂÃæµÄ´íÎóÒì³££º
[ÒòΪÊý¾Ý¿âÕýÔÚʹÓã¬ËùÒÔδÄÜ»ñµÃ¶ÔÊý¾Ý¿âµÄÅÅËü·ÃÎÊȨ¡£ RESTORE DATABASE ²Ù×÷Òì³£ÖÕÖ¹¡£Òѽ«Êý¾Ý¿âÉÏÏÂÎĸÄΪ 'master'¡£]
Õâ¸öʱºò£¬×ÔÓɵȴýÆäËû½ø³ÌÊͷŶÔӦȨÏ޺󣬲ſɻ¹Ô­³É¹¦£¡ÓÐûÓнâ¾ö°ì·¨ÄØ£¿ÎÒ²ÎÕÕ¡¾Java¡¿¶ÔÕâ¸öÎÊÌâµÄ½â¾ö ......

ASP.NETÖ´Ðд洢¹ý³Ì£¬²¢»ñÈ¡´æ´¢¹ý³ÌµÄ·µ»ØÖµ

//Á¬½ÓÊý¾Ý¿â
        string myStr = CODE.DbHelperSQL.connectionString;
        SqlConnection myConn = new SqlConnection(myStr);
        myConn.Open();
      &nbs ......

ÊÖ°ÑÊÖ½ÌÄã×öASP.NETÁôÑÔ±¾

ûÓÐÏëµ½ÕæµÄÕâô·½±ã!¸ü¼Ó¼á¶¨ÎÒѧϰASP.NETµÄ¾öÐÄ! ÏÖÔÚÎÒÃÇÒ»ÆðÀ´¿´¿´°É
1,ÇëÈ·¶¨ÄãµÄµçÄÔ°²×°ÁËÒÔϵÄÈí¼þ£¡
1.1£¬    WINDWOS 2000ÒÔÉÏ°æ±¾(±Ø×°)
1.2£¬    .NET Framework(±Ø×°)
1.3£¬    Visual Studio .NET 2005(±Ø×°)
2,½¨Á¢Ò»¸öACCESSÊý¾Ý¿â,
3,Í϶¯VS2005 µÄGRIDVIEW µ½Éè ......

ASP.NETÒ³Ãæˢз½·¨×ܽá

ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e )     {        Response.Redirect( Request.Url.ToString( ) );   }  
µ ......

ASP.NET Routing for URLRewriting with QueryStrings

In the last post I showed how to use the ASP.NET 3.5 Routing Engine
for URLRewriting purposes. I want to go further in this post by adding
the ability to add variables into a route path and forward and append
query string variables to the destination Web Form request.
A route can contain one or ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ