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

Asp.net DataListǶÌ×DataListµÄʵÏÖ


Asp.net DataListǶÌ×DataListµÄʵÏÖ
[ 2006-05-31 01:26:24 | ×÷Õß: Admin ]
×ÖÌå´óС: ´ó | ÖÐ | С
Êý¾Ý·þÎñ¿Ø¼þµÄǶÌ××îÖ÷ÒªµÄÊÇÊÇÄÚ²ã¿Ø¼þÊý¾ÝµÄ¼ÓÔØºÍʼþµÄ´¥·¢¡£ DataListǶÌ×µÄÖØµãÊÇÒªÔÚÍâ²ãDataListµÄItemDataBoundʼþÖÐÓÃe.Item.FindControl·½·¨À´ÕÒµ½Ç¶ÌײãDataListµÄid,±àдǶÌײãDataListµÄ°ó¶¨Êý¾ÝԴʼþ¡£ÏÂÃæÒÔÁ½²ãDataListΪÀý½éÉÜÏÂʵÏֵĹý³Ì¡£Ð§¹ûÈçÏÂͼ£º
---------ǰ̨html´úÂë-------
<asp:datalist id="dlFileType" RepeatColumns="2" runat="server">
<ItemTemplate>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="22%" height="88" align="center" valign="top">
<img src='<%#DataBinder.Eval(Container.DataItem, "cnvcPicURL")%>' width="80" height="80">
</td>
<td valign="top">
<table width="96%" border="0" cellpadding="0" cellspacing="0">
<tr width="100%">
<td colspan="2"><img src='<%#PageBase.strStyleRoot+"/picture/pic_fwzn_08.gif"%>' height="20"><%#DataBinder.Eval(Container.DataItem, "cnvcTitle")%>
<asp:Label id="labFileType" runat="server" Visible=False Text='<%# DataBinder.Eval(Container.DataItem,"cniFileTypeID")%>'>
</asp:Label></td>
</tr>
<tr>
<td width="300">
<asp:DataList id="dlFileList" runat="server" RepeatColumns="1" Width="100%">
<ItemTemplate>
<TABLE cellSpacing="1" cellPadding="1" width="100%" border="0">
<tr>
<td width="7%" height="20" align="center">
<img src='<%#PageBase.strStyleRoot+"/picture/pic_fwzn_dot.gif"%>' width="3" height="3"></td>
<td width="93%">
<font color="#393939">
<%#GetTitle((string)Convert.ToString(DataBinder.Eval(Container.DataItem, "cnvcTitle")),(string)Convert.ToString(DataBinder.Eval(Container.DataItem, "cnvcFileType")),(string)Convert.ToString(DataBinder.Eval(Container.DataItem, "cniBaseFileID")),(DateTime)DataBinder.Eval(Container.DataItem, "cndtPublishTime"))%>
</font>
</td>
</


Ïà¹ØÎĵµ£º

asp.net ö¾Ù string×Ö·û´® תΪºº×Ö

   public static string TheColor(string color,string enumName)
        {
            return string.Format("<span style=\"color={0}\">{1}</span>",color,enumName);
     ......

asp.net³£ÓüÓÃܽâÃÜ·½·¨

Ò»¡¢Êý¾Ý¼ÓÃÜ/±àÂëËã·¨Áбí
³£¼ûÓÃÓÚ±£Ö¤°²È«µÄ¼ÓÃÜ»ò±àÂëËã·¨ÈçÏ£º
1¡¢³£ÓÃÃÜÔ¿Ëã·¨
ÃÜÔ¿Ëã·¨ÓÃÀ´¶ÔÃô¸ÐÊý¾Ý¡¢ÕªÒª¡¢Ç©ÃûµÈÐÅÏ¢½øÐмÓÃÜ£¬³£ÓõÄÃÜÔ¿Ëã·¨°üÀ¨£º
DES£¨Data Encryption Standard£©£ºÊý¾Ý¼ÓÃܱê×¼£¬ËٶȽϿ죬ÊÊÓÃÓÚ¼ÓÃÜ´óÁ¿Êý¾ÝµÄ³¡ºÏ£»
3DES£¨Triple DES£©£ºÊÇ»ùÓÚDES£¬¶ÔÒ»¿éÊý¾ÝÓÃÈý¸ö²»Í¬µÄÃÜÔ¿½ ......

asp.net ÍøÕ¾°²È«½â¾ö·½°¸

      1¡¢sql×¢Èë©¶´¡£
  
   ½â¾ö°ì·¨£ºÊ¹Óô洢¹ý³Ì£¬²ÎÊý²»ÒªÓÃ×Ö·û´®Æ´½Ó¡£¼òµ¥¸Ä½ø°ì·¨£ºÊ¹ÓÃSqlHelperºÍOledbHelper
  
   2¡¢¿çÕ¾½Å±¾Â©¶´
  
   ½â¾ö°ì·¨£º“ĬÈϽûÖ¹£¬ÏÔʽÔÊÐ픵IJßÂÔ¡£¾ßÌå²Î¿¼£ ......

asp.net ÎÄÕÂÄÚÈÝ·ÖÒ³ÏÔʾµÄ´úÂë

aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ArticlePage.aspx.cs" Inherits="ArticlePage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > ......

Cascading DropDownLists With ASP.NET and jQuery


Cascading drop down lists is a really nice feature for web developers. I thought it was time to write an article on how to do this using ASP.NET and jQuery. Well here’s one way of doing it. Before we get started, this example uses the latest version of jQuery which is 1.3.2.&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ