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

ASP.NET System.Web.HttpContextÀàCurrentÊôÐÔ

1¡¢.NetµÄHTTPÇëÇó
.NETÓëASPµÄÔËÐлúÖÆÓкܴó²»Í¬.
ASPµÄÇëÇóÓëÏìÓ¦ÊÇ,ASPÒ³Ãæ±»ÇëÇó,È»ºóÖðÐнâÊÍ.ÊÇ»ùÓÚ¹ý³ÌµÄ.×î¶àÊÇ°üº¬ÁËÎļþ,ÐèÒªÏÈÒýÈëÎļþ°ÕÁË.
¶ø.Net,ÔÚÒ³Ãæ±»ÇëÇóºó,Ê×ÏÈÊǼÓÔØHTTP Module,Õâ²»ÊDZ¾ÎĵÄÖصã.È»ºóÔÙ¼ÓÔØHTTP
Handler.ÕâÒ²²»ÊDZ¾ÎĵÄÖصã.¼ÓÔصÄÕâÁ½Ïî,¶¼ÐèÒªÔÚWebconfigÎļþÖÐÅäÖÃ.´ó¼ÒÖªµÀµÄURLתַ¾ÍÊÇÕâôʵÏÖµÄ.ÔÚÍê³ÉÕâЩ֮ºó²Å¿ªÊ¼
¸ø³öÏìÓ¦µÄÒ³Ãæ.
ÔÚ¸ø³öÏìÓ¦Ò³ÃæµÄ¹¤×÷ÖÐ,.Net¾Í±íÏÖ³öºÍASPµÄ×î´óÇø±ðÀ´..NetÊÇÃæÏò¶ÔÏóµÄÓïÑÔ,ÊÇ»ùÓÚÀàµÄÓïÑÔ.ûÓÐÀàºÜÄÑд³öÓÐÒâÒåµÄ.Net³ÌÐò.Èç¹ûд³öÀ´,Ò²¾ÍÊǸöASPµÄ·­°æ.
2¡¢.NETÖлù±¾Îļþ½á¹¹£¨¼Ì³Ð¹Øϵ£©
Ê×ÏÈ´ó¼Ò¿´µ½ÎÞÂÛÔÚ1.1»¹ÊÇ2.0ÖÐ,ÓÃVS´´½¨µÄÍøվÿ¸öASPxÎļþ¶¼¶ÔÓ¦Ò»¸öcsÎļþ(»òÕßvbµÈÆäËüÓïÑÔ).¶øcsÎļþÀïµÄÀàÒ»°ãºÍÎļþͬÃû,
Èç¹ûÓö¼û¹Ø¼ü×ÖµÄÇé¿ö²Å»á×Ô¶¯Ê¹ÀàÃûÇ°¼Ó¸ö'_',ÀýÈç:_Default.´´½¨µÄÕâ¸öcsÎļþ¼Ì³Ð×ÔSystem.Web.UI.PageÀà,¶øÇÒÖ»
ÄÜ\±ØÐë¼Ì³Ð¸ÃÀà.Ô­Òò¾ÍÊÇASPxÎļþÊǼ̳ÐcsÎļþµÄ.
¾ÍÄÃDefault.ASPx,Default.ASPx.csÎļþÀ´Ëµ.
Default.ASPx.csÀï°üº¬ÁËÀà _Default,¼Ì³Ð×ÖSystem.Web.UI.Page
ͨ¹ý
    public class _Default : System.Web.UI.Page
    {
        private void Page_Load(object sender, System.EventArgs e)
        {
            // ÔÚ´Ë´¦·ÅÖÃÓû§´úÂëÒÔ³õʼ»¯Ò³Ãæ
        }
    }
}¾ÍÄÜ¿´µÃ³öÀ´.
¶øDefault.ASPxÎļþ,ËäȻûÓвûÃ÷ÓõÄÄĸöÀà,µ«ÊÇ,ʵ¼ÊÉÏÒѾ­¼Ì³Ð×Ô_DefaultÀà.
<%@ Page language="c#" Codebehind="Default.ASPx.cs" AutoEventWireup="false" Inherits="MyTest._Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>Default</title>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_


Ïà¹ØÎĵµ£º

ASP.NET WebService ³ÌÐòÖ´ÐÐȨÏÞÎÊÌâ½â¾ö

дÁËÒ»¸ö´´½¨ÐéÄâĿ¼µÄ WebService ³ÌÐò£¬ÔÚ²âÊÔÔËÐÐʱ¿ÉÒԳɹ¦´´½¨£¬µ«ÆäËü³ÌÐòµ÷ÓÃʱ£¬ÌáʾûÓÐȨÏÞ´´½¨¡£
²éÁËһЩ×ÊÁÏ£¬ÔÚweb.configÀïÃæµÄ<system.web>ºó¼ÓÉÏÅäÖãº
    <identity impersonate="true" userName="²Ù×÷ϵͳÓû§Ãû" password="Óû§¶ÔÓ¦µÄÃÜÂë" />
ÎÊÌâ½â¾ö¡£Ìش˼Ǽ£¬È¨ ......

ASP.NETÖжÁÈ¡excelÄÚÈÝ,²¢ÏÔʾÔÚ½çÃæÉÏ

ÏîÄ¿Öо­³£»áÓõ½°ÑexcelµÄÎļþÄÚÈݵ¼Èëµ½Êý¾Ý¿âÖеÄ,¸Õ¸Õ»¨Á˵ãʱ¼ä,×öÁ˸öÀý×Ó,»ù±¾ÉÏÄÜʵÏÖµ¼ÈëExcelºóÏÔʾµÄ¹¦ÄÜ°É,µ¼ÈëµÄexcelÎļþµÃÊÇxls,¼´ÊÇ2003µÄ.
    ´úÂë˼·ÈçÏÂ:Òª¶ÁÈ¡µÄexcelÎļþ±ØµÃµÃÊÇÔÚ±¾µØÓ²ÅÌ,ËùÒÔÒ»°ãÀ´Ëµ¶¼ÊÇÈÃÔ¶³ÌÓû§Ñ¡Ôñ×Ô¼ºÓ²ÅÌÉϵÄExcelÎļþ,È»ºó°ÑÓû§Ñ¡ÔñµÄÎļþÉÏ´«µ½±¾µØ· ......

ASP.NETÊý¾Ý°ó¶¨_µÚһƪ_¸ÅÊö

+++ ÊÂʵÉÏ£¬½«Êý¾Ý¼¯°ó¶¨µ½.NET¿Ø¼þ£¬¾ÍÊǽ«Êý¾Ý¿âµÄ±í»ò±íÖÐij¸ö×ֶζÁµ½ÄÚ´æµÄij¸ö½á¹¹À±ÈÈçDataTable£¬È»ºó°ÑÕâ¸öÊý¾Ý½á¹¹°ó¶¨µ½.NET¿Ø¼þ¡£
+++ Èç¹ûÄãÒÔǰʹÓùýC++ Builder»òÊÇDelphi£¬ÄÇôÄãÒ»¶¨¼ÇµÃ£¬°ó¶¨Êý¾Ý¿â¿Ø¼þÓëÒ»°ã¿Ø¼þÊÇ·Ö¿ªµÄ£¬ÕâÁ½ÖֿؼþÔÚ²»Í¬µÄ°üÖС£¶øÏÖÔÚµÄ.NET¿Ø¼þ¾Í·Ç³£Áé»î£¬Ëü¼È¿ÉÒÔ×÷Ϊһ°ã ......

ASP.NETÊý¾Ý°ó¶¨_µÚ¶þƪ_ÓÃÊý¾Ý¼¯DataTable°ó¶¨

+++ Ò³Ãæ´úÂëÈçÏ£º
<asp:Button ID="Button1" runat="server" Text="Ìí¼Ó¿ÕÐÐ" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="±£´æËùÓÐ" OnClick="Button2_Click" />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="403px">
  ......

ASP.NETÊý¾Ý°ó¶¨_µÚÈýƪ_ÓÃObjectDataSource¿Ø¼þ°ó¶¨

+++ Ò³Ãæ´úÂëÈçÏ£º
<asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1"
  AutoGenerateColumns="true" DataKeyNames="EMPNO">
</asp:GridView>   
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetEmp" TypeName="O ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ