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

asp.net¶¯Ì¬Éú³ÉTreeView

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class left : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       GetTreeView();
    }
    private void GetTreeView()
    {
        try
        {
            string connectionstring = "Server=(local);uid=sa;pwd=123456;database=web";//Á¬½ÓSQLÊý¾Ý¿â
            SqlConnection conn = new SqlConnection(connectionstring);
            string sql = "select * from menu where menu_level=1 and parent_id =0";//²éѯһ¼¶½Úµã
            SqlDataAdapter adapter = new SqlDataAdapter(sql, conn);
            DataSet ds1 = new DataSet();
            adapter.Fill(ds1, "temp");
            DataTable table1 = ds1.Tables["temp"];//°Ñ¶ÁÈ¡µÄÊý¾Ý·ÅÈëDATATABLEÖÐ
            TreeView1.Nodes.Clear();//½¨Á¢¸ù½Úµã£¬±éÀú¡£
            foreach (DataRow dr1 in table1.Rows)
            {
                TreeNode root = new TreeNode();
  &


Ïà¹ØÎĵµ£º

ASP.NETÖеÄnÖÖ·¾¶


ÔÚweb·þÎñÆ÷¶Ë¿ª·¢Öо­³£»áÓöµ½¸÷ÖÖ²»Í¬ÐÎʽµÄpath£¬¶øÇÒ¾­³£¼Ç²»Çå³þÈçºÎ»ñÈ¡µ½Ä³ÖÖÌØ¶¨¸ñʽ£¬½ñÌì³éÁ˵ãʱ¼ä°Ñ³£ÓõÄpath»ñÈ¡·½·¨Óë¸ñʽ×öÁËÒ»¸ö¼òµ¥µÄ¶ÔÕÕ±í£¬ÒÔ±¸ÈÕºó²éÓá£
Request»ñÈ¡µÄÐÅÏ¢
Request.AppRelativeCurrentExecutionFilePath           &nb ......

asp.netÉÏ´«Îļþ¸ñʽÏÞÖÆ

if(MyFile.PostedFile.ContentType   !=   "image/gif"    
  &&   MyFile.PostedFile.ContentType   !=   "image/jpg"    
  &&   MyFile.PostedFile.ContentType   !=   "image/pjpeg"    
  && &n ......

asp.net ´òÓ¡ReportViewer±¨±í rdlc±¨±í

net 2.0ÖеÄпؼþReportViewer¿ÉÒÔ·½±ãµÄÖÆ×÷²¢ÏÔʾ±¨±í£¬µ«ÊÇËüûÓÐÖ±½ÓÖ§³ÖÔÚÍøÒ³ÖеĴòÓ¡¡£ÎÒÔÚ·ÖÎöÍøÒ³HTMLÔ´´úÂëµÄ»ù´¡ÉÏÕÒµ½ÁËÖ±½Ó´òÓ¡µÄ¾÷ÇÏ£¬ÏÈ×ö³ÉÒ»¸öº¯Êý£¬·½±ãÖ±½ÓʹÓá£
    1.°üº¬ReportViewer±¨±íµÄÍøÒ³µÄ×îÖÕÐÎʽHTML DOM½á¹¹ÖУ¬±¨±í±»·Åµ½Ò»¸ö<iframe>ÖУ¬ÆäidÃüÃû·½Ê½Îª£º ......

Asp.Netǰ̨µ÷Óúǫ́±äÁ¿

Asp.Netǰ̨µ÷Óúǫ́±äÁ¿
asp.net   2009-07-11 07:27   ÔĶÁ220   ÆÀÂÛ0  
×ֺţº ´ó´ó  ÖÐÖР СС
1.Asp.NetÖм¸ÖÖÏàËÆµÄ±ê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´Ð ......

ASP.NETÒ³ÃæÖØ¶¨Ïò·½·¨Ð¡½á

Òý×Ô: http://renhappy20066.blog.163.com/blog/static/112080786200961172521923/
ASP.NETÒ³ÃæÖØ¶¨Ïò·½·¨Ð¡½á
asp.net   2009-07-11 07:25   ÔĶÁ54   ÆÀÂÛ0  
×ֺţº ´ó´ó  ÖÐÖР СС
Ò³ÃæÖØ¶¨ÏòµÄʹÓúܶ࣬ʵÏÖ·½·¨Ò²Óв»Í¬£¬×Ô¼ºÒ²ÊÔ¹ý¼¸ÖÖ£¬ÏÖÔÚ×ܽáһϡ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ