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

ASP.NETÒ³Ãæ¶ÔÏó

 Ò»¡¢Page Àà
      Page ÀàÓëÀ©Õ¹ÃûΪ .aspx µÄÎļþÏà¹ØÁª£»ÕâЩÎļþÔÚÔËÐÐʱ±»±àÒëΪ Page ¶ÔÏ󣬲¢±»»º´æÔÚ·þÎñÆ÷ÄÚ´æÖС£Èç¹ûÊÇʹÓôúÂëÒþ²Ø¼¼Êõ´´½¨ Web ´°ÌåÒ³£¬Çë´Ó¸ÃÀàÅÉÉú¡£
Àý£º£¨public partial class _Default : System.Web.UI.Page£©
      Page ¶ÔÏó³äµ±Ò³ÖÐËùÓзþÎñÆ÷¿Ø¼þ£¨ÊµÏÖ INamingContainer ½Ó¿ÚµÄ¿Ø¼þ»òʵÏִ˽ӿڵĿؼþµÄ×ӿؼþ³ýÍ⣩µÄÃüÃûÈÝÆ÷¡£
ÏÂÃæµÄ´úÂëʾÀýÑÝʾÈçºÎÔÚ´úÂëÒþ²ØҳģÐÍÖÐʹÓà Page Àà¡£×¢Ò⣬´úÂëÒþ²ØÔ´ÎļþÉùÃ÷ÁËÒ»¸ö´Ó»ùÒ³Àà¼Ì³ÐµÄ·Ö²¿Àà¡£»ùÒ³Àà¿ÉÒÔÊÇ Page£¬Ò²¿ÉÒÔÊÇ´Ó Page ÅÉÉúµÄÆäËûÀà¡£ÁíÍâÇë×¢Ò⣬·Ö²¿ÀàÔÊÐí´úÂëÒþ²ØÎļþʹÓÃÒ³Öж¨ÒåµÄ¿Ø¼þ£¬¶øÎÞÐ轫Æ䶨ÒåΪ×ֶγÉÔ±¡£
using System;
 
public partial class MyCodeBehindCS : System.Web.UI.Page
{    
    protected void Page_Load(object sender, EventArgs e)
    {
 
        // Place page-specific code here.
 
 
    }
 
    // Define a handler for the button click.
    protected void SubmitBtn_Click(object sender, EventArgs e)
    {   
 
        MySpan.InnerHtml = "Hello, " + MyTextBox.Text + ".";
 
    }
}
ÏÂÃæµÄ´úÂëʾÀýÑÝʾÓëÇ°ÃæµÄ´úÂëÒþ²ØÔ´Îļþ¶ÔÓ¦µÄ .aspx Îļþ£º
<%@ Page Language="C#" CodeFile="pageexample.aspx.cs" Inherits="MyCodeBehindCS" %>
 
<html>
<head runat="server">
    <title>Page Class Example</title>
</head>
<body>
    <form runat="server">
    <div>
       <table>
          <tr>
            <td> Name: </td>
            <td> <asp:textbox id="MyTextBox"


Ïà¹ØÎĵµ£º

ASP.NET¹ØÓÚÌõÐÎÂëµÄÉú³ÉÎÊÌâ¼æÍøÒ³´òÓ¡

ÌõÐÎÂëÊÇÆù½ñΪֹ×î¾­¼Ã¡¢ÊµÓõÄÒ»ÖÖ×Ô¶¯Ê¶±ð¼¼Êõ¡£ÌõÐÎÂë¼¼Êõ¾ßÓÐÒÔϼ¸¸ö·½ÃæµÄÓŵã
¡¡¡¡A£®ÊäÈëËٶȿ죺Óë¼üÅÌÊäÈëÏà±È£¬ÌõÐÎÂëÊäÈëµÄËÙ¶ÈÊǼüÅÌÊäÈëµÄ5±¶£¬²¢ÇÒÄÜʵÏÖ“¼´Ê±Êý¾ÝÊäÈ딡£
¡¡¡¡B£®¿É¿¿ÐԸߣº¼üÅÌÊäÈëÊý¾Ý³ö´íÂÊΪÈý°Ù·ÖÖ®Ò»£¬ÀûÓùâѧ×Ö·ûʶ±ð¼¼Êõ³ö´íÂÊΪÍò·ÖÖ®Ò»£¬¶ø²ÉÓÃÌõÐÎÂë¼¼ÊõÎóÂëÂʵ ......

asp.netÏòÎļþдÈëÈÕÖ¾

 using System;
using System.IO;
namespace WriteLog
{
    /// <summary>
    /// WriteInLog µÄժҪ˵Ã÷¡£
    /// </summary>
    public class WriteInLog
......

asp.net form±êǩǶÌ× Ìá½»Ò³ÃæµÄ½â¾ö·½·¨


Ô­ÌûµØÖ·:http://blog.cnria.com/post/aspnet-form-e5b58ce5a597-e68f90e4baa4e9a1b5e99da2e79a84e8a7a3e586b3e696b9e6b395-from-e5b58ce5a597-aspnet-e8a1a8e58d95.aspx
Õâ¸öÎÊÌâµÄÔ­ÒòÆäʵ²¢²»ÊÇasp.net ÔËÐлúÖƵÄÔ­Òò£¬¶øÊÇÒòΪÔÚhtmlÖб¾Éí¾Í²»ÔÊÐíform±êǩǶÌ×ʹÓã¬ÎÒÊÔ¹ýdocument.getelementbyid("search&q ......

ASP.NETÒ³ÃæÖ¸Áî

ASP.NETÖ¸ÁîÔÚÿ¸öASP.NETÒ³ÃæÖж¼ÓС£Ê¹ÓÃÕâЩָÁî¿ÉÒÔ¿ØÖÆASP.NETÒ³ÃæµÄÐÐΪ¡£ÏÂÃæÊÇPageÖ¸ÁîµÄÒ»¸öÀý×Ó£º
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
    Inherits="_Default" %>
ÔÚASP.NETÒ³Ãæ»òÓû§¿Ø¼þÖÐÓÐ11¸öÖ¸Áî¡£ÎÞÂÛÒ³ÃæÊÇʹÓúǫ́±àÂëÄ£ÐÍ»¹ÊÇÄÚÖñ ......

ASP.NETÒ³Ãæ¶ÔÏó

   »ñÈ¡ÇëÇóµÄÒ³µÄ HttpRequest ¶ÔÏó¡£
Ò»¡¢HttpRequest Àà
ʹ ASP.NET Äܹ»¶ÁÈ¡¿Í»§¶ËÔÚ Web ÇëÇóÆڼ䷢Ë굀 HTTP Öµ¡£
      ÏÂÃæµÄ´úÂëʾÀýʹÓà StreamWriter ÀཫÈô¸É HttpRequest ÀàÊôÐÔÖµµÄֵдÈëÎļþ¡£¶ÔÓÚÊÇ×Ö·û´®ÀàÐ͵ÄÊôÐÔ£¬ÊôÐÔÖµ±»Ð´ÈëÎļþʱ½«±»±àÂëΪ HTML¡£±íʾ¼¯ºÏµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ