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

asp.net ¼Ì³ÐÉí·ÝÑéÖ¤

 ÔÚASP.NETÍøÕ¾ÖÐÍøÕ¾¹ÜÀíºǫ́ÐèÒª¾­³£ÑéÖ¤Óû§Éí·Ý,ҪʵÏÖÕâÖÖ¹¦ÄܾͿÉÒÔÀûÓÃÄǸö¼Ì³Ð»úÖƺÍASP.NETµÄʼþ»úÖÆ.Ê×Ïȶ¨ÒåÒ»¸öÐèÒª½øÐÐÉí·ÝÑéÖ¤µÄBasePageÀà,¼Ì³Ð×ÔPageÀà,ÔÚBasePageÀàµÄ¹¹Ô캯ÊýÖж¨ÒåËüµÄ¼ÓÔØʼþµÄ´¦Àí´úÂë,ÕâÑùËùÓм̳Ð×ÔBasePageÀàµÄÒ³Ã涼ÄÜ×Ô¶¯Ö´ÐÐÉí·ÝÑéÖ¤.
/// <summary>
/// ÑéÖ¤µÇ½Àà
/// </summary>
public class ValidateLogin : System.Web.UI.Page //¼Ì³Ð×ÔSystem.Web.UI.Page
{
public ValidateLogin()
{
//µ±Ò³Ãæ¼ÓÔØʱִÐиÃʼþ
this.Load += new EventHandler(BasePage_Load);
}

//¶ÔµÇ¼½øÐÐÑéÖ¤
protected void BasePage_Load(object sender,EventArgs e)
{
if (Session["uid"] == "" || Session["uid"] == null)
{
Response.Redirect("~/login.aspx");
}
}
}
public partial class Default : ValidateLogin //¼Ì³Ð×ÔValidateLoginÀà
{
protected void Page_Load(object sender, EventArgs e)
{
//¼Ì³Ð×ÔValidateLoginÀà,ʵÏּ̳ÐÉí·ÝÑéÖ¤
}
}


Ïà¹ØÎĵµ£º

ÓÃasp.netʵÏֵİѱ¾ÎÄÍƼö¸øºÃÓѹ¦ÄÜ


     ///<summary>
  ///<author>·ÉÓ¥@ASPCool.com</author>
  ///<description>±¾ÎÄÓÃasp.netʵÏÖ°Ñ´ËÎÄÍƼö¸øºÃÓѵŦÄÜ¡£</desciption>
  ///<copyright>ASP¿á¼¼Êõ×ÊѶÍø(www.ASPCool.com)</copyright>
  ///</summary ......

Asp.netÖÐDataBinder.Eval Ó÷¨

Asp.netÖÐDataBinder.EvalÓ÷¨µÄ×ܽá
<%# Bind("Subject") %> //°ó¶¨×Ö¶Î
<%# Container.DataItemIndex + 1%> //ʵÏÖ×Ô¶¯±àºÅ
<%# DataBinder.Eval(Container.DataItem, "[n]") %>
ͨ³£Ê¹Óõķ½·¨(ÕâÈý¸öÐÔÄÜ×îºÃ)
<%# DataBinder.Eval(Container.DataItem, "ColumnName") %>
<%# DataBi ......

6ÌõASP.NET±à³ÌʵÓü¼ÇÉ

À´Ô´£ºhttp://www.code-123.com/html/2009917202320580.html
  1.¸ú×ÙÒ³ÃæÖ´ÐÐ
      ÉèÖöϵãÊÇÒ³Ãæµ÷ÊÔ¹ý³ÌÖеij£ÓÃÊֶΣ¬³ý´ËÖ®Í⣬»¹¿ÉÒÔͨ¹ý²é¿´Ò³ÃæµÄ¸ú×ÙÐÅÏ¢½øÐдíÎóÅŲéÒÔ¼°ÐÔÄÜÓÅ»¯¡£ASP.NETÖÐÆôÓÃÒ³Ãæ¸ú×ٷdz£·½±ã£¬Ö»ÐèÔÚPageÖ¸ÁîÖмÓÈëTrace="True"ÊôÐÔ¼´¿É£º
  ......

ÕÐƸ£ºasp.net(c#)¸ß¼¶Èí¼þ¹¤³ÌʦһÃû

ÈÎÖ°×ʸñ:
1. ´óѧ±¾¿ÆÒÔÉÏѧÀú£¬ÈýÄêÒÔÉÏÈí¼þ¿ª·¢¹¤×÷¾­Ñé»ò»¥ÁªÍø¿ª·¢¾­Ñ飻¾ßÓжþ¸ö¼°ÒÔÉÏÖÐÐÍÏîÄ¿µÄ³É¹¦ÊµÊ©¾­Ñ飻
2. ÓÐ׼ȷÀí½âÐèÇ󡢼ܹ¹ÄÜÁ¦£¬ÓнÏÇ¿µÄ³ÌÐòÉè¼ÆÄÜÁ¦, ÊìϤÃæÏò¶ÔÏó·ÖÎö¡¢Èí¼þ¹¤³Ì¡¢UMLµÈÏà¹Ø¼¼Êõ£»
3. ÊìÁ·ÕÆÎÕ¼ÆËã»ú±à³ÌÒ»°ã˼ÏëºÍ·½·¨£»ÊìϤһÖÁÁ½ÖÖÃæÏò¶ÔÏó±à³ÌÓïÑÔ£»¾«Í¨.NET¡¢ C#¡¢ASP.net¡ ......

ASP.NETÈ¥µôHTML±ê¼Ç

using System;
using System.Web;
using System.Text.RegularExpressions;
public static string NoHTML(string Htmlstring)  
  {  
   //ɾ³ý½Å±¾  
   Htmlstring   =   Regex.Replace(Htmlstring,@"<script[^>]*?>.*?&l ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ