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

ASP.netÒ³ÃæÌøתµÄ¼¸ÖÖ·½·¨

<a>±êÇ©
1.         <a href=”test.aspx”></a>
2.         ÕâÊÇ×î³£¼ûµÄÒ»ÖÖתÏò·½·¨;
HyperLink¿Ø¼þ
1.         Asp.net ·þÎñÆ÷¶Ë¿Ø¼þ ÊôÐÔNavigateUrlÖ¸¶¨ÒªÌøתµ½µÄUrlµØÖ·
2.         NavigateUrlÊÇ¿ÉÒÔÔÚ·þÎñÆ÷¶ËʹÓôúÂëÐ޸ģ¬Õâ¸öÇø±ðÓÚ<a>
3.         ÓÉÓÚHyperLink±¾ÉíûÓÐʼþËùÒÔÒªÔÚ·þÎñÆ÷¶ËÆäËüʼþÖÐÉèÖÃNavigateUrl
4.         ´úÂëʾÀý
<Asp:HyperLink id=”hyperlink” runat=”server” NavigatoeUrl=”test.aspx”>ok</Asp:HyperLink>
Response.Redirect()·½·¨
1.         ¹ý³Ì£º·¢ËÍÒ»¸öHttpÏìÓ¦µ½¿Í»§¶Ë£¬Í¨Öª¿Í»§¶ËÌøתµ½Ò»¸öеÄÒ³Ã棬Ȼºó¿Í»§¶ËÔÙ·¢ËÍÌøתÇëÇóµ½·þÎñÆ÷¶Ë¡£
2.         Ò³ÃæÌøת֮ºóÄÚ²¿¿Ø¼þ±£´æµÄËùÓÐÐÅÏ¢¶ªÊ§£¬µ±AÌøתµ½B£¬BÒ³Ã潫²»ÄÜ·ÃÎÊAÒ³ÃæÌá½»µÄÊý¾ÝÐÅÏ¢¡£
3.         ʹÓÃÕâ¸ö·½·¨Ê¹ÓÃÕâ¸ö·½·¨Ìøתºóä¯ÀÀÆ÷µØÖ·À¸µÄUrlÐÅÏ¢¸Ä±ä
4.         ¿ÉÒÔʹÓÃSession Cookies ApplicationµÈ¶ÔÏó½øÐÐÒ³Ãæ¼äµÄÊý¾Ý´«µÝ
5.         Öض¨Ïò²Ù×÷·¢ÉúÔÚ¿Í»§¶Ë£¬×ܹ²Éæ¼°µ½Á½´ÎÓëWeb·þÎñÆ÷µÄͨÐÅ£ºÒ»´ÎÊǶÔԭʼҳÃæµÄÇëÇó£¬ÁíÒ»´ÎÊÇÖض¨ÏòÐÂÒ³ÃæµÄÇëÇó
Server.Transfer()·½·¨
1.         ʵÏÖÒ³ÃæÌøתµÄͬʱ½«Ò³ÃæµÄ¿ØÖÆȨ½øÐÐÒƽ»
2.         Ò³ÃæÌøת¹ý³ÌÖÐRequest SessionµÈ±£´æµÄÐÅÏ¢²»±ä£¬Ìøת֮ºó¿ÉÒÔʹÓÃÉÏÒ»¸öÒ³ÃæÌá½»µÄÊý¾Ý
3.         Ìøת֮ºóä¯ÀÀÆ÷µØÖ·À¸µÄUrl²»±ä
4.         ÕâÖÖ·½·¨µÄÖض¨ÏòÇëÇóÊÇÔÚ·þÎñÆ÷¶ËµÄ½øÐеģ¬ä¯ÀÀÆ÷²»ÖªµÀÒ³ÃæÒѾ­·¢ÉúÁËÒ»´ÎÌøת
Server.Execute()·½·¨
1.         ¸Ã·½·¨ÔÊÐíµ±Ç°


Ïà¹ØÎĵµ£º

ʹÓÃASP.NETÉÏ´«¶à¸öÎļþµ½Êý¾Ý¿â

Èç¹û½ö½öÊÇÉÏ´«Ò»¸öÎļþ,×îºÃÊÇʹÓÃFileUpload¿Ø¼þ,  ¿ÉÒÔʹÓÃFileUpload1.FileContent.LengthµÃµ½Îļþ´óС,  FileUpload1.FileBytesµÃµ½Æä×Ö½ÚÊý×é, ´úÂëÂÔ.
Èç¹ûÒªÉÏ´«¶à¸öÎļþ, Æä¿Í»§¶Ë´úÂëÓëʹÓÃASP.NETÉÏ´«¶à¸öÎļþµ½·þÎñÆ÷»ù±¾Ïàͬ, ±¾ÀýÖмÓÈëÁËÏÂÔصÄʾÀý´úÂë¡£
Ч¹ûͼÈçÏÂ:
Êý¾Ý¿â½Å±¾
create data ......

Asp.NetÖÐgridviewÖÐǶÈëµÄcheckboxʹÓÃ

<asp:checkbox id = "checkbox1" runat = "server" AutoPostBack = "true" OnCheckedChanged = "CheckAllBox_Checked" text = "È«Ñ¡">
<asp:CheckBox  ID = "CheckBox1" AutoPostBack = "true" OnCheckedChanged = "CheckBox1_Checked" runat = "server"/>
 protected void CheckBox1_Checked(obj ......

ASP.NETÒ³ÃæÖ®¼ä´«µÝÖµµÄ¼¸ÖÖ·½·¨

Ò».ʹÓÃQueryString
Request.QueryString
   ÔÚASPʱ´ú£¬Õâ¸öÊǽϳ£Óõķ½·¨£¬µ½ÁËASP.NET£¬ºÃÏñÓõÄÈ˲»¶àÁË£¬µ«ÊDz»¹ÜÔõô˵£¬ÕâÊÇÒ»¸öûÓйýʱ£¬ÇÒºÜÖµµÃÍƼöµÄ·½·¨£¬ÒòΪ²»¹ÜÊÇASP»¹ÊÇASP.NET£¬×î»ù±¾µÄ¶¼»¹ÊÇ»ùÓÚHTTpЭÒéµÄ¡£ ȱµãÊǷdz£Ã÷ÏԵģ¬ÈÃÔÚ¶à¸öÒ³Ãæ´«µÝʱ£¬¿ÉÄܾÍRequest²»µ½ÁË
  ʹÓÃQu ......

ASP.NET MVC¸ÅÀÀ£¨C#£©

Model-View-Controller (MVC) ¼Ü¹¹Ä£Ê½½«Ò»¸öÓ¦ÓóÌÐò·ÖΪÈý¸ö×é³É²¿·Ö:Ä£ÐÍ£¬ÊÓͼÓë¿ØÖÆÆ÷¡£ASP.NET MVC¿ò¼ÜΪ´´½¨»ùÓÚMVCµÄWebÓ¦ÓóÌÐòÌṩÁËÒ»ÖÖÌæ´ú·½°¸¡£ASP.NET MVC¿ò¼ÜÊÇÒ»¸öÇáÁ¿¼¶µÄ£¬¿É¸ß¶È²âÊÔµÄչʾ¿ò¼Ü£¨»ùÓÚWeb´°ÌåµÄÓ¦ÓóÌÐò£©£¬Ëü¼Ì³ÐÁËÏÖÓеÄASP.NETÌØÐÔ£¬±ÈÈçĸ°æÒ³ºÍ³ÉÔ±×ʸñȨÏÞ¡£ MVC¿ò¼Ü¶¨Ò ......

ASP.NETÍøÕ¾ÓëDiscuz!NTÂÛ̳ÕûºÏ

²½Öè1£º
ÒýÈë5¸öDLLµ½ÏîÄ¿ÖÐ
·Ö±ðÊÇ
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Entity;
using Discuz.Data;
²½Öè2£º 
   public class Discuz_NT
    {
        public static ArrayList Login(string us ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ