Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 AlltripDLL;
public partial class visa_tree : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindtree(0);
        }
      
    }
    public void bindtree(int id)
    {
        treeclass tree = new treeclass();
        DataTable ds = tree.selectnode(id);
        for (int i = 0; i < ds.Rows.Count; i++)
        {
            TreeNode node = new TreeNode();
            node.PopulateOnDemand =false;
            node.Text = ds.Rows[i]["nodesname"].ToString();
            node.Value = ds.Rows[i]["nodesid"].ToString();
            TreeView1.Nodes.Add(node);
            //node.NavigateUrl = "list.aspx";
            node.SelectAction = TreeNodeSelectAction.Expand;
            bingChildnodes(node);
        }
    }


Ïà¹ØÎĵµ£º

ASP.NETÓëJavaScript½»»¥

1.asp.netºô½Ðjs
view
plain
copy
to clipboard
print
?
Response.Write("<mce:script language=javascript><!--  
");  
Response.Write("alert('»¶Ó­Äú ');"
 );  
Response.Write("location.href='login.aspx';"
)& ......

ʵÏÖasp.netµÄÎļþѹËõ¡¢½âѹ¡¢ÏÂÔØ

ºÜÔçǰ¾ÍÏë×öÎļþµÄ½âѹ¡¢Ñ¹Ëõ¡¢ÏÂÔØ
ÁË£¬²»¹ýһֱûʱ¼ä£¬ÏÖÔÚÏîÄ¿×öÍêÁË£¬½ñÌìŪÁËÏ¡£²»¹ý½âѹ£¬Ñ¹ËõµÄ·½·¨»¹ÊÇ¿´µÄÍøÉϵģ¬ÎûÎû~~²»¹ýÎÒ°ÑËüÃÇ×ÛºÏÁËÒ»ÏÂŶ¡£ºÇºÇ~~
1.ÏÈÒª´ÓÍøÉÏÏÂÔØÒ»¸öicsharpcode.sharpziplib.dll
2.½¨Á¢ÀàAttachmentUnZip£¬ÄÚÈÝÈçÏ£º
using System;
using System.Data;
using System.Config ......

ASP.NET C#ÑéÖ¤Âë¿Ø¼þʹÓÃ

ÑéÖ¤Âë¿Ø¼þWebValidatesµÄʹÓò½ÖèÈçÏ£º
1. ½«ÑéÖ¤Âë¿Ø¼þ·ÅÈ빤¾ßÏä¡£(Ö±½ÓÍ϶¯DLL·Åµ½¹¤¾ßÏä¼´¿É)
2. ÍϷſؼþµ½Ò³ÃæÏàӦλÖá£
3. Ò³Ãæ³õʼ»¯Ê±£¬±à³ÌÉú³ÉÑéÖ¤Â루¼ÙÉèÑéÖ¤Âë¿Ø¼þIDΪsnCode£©¡£
  snCode.Create();//Ê״μÓÔØÉú³ÉÐÂÑéÖ¤Âë
4. ±àÂë¶Ô±ÈÓû§µÄÊäÈ루¼ÙÉèÓû§ÊäÈëÑéÖ¤ÂëµÄÎı¾¿òIDÊÇtxtCode ......

asp.netÖд´½¨table±í¸ñ

ÒýÓÃusing System.Web.UI.HtmlControls;
ǰ̨µÄ<table id="mytab" border="1" runat="server" class="t1" width="600">
                               ......

ASP.NET URL Rewrite. URLÖØÐ´

×î½üÏîÄ¿ÖÐÐèÒªÓõ½urlrewriterÖØÐ´µÄ¹¦ÄÜ ¡£¡£ µ«ÊÇÔÚÖØÐ´ºóµÄurlÀïÈç¹û²úÉú»Ø·¢£¬url¾ÍÓÖ±ä»ØÔ­À´µÄurl Á´½Ó¡£¡£
ÔÚÍøÉÏÕÒÁ˺þã¬ÖÕÓÚÕÒµ½Ò»¸ö¿ÉÒÔÕý³£Ê¹Óã¬ÓֱȽÏÈÝÒ×·½·¨¡£¡£ ºÙºÙ £¬×Ô¼º¼Ç¼һϰɡ£
ASP.NET URL Rewrite. URLÖØÐ´
URL ÖØÐ´ÊǽØÈ¡´«Èë Web ÇëÇó²¢×Ô¶¯½«ÇëÇóÖØ¶¨Ïòµ½ÆäËû URL µÄ¹ý³Ì¡£
  ± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ