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

Asp.net treeviewʵÏÖÎÞÏÞ¼¶Ê÷

×î½üÑо¿ÁËÒ»ÏÂtreeview£¬·¢ÏÖÓÐÁ½ÖÖʵÏÖÎÞÏÞ¼¶Ê÷µÄ·½·¨£¬ÎÄ×Ö²»Ïë¶àд£¬Ö±ÈëÖ÷Ìâ¡£
ÏÈ¿´¿´Êý¾Ý¿â±íµÄÉè¼Æ£¬Êý¾Ý±íÖ÷Òª°üÀ¨ID£¬Name£¬ParentIDÕâÈýÏÆäÖÐIDÊÇÖ÷¼ü£¬ParentID¶ÔÓ¦½ÚµãµÄ¸¸½Úµã£º
·½·¨Ò»£ºÓõݹé±éÀúÊý¾Ý£¬²¢½«½ÚµãÖð¸öÌí¼Óµ½treeviewÖÐÈ¥¡£
1.ÏȽøÐÐÊý¾Ý¿âÁ¬½ÓºÍÊý¾ÝµÄ¶ÁÈ¡£¬²¢½«¸ù½ÚµãÏÈÌí¼Ó½øtreeviewÖУ¬²¢ÀûÓõݹégetTreeView£¨£©ÊµÏÖÊý¾ÝµÄ±éÀúºÍÌí¼Ó£¬ÆäÖÐÒªÓõ½Õ»Stack<>£º
 protected void Page_Load(object sender, EventArgs e)
        {
           
            if (!Page.IsPostBack)
            {
                TreeNode nodeCategory ;
                connection conn = new connection();
                List<Category> category = conn.getCategory();
                Stack<Category> storeCategory = new Stack<Category>();
                storeCategory.Push(category[0]);
                nodeCategory = new TreeNode(category[0].Name.Trim(), category[0].Id.Trim());
                TreeView1.Nodes.Add(nodeCategory);
                getTreeView(storeCategory, category, nodeCategory);
                           &


Ïà¹ØÎĵµ£º

asp.net¶¯Ì¬Ìí¼ÓͼƬˮӡ

web.config
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb=" ......

Asp.net»Ø³µÄ¬ÈÏ°´Å¥Ê¼þ½â¾ö·½°¸


Ò»¡¢
Js
ÉèÖÃĬÈÏ°´Å¥
       
function
document.onkeydown()
       
{
           
var
e=event
.srcElement;
        &nbs ......

asp.net¼òµ¥Êý×ÖÑéÖ¤ÂëµÄʵÏÖ

µ÷ÓÃ
ÑéÖ¤Â룺<input type="text" id="txtValidate" style="border: solid 1px #9B9B9B; width: 85px;
height: 17px;" />  <img src="Rnd.aspx" mce_src="Rnd.aspx" style="width: 58px; height: 17px;
border: solid 1px #9B9B9B" align="abs ......

asp.net ÊÂÎñÀý×Ó

protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection conn;
SqlCommand cmd1, cmd2;
SqlTransaction tra;
conn = new SqlConnection("server=.;database=test;uid=sa;pwd=123");
conn.Open();
tra = conn.BeginTransaction();//¿ªÊ¼ÊÂÎ ......

asp.net¶ÔÓÚ³¤ÆªÎÄÕ½øÐзÖÒ³

¶ÔÓÚÎÄÕÂƪ·ù±È½Ï³¤µÄ£¬¾Í±ØÐë²ÉÓ÷ÖÒ³ÏÔʾ¡£ÔÚ.netÖжԳ¤ÆªÎÄÕ·ÖÒ³Ò»°ãÓÐ2ÖÖ·½·¨£¬µÚÒ»ÖÖ¾ÍÊÇÏȼÆËãºÃÒ»Ò³µÄÎÄ×Ö³¤¶ÈÊǶàÉÙ£¬È»ºó°ÑÎÄÕÂ×ܵij¤¶È³ýÉèÖúõĵ¥Ò³ÎÄ×Ö³¤¶È¼°¿É£¬ÓÃÕâ·½·¨¿ÉÒÔ¼õÉÙÈÏΪ½øÐзÖÒ³µÄ·±Ëö£¬µ«ÊÇÕâÑù·ÖÒ³³öÀ´µÄ¿ÉÄܲ»ÊǺÜÕýÈ·£¬ÒòΪ²»ÄÜ´ïµ½ÏëÔÚijЩÌصãλÖýøÐзÖÒ³¡£µÚ¶þÖÖ¾ÍÊÇͨ¹ýÈËΪºÍ³ÌÐòÊµÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ