Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ :

asp.net cookie²Ù×÷

µÚÒ»ÖÖ£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// CookieOper µÄժҪ˵Ã÷
/// ¶ÔCOOKIEµÄ²Ù×÷Àà
/// </summary>
public class CookieOper
{
public CookieOper()
{
//
// TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼­
//
}
/**/
/// <summary>
/// ´´½¨Cookies
/// </summary>
/// <param name="strName">Cookie Ö÷¼ü</param>
/// <param name="strValue">Cookie ¼üÖµ</param>
/// <param name="strDay">Cookie ÌìÊý</param>
/// <code>Cookie ck = new Cookie();</code>
/// <code>ck.setCookie("Ö÷¼ü","¼üÖµ","ÌìÊý");</code>
public bool SetCookie(string strName, string strValue, int strDay)
{
try
{
strVa ......

ʲôÊÇAsp.NetÓ¦ÓóÌÐò

ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order" virtual directory on a Web server computer. For IIS the virtual directory can be set up in the Internet Services Manager; it contains all subdirectories, unless the subdirectories are virtual directories themselves.
Each ASP.NET Framework application on a Web server is executed within a unique .NET Framework application domain, which guarantees class isolation (no versioning or naming conflicts), security sandboxing (preventing access to certain machine or network resources), and static variable isolation.
ASP.NET maintains a pool of HttpApplication instances over the course of a Web application's lifetime. ASP.NET automatically assigns one of these instances to process each incoming HTTP re ......

asp.netÒ³Ãæ´«Öµ¼¼ÇÉ

¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£¿´À´ÓкܶàÈ˹Ø×¢Õâ¸ö£¬ÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.  ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object sender, System.EventArgs e)
{
    string s_url;
    s_url = "b.aspx?name=" + Label1.Text;
    Response.Redirect(s_url);
}
b.aspxÖÐC#´úÂë
private void Page_Load(object sender, EventArgs e)
{
    Label2.Text = Request.QueryString["name"];
}
2.  ʹÓÃApplication ¶ÔÏó±äÁ¿
Application¶ÔÏóµÄ×÷Ó÷¶Î§ÊÇÕû¸öÈ«¾Ö£¬Ò²¾ÍÊÇ˵¶ÔËùÓÐÓû§¶¼ÓÐЧ¡£Æä³£Óõķ½·¨ÓÃLockºÍUnLock¡£
a.aspxµÄC#´úÂë
private void Button1_Click(object sender, System.EventArgs e)
{
    Application["name"] = Label1.Text;
    Ser ......

°ÑASP.NETÍøÒ³×ªÒÆµ½SharePointÍøÒ³µÄ·½·¨

¹«Ë¾Ô­ÓÐÒ»¸ö¾ÖÓòÍø£¬¾­¹ý¶àÄêµÄÐÞÐÞ²¹²¹£¬ÒѾ­´´½¨Á˲»ÉÙµÄÄÚÈÝ£¬°üÀ¨Ò»Ð©Êý¾Ý¿â²éѯ±¨±í¡¢¹¤×÷Á÷µÈÍøÕ¾£¬ÕâÐ©ÍøÕ¾ÓÐһЩÊÇÓÃASP.NETÀ´¿ª·¢µÄ£¬²¢ÇÒÓÃÁ˺ܶàÄ꣬»ýÀÛÁ˺ܶàÒµÎñÊý¾Ý£»ÏÖÔÚ¹«Ë¾Ïë°Ñ¾ÖÓòÍøÓÃWSS3.0À´¼ÜÉ裬Õâ¾ÍÃæÁÙµ½Ò»¸öºÜ¼¬ÊÖµÄÎÊÌ⣬¾ÍÊÇÔõÑùÀ´´¦ÀíÕâЩ¾ÉµÄÍøÒ³¡£Èç¹ûÍÆµ¹ÖØÀ´£¬ÄÇô¹¤×÷Á¿½«ÊǷdz£ÏÅÈ˵ģ¬Ã»ÓиöÁ½¡¢ÈýÄêÊÇÍê²»³ÉµÄ£»Èç¹û¼ÌÐø±£Áô£¬Ð¾ÉÍøÕ¾Í¬Ê±²¢´æ£¬ÄÇôÃÅ»§ÍøÕ¾½«³ÉΪһ¸ö±ðŤµÄ»ìѪ¶ù£¬»á¸ü¼ÓµÄ»ìÂÒ²»¿°¡£¶ÔÓÚһЩ¼òµ¥µÄASP.NETÍøÕ¾£¬ÎÒÃDzÉÓÃÒÔÏµķ½·¨£¬°ÑËüÃÇת³É¿ÉÒÔÔÚWSS3.0ƽ̨ÉÏÃæÔËÐеÄÍøÕ¾£¬ÕâÑùÎÒÃǾ¡Á¿²»È¥¸Ä¶¯Ô­ÓÐϵͳÀïÃæµÄÂß¼­£¬Ö»ÊǼòµ¥µÄ°üװһϣ¬¹¤×÷Á¿»áÉٺܶࡣÏÂÃæµÄ²½ÖèÔËÓÃÒ»¸ö×î¼òµ¥µÄHelloWorldÍøÒ³×÷ΪÀý×Ó£¬¼Ç¼һÏÂת»¯µÄ²½ÖèºÍ×¢ÒâÊÂÏî¡£
1¡¢¼ÙÈçÓÐÒ»¸öASP.NETµÄÍøÒ³£¬ËüÓÐÒ»¸öMyWebForm.aspxµÄÒ³Ãæ£¬°´Ò»ÏÂHello°´Å¥£¬È»ºóÔÚÎı¾¿òÀïÃæÏÔʾ“Hello World”£¬ËüµÄ¹¤³ÌÎļþÈçÏÂͼ£º
 ËüµÄCodeBehind´úÂëÈçÏ£º
 
2¡¢ÎÒÏÈÔÚWSSÍøÕ¾ÉÏÃæ´´½¨Ò»¸ö“Pages”µÄÎļþ¼Ð£¬È»ºó°ÑÕâ¸öMyWebForm.aspx¿½±´µ½PagesÎļþ¼ÐÀïÃæ£¬¿´Äܲ»ÄÜÔÚIEÀïÃæä¯ÀÀËü£»
3¡¢½á¹ûä¯ÀÀÆ÷±¨¸æÒÔÏ´íÎó£ ......

ASP.NETÉú³É¾²Ì¬Ò³ÃæµÄ·½·¨

ʹÓÃASP.NETÉú³É¾²Ì¬Ò³ÃæµÄ·½·¨ÓÐÁ½ÖÖ£¬µÚÒ»ÖÖÊÇʹÓÃC#ÔÚºǫ́Ӳ±àÂ룬µÚ¶þÖÖÊǶÁȡģ°åÎļþ£¬Ê¹ÓÃ×Ö·û´®Ìæ»»µÄ·½·¨¡£µÚÒ»ÖÖ·½·¨±àÂëÁ¿´ó£¬
¶øÇÒά»¤±È½ÏÀ§ÄÑ¡£ÎÒÖØµã½²½âµÚ¶þÖÖ·½·¨¡£µÚ¶þÖÖ·½·¨µÄ»ù±¾Ë¼Â·ÊÇ£ºÊ¹ÓÃDWÖ®ÀàµÄ¹¤¾ßÉú³ÉÒ»¸ö¾²Ì¬Ò³ÃæÄ£°å¡£¶ÁÈ¡¸ÃÄ£°åÎļþ£¬È»ºó¶ÔÀïÃæµÄÌØÊâ±ê¼ÇʹÓÃ
ÕæÊµµÄÊý¾ÝÌæ»»µô£¬²¢Éú³ÉÒ»¸öHTMLÎļþ
Çë¿´´úÂë
1.C#
 1
using
 System;
 2
using
 System.Collections.Generic;
 3
using
 System.Text;
 4
using
 System.Xml;
 5
using
 System.IO;
 6
 7
namespace
 htmlWeb
 8
{
 9
   
public
 
class
 CreateHtm
10
    
{
11
      
12
13
       
private
 
string
 fileName;
14
15
       
public
 String FileName
16
       
{
17
         ......

c# web service ʵÀý

 Î¢ÈíÔÚÆä.netÕ½ÂÔÖУ¬¶ÔÆäÖ÷ÍÆµÄWeb Service×öÁË´óËÁµÄÐûÑï¡£ÏÖÔÚ£¬Web
ServiceÕýÈç»ðÈçݱµØ·¢Õ¹×Å£¬Ïà¹ØµÄ¸÷Ïîм¼Êõ²ã³ö²»Çî¡£Web
ServiceµÄ·¢Õ¹Õý¹¹Öþ×Å»¥ÁªÍøÊ±´úÃÀºÃµÄÃ÷Ìì¡£ÔÚ±¾ÎÄÖУ¬ÎÒ½«Ïò´ó¼Ò½éÉÜWeb ServiceµÄһЩ»ù±¾ÖªÊ¶¡¢ÈçºÎÓÃC££½¨Á¢Ò»¸öWeb
Service¡£Í¨¹ýÎÄÕ£¬ÎÒÃÇ»¹½«¶ÔWSDL¡¢UDDIÒÔ¼°Î´À´µÄWeb ServiceÓÐÒ»¸ö´óÖµÄÁ˽⡣
ΪʲôÐèÒªWeb Service£¿
ÒÔǰ£¬·Ö²¼Ê½µÄÓ¦ÓóÌÐòÂß¼­ÐèҪʹÓ÷ֲ¼Ê½µÄ¶ÔÏóÄ£ÐÍ£¬Í¨¹ýʹÓÃDCOM¡¢CORBA¡¢RMIÖ®ÀàµÄ»ù±¾½á¹¹£¬¿ª·¢ÈËÔ±ÈÔ¿ÉÓµÓÐʹÓñ¾µØÄ£ÐÍËùÌṩµÄ·á¸»×ÊÔ´ºÍ¾«È·ÐÔ£¬²¢¿É½«·þÎñÖÃÓÚÔ¶³ÌϵͳÖС£
µ±ÒѾ­ÓÐÖÐÒâµÄÖмä¼þƽ̨£¨RMI¡¢Jini¡¢CORBA¡¢DCOM
µÈµÈ£©Ê±£¬ÎÒÃÇΪʲô»¹ÒªÎªWeb¶ø·³ÄÕÄØ£¿Öмä¼þȷʵÌṩÁËÇ¿´óµÄ·þÎñʵÏÖÊֶΣ¬µ«ÊÇ£¬ÕâЩϵͳÓÐÒ»¸ö¹²Í¬µÄȱÏÝ£¬ÄǾÍÊÇËüÃÇÎÞ·¨À©Õ¹µ½»¥ÁªÍøÉÏ£ºËüÃÇ
ÒªÇó·þÎñ¿Í»§¶ËÓëϵͳÌṩµÄ·þÎñ±¾ÉíÖ®¼ä±ØÐë½øÐнôÃÜñîºÏ£¬¼´ÒªÇóÒ»¸öͬÀà»ù±¾½á¹¹¡£È»¶øÕâÑùµÄϵͳÍùÍùÊ®·Ö´àÈõ£ºÈç¹ûÒ»¶ËµÄÖ´ÐлúÖÆ·¢Éú±ä»¯£¬ÄÇôÁíÒ»
¶Ë±ã»á±ÀÀ£¡£ÀýÈ磬Èç¹û·þÎñÆ÷Ó¦ÓóÌÐòµÄ½Ó¿Ú·¢Éú¸ü¸Ä£¬ÄÇô¿Í»§¶Ë±ã»á±ÀÀ£¡£ÎªÁËÄÜÀ©Õ¹µ½»¥ÁªÍøÔËÓã¬ÎÒÃÇÐèÒªÒ»ÖÖËÉɢżºÏµÄ»ù±¾½á¹¹À´½â¾ ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [6676] [6677] [6678] [6679] 6680 [6681] [6682] [6683] [6684] [6685]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ