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);
}
}
Ïà¹ØÎĵµ£º
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³ÌÐò£¬ÎÒÃÇÓ¦¸Ã¾¡¿ÉÄܵÄÌṩһ¸ö±ã½ÝµÄÓû§½Ó¿Ú£¬¼õÉÙÒ³Ãæ»Ø´«¾ÍÊÇÆäÖÐÖ®Ò»¡£
±¾ÎÄÑÝʾһ´ÎÉÏ´«¶à¸öÎļþµÄ·½·¨£¬ÔÚ¿Í»§¶Ë¿ÉÒÔËæÒâ¿ØÖÆÉÏ´«ÎļþµÄ¸öÊý£¬µ«ÊÇ×¢Òâ×ÜÎļþ´óС²»Äܹý´ó£¬·ñÔò»áÓÐÒì³£Å׳ö¡£ÖÁÓÚ½â¾ö´óÎļþÉÏ´«µÄ·½·¨ÒѾ³¬³ö±¾ÎĵÄÌÖÂÛ·¶Î§¡£
<×¢£º´ó¸½¼þ°ì·¨>
<
<configuration> ......
ÒÔϽéÉÜÁ½ÖÖ·ÖÒ³£¬ÓÃAspNetPagerºÍViewState
Ò».AspNetPagerµÄÓ÷¨
1. ¸´ÖÆAspNetPager.dllµ½binĿ¼£¬ÔÚ¹¤¾ßÏä->Ñ¡ÔñÏî->ä¯ÀÀ£¬Ìí¼ÓbinϵÄÒýÓá£
2. ´Ó¹¤¾ßÏäÍϸöAspNetPager£¬¸ÄÈçÏÂÊôÐÔ£º
PageSize--ÿҳÏÔʾµÄ¼Ç¼Êý
CustomInfoHTML--×Ô¶¨ÒåÏÔʾÎı¾£¬Ò»°ãΪ& ......
1.Using jQuery with ASP
.NET
http://dotnetslackers.com/articles/ajax/using-jquery-with-asp-net.aspx
°üÀ¨jQueryÔõôµ÷ÓÃasp.net web service
2.jQuery and ASP.NET AJAX
UpdatePanel
http://www.dotnetfunda.com/articles/article471-jquery-and-aspnet-ajax-updatepanel.aspx
²¿·Ö¸üкóÔõô±£³ÖjQueryÓ¦Ó ......
1¡¢»ùÓÚASP.NET¼¼ÊõµÄÒ³Ãæ»º´æ
¡¡¡¡»ùÓÚASP.NET¼¼ÊõµÄÒ³Ãæ»º´æ£¬Í¨³£ÓÐÈçÏÂÁ½ÖÖÓ¦Ó÷½Ê½£º
¡¡¡¡Ò»¡¢»ùÓÚÊý¾Ý¿â´¥·¢(ÉèÖûº´æÒÀÀµ²ßÂÔ£¬µ±Êý¾Ý¿âÖÐÊý¾Ý·¢Éú±ä»¯Ê±£¬´¥·¢»º´æÊ§Ð§;µ«Î¢ÈíÌṩµÄ½â¾ö·½°¸Ä¿Ç°½öÖ§³ÖSQL Server,Èç¹ûÊÇORACLEÐèÒª×Ô¼ºÊµÏÖ´¥·¢½Ó¿Ú)¡£
¡¡¡¡¶þ¡¢»ùÓÚÎļþÒÀÀµµÄ²ßÂÔ(¿ÉÒÔÉèÖûº´æÒÀÀµÓÚÎļþÖÐµÄ¾ß ......