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

ÔÚasp.netÀïÔõô¸ù¾ÝÓû§È¨ÏÞÀ´Éú³ÉÊ÷Ðβ˵¥

ÔÚasp.netÀïÔõô¸ú¾ÝÓû§È¨ÏÞÀ´Éú³ÉÊ÷Ðβ˵¥
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Microsoft.Web.UI.WebControls;
using System.Data.SqlClient;
namespace TreeCS
{
/// <summary>
/// WebForm1 µÄժҪ˵Ã÷¡£
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
   protected Microsoft.Web.UI.WebControls.TreeView TreeView1;
   private void Page_Load(object sender, System.EventArgs e)
   {
    // ¶¨ÒåÊý¾Ý¿âÁ¬½Ó
    SqlConnection CN = new SqlConnection();
    try
    {
     //³õʼ»¯Á¬½Ó×Ö·û´®
     CN.ConnectionString= "data source=pmserver;initial catalog=Benchmark;persist security info=False;user id=sa;Password=sa;";
     CN.Open();
     SqlDataAdapter adp = new SqlDataAdapter("select * from tbTree",CN);
     DataSet ds=new DataSet();
     adp.Fill(ds);
     this.ViewState["ds"]=ds;
    }
    catch (Exception ex)
    {
     Session["Error"] = ex.ToString();
     Response.Redirect("error.aspx");        //Ìøת³ÌÐòµÄ¹«¹²´íÎó´¦ÀíÒ³Ãæ
    }
    finally
    {
     CN.Close();
    }
    //µ÷Óõݹ麯Êý£¬Íê³ÉÊ÷ÐνṹµÄÉú³É
    AddTree(0, (TreeNode)null);
   }
   // µÝ¹éÌí¼ÓÊ÷µÄ½Úµã
   public void AddTree(int ParentID,TreeNode pNode)
   {
    DataSet ds=(DataSet) this.ViewState["ds"];
  &nb


Ïà¹ØÎĵµ£º

Asp.net ÌìÆøÔ¤±¨×ÊÁÏÕûÀí ³õ¸å

ASP.NET»ñÈ¡ÌìÆøÔ¤±¨´óÖ·ÖÎöÓÐ 1µ½Ä³¸öÍøÕ¾ÉÏ·ÖÎöÍøÕ¾µÄ´úÂë»ñÈ¡£»2×Ô¼ºÐ´Çý¶¯·þÎñºÍweb·þÎñ  µÚ¶þÖÖˮ̫Éî²»ÔøÉæ¼°¡£
ASP.NETºǫ́³ÌÐò»ñÈ¡ÖÐÑëÆøÏǫ́ÌìÆøÔ¤±¨
1.ÌìÆø·â×°³ÉÒ»¸öʵÌå
2.¿ÉÒÔ»ñÈ¡µ±ÌìÌìÆø£¬Ò²¿ÉÒÔ»ñȡδÀ´ÎåÌìµÄÌìÆø¼¯ºÏ
using System;
using System.Collections.Generic;
using System.Text;
......

×î½üµÄasp.net×ܽá

1. ËäÈ»ÊÇ.net£¬µ«ÊÇÒѾ­¼¸ºõÍêÈ«·ÅÆúÁË·þÎñÆ÷¿Ø¼þ£¬È¡¶ø´úÖ®µÄÊÇhtml¿Ø¼þ£¬¸³ÖµÊ±ºò¿ÉÒÔͨ¹ý×¢²ájavascript½Å±¾À´Íê³É¡£Ö»ÊÇѧϰ;ÖеÄÒ»¸öʵ¼ù£¬²»ÖªµÀÕâÑù»á²»»á¼õÉÙ±àÒ룬Ôö¼ÓÔËÐÐЧÂÊ¡£
2. ÍƼö¸úJQuery½áºÏ£¬NND£¬ÕâѾÕæµÄºÜÇ¿´ó...Èç¹ûÄã¸úÎÒÒ»ÑùÊÇjsС°×£¬ÓÖÏëNBÒ»°ÑŪ¸öAJAXʲôµÄ£¬ÓÃJQuery°Ñ¡£¡£¡£Õ⺢×Ó°üÄãÂú ......

Asp.netÒ¹»°Ö®Ò»£ºasp.net½éÉÜ


ÌâÍâ»°£ºÈ¥ÄêÖÁ½ñÄêÒÔÀ´£¬Â½Ðøд¹ýһЩԭ´´µÄÎÄÕÂÁË£¬ºÜ¶àÊǶÔÔ­À´Ëù×öÏîÄ¿µÄ×ܽᡣËùÒÔ²¢²»ÊǺÜϵͳºÜÈ«Ã棬¶¼ÊÇÕë¶Ôij¸ö֪ʶµã»òÕßij¸ö¾ßÌåÓ¦ÓÃдµÄ£¬ÓÐЩÅóÓѽ¨ÒéÎÒ°Ñ×Ô¼ºµÄÌå»áд³ÉÒ»¸öϵͳµÄ£¬Õâ´ÎËãÊÇÒ»¸ö³¢ÊÔ°É£¬Ð´µÃ²»ºÃµÄµØ·½Çë´ó¼Ò¾¡Á¿Å×Î÷ºìÊÁ²»Òª¶ª×©Í·¡£
Ö®ËùÒÔ°ÑÕâ¸öϵÁнÐ×ö¡¶asp.netÒ¹»°¡·£¬ÊÇÓÐÒ»Ð©Ô­Ò ......

IISÖÐASP.netµ÷ÊÔ³öÏÖ½ø³Ì±»´ò¶ÏµÄµ÷Õû

 
·ÖÀà: ר¼ÒBlog ÍƼöÕߣºadmin| ä¯ÀÀÁ¿£º489 views| 1 ¸öÆÀÂÛ
Èç¹ûÎÒÃÇÓÃIISËÞÖ÷ASP.net£¬µ¥²½µ÷ÊÔʱ£¬»áÓпÉÄÜÏÂÃæµÄÒì³£±¨³öÀ´£º
—————————
Microsoft Visual Studio
—————————
The web serv ......

asp.net±¸·ÝÊý¾Ý¿â


Asp.Net ±¸·ÝºÍ»Ö¸´SQL SERVER Êý¾Ý¿â
   ÎÒÃÇͨ³£±¸·ÝÊý¾Ý¿âʱ£¬ÐèÒªµÇ¼Êý¾Ý¿â·þÎñÆ÷È¥±¸·ÝºÍ»Ö¸´£¬ÕâÑùºÜ²»·½±ã£¬ÆäʵSQL SERVER×Ô´øµÄÃüÁî¿ÉÄÜÈÃÎÒÃǺܼòµ¥µØʵÏÖÔ¶³Ìͨ¹ýAsp.Net±¸·ÝºÍ»Ö¸´Êý¾Ý¿â¡£
BACKUP DATABASE '±»±¸·ÝµÄÊý¾Ý¿âÃû' TO DISK = '±¸·ÝÎļþ·¾¶';
ALTER DATABASE '±»»Ö¸´µÄÊý¾Ý¿âÃû' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ