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

ASP.NET¿Ø¼þ¿ª·¢Ö®ÊôÐÔ

Ò»¡¢Ð§¹ûͼ
1.¼òµ¥ÊôÐÔ
2.ÏÂÀ­¿òÊôÐÔ
3.ÑÕÉ«ÊôÐÔ
4.°üº¬ÊôÐÔ
5.¼¯ºÏÊôÐÔ
±à¼­Æ÷
6.ÈÕÆÚÊôÐÍ
¶þ¡¢³ÌÐò´úÂë
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Collections;
namespace GoldWisdom
{

[DefaultProperty("Text")]
[ToolboxData("<{0}:GWEdit runat=server></{0}:GWEdit>")]
//[ToolboxBitmap(typeof(GoldWisdom.Resources.Icon), "GWEdit.bmp")]
//ÒýÓÃϵͳ¿Ø¼þµÄͼ±ê
[ToolboxBitmap(typeof(System.Web.UI.WebControls.TextBox))]
//[ToolboxItem(typeof(GWToolBoxItem))]
public class GWEdit : TextBox
{
[Bindable(true)]
[Category("Appearance")]
[DefaultValue("")]
[Localizable(true)]
public override string Text
{
get
{
String s = (String)ViewState["Text"];
return ((s == null) ? String.Empty : s);
}
set
{
ViewState["Text"] = value;
}
}
//--------------------------------ÒÔÏÂѧϰÊôÐÔ------------------------//
//----------1.¼òµ¥ÊôÐÔ------------//
//×Ö·û´®
[Browsable(true)]
//Ö¸¶¨ÊôÐÔÊÇ·ñÓ¦¸ÃÔÚÊôÐÔ´°¿ÚÖÐÏÔʾ£¬Ê¹Óò¼¶ûÖµÉèÖá£Ò»°ãÇé¿öÏ£¬¶ÔÓÚ³£ÓõĺͱȽÏÖØÒªµÄÊôÐÔÉèÖÃBrowsableΪtrue£¬·ñÔò£¬ÉèÖÃBrowsableΪfalse¡£
[Category("À©Õ¹ÊôÐÔ")]
//Ö¸¶¨ÊôÐÔÔÚÊôÐÔä¯ÀÀÆ÷ÖнøÐзÖ×éÏÔʾµÄÀà±ð¡£¸ÃÉè¼ÆʱÌØÐÔ°ïÖú¿ÉÊÓ»¯±à¼­Æ÷½«ÊôÐÔ½øÐÐÂß¼­·Ö×顣ͨ³£·ÖΪ£ºÍâ¹Û£¨Appearance£©¡¢ÐÐΪ£¨Behavior£©¡¢²¼¾Ö£¨Layout£©¡¢Êý¾Ý£¨Data£©¡¢²Ù×÷£¨Action£©¡¢¼üÅÌ£¨Key£©ºÍÊó±ê£¨Mouse£©µÈ¡£Èç¹ûÄú°²×°µÄÊÇÖÐÎÄ°æµÄIDE£¬ÔòĬÈÏÇé¿öÏÂÖÐÎÄ·ÖÀàºÍÓ¢ÎÄ·ÖÀàÊÇͨÓõģ¬¼´ÉèÖóɓÊý¾Ý”»ò“Data”Àà±ðÊǵȼ۵ġ£
[Description("¼òµ¥ÊôÐÔµÄÃèÊö")]
//ÉèÖÃÏÔʾÔ


Ïà¹ØÎĵµ£º

ASP.netÒ³ÃæÌøת·½Ê½±È½Ï

1 response.redirect Õâ¸öÌøתҳÃæµÄ·½·¨ÌøתµÄËٶȲ»¿ì£¬ÒòΪËüÒª×ß2¸öÀ´»Ø£¨2´Îpostback£©£¬µ«Ëû¿ÉÒÔÌøתµ½ÈκÎÒ³Ã棬ûÓÐÕ¾µãÒ³ÃæÏÞÖÆ£¨¼´¿ÉÒÔÓÉÑÅ»¢Ìøµ½ÐÂÀË£©£¬Í¬Ê±²»ÄÜÌø¹ýµÇ¼±£»¤¡£µ«ËÙ¶ÈÂýÊÇÆä×î´óȱÏÝ£¡redirectÌøת»úÖÆ£ºÊ×ÏÈÊÇ·¢ËÍÒ»¸ö httpÇëÇ󵽿ͻ§¶Ë£¬Í¨ÖªÐèÒªÌøתµ½ÐÂÒ³Ã棬Ȼºó¿Í»§¶ËÔÚ·¢ËÍÌøתÇëÇóµ½·þÎ ......

ASP.NET 2.0 ÖÐµÄ Theme ¹¦ÄÜ

ASP.NET 2.0 ÖÐÐÂÔö¼ÓÁË Theme µÄ¹¦ÄÜ£¬ËüµÄ³öÏÖÄÜÈÃÍøվʵÏÖ»»·ô¸ü¼ÓÈÝÒס£
Theme µÄʵÏÖ°üÀ¨£ºCSS¡¢Skin¡¢MasterPage¡£
CSS ÊÇÓÃÓÚ¿ØÖÆËùÓÐ HTML ±ê¼ÇµÄÍâ¹Û¡£
Skin ÊÇÓÃÓÚ¿ØÖÆËùÓÐ ASP.NET ·þÎñÆ÷µ÷ÕûµÄÍâ¹Û£¬²¢ÇÒ¿ÉÒÔͨ¹ýÊôÐÔ cssClass ¶¨ÒåËüµÄ CSS Ñùʽ¡£
MasterPage ÊÇ *.aspx Ò³ÃæÄ£°æ£¬²»¹ýËüûÓỶ¨Òåµ½ The ......

ÈçºÎÔÚasp.netÖÐÈçºÎÔÚÏß²¥·ÅÊÓƵÎļþ


µÚÒ»ÖÖÊÇÔÚapsxÒ³ÃæÉÏ·ÅÒ»¸öLable¿Ø¼þ
ÕâÖÖ·½Ê½¿ÉÒÔдJavascriptµÈ¿ØÖÆÒ³Ã棬ºÍ²¼¾ÖÒ³Ãæ
ÈçÏ£ºHTMLÒ³Ãæ´úÂ룺
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
  <TITLE>¶àýÌå²¥·ÅÒ³Ãæ</TITLE>
  <meta content=" ......

Asp.netÖÐDataBinder.Eval Ó÷¨

Asp.netÖÐDataBinder.EvalÓ÷¨µÄ×ܽá
<%# Bind("Subject") %> //°ó¶¨×Ö¶Î
<%# Container.DataItemIndex + 1%> //ʵÏÖ×Ô¶¯±àºÅ
<%# DataBinder.Eval(Container.DataItem, "[n]") %>
ͨ³£Ê¹Óõķ½·¨(ÕâÈý¸öÐÔÄÜ×îºÃ)
<%# DataBinder.Eval(Container.DataItem, "ColumnName") %>
<%# DataBi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ