Click here to Skip to main content
16,016,770 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)


I am making a directory website and i wanna to display the details according to category id.
so plz help us

Thnx & Regards
krishna
krishnjaiswal4u@gmail.com
Posted
Updated 29-Mar-12 0:40am
v2
Comments
[no name] 29-Mar-12 6:41am    
Question format improved.

I found one useful link for the same.

Cascading Dropdown.
 
Share this answer
 
Comments
krishnajaiswal4u 29-Mar-12 7:23am    
really thx dear

but if u can provide m by using code behind language C# bez i m novice here and making our 1st website .........again thx in advanced
XML
<asp:DataList ID="dtCategoryList" runat="server" Visible="true" CellPadding="4" RepeatColumns="4"   RepeatDirection="Horizontal" CellSpacing="35" HorizontalAlign="left" Width="185px" >
    <ItemTemplate>
        <table cellpadding="0" cellspacing="0" border="0">
           <tr>
              <td align="left">
                 <table cellpadding="0" cellspacing="0" border="0" width="100%">
                     <tr>
                         <td align="center" height="30px">
 <asp:LinkButton Font-Underline="false"   ID="lblMoodName"                                                    runat="server"  Text='<%# Eval ("CategoryName").ToString ().Length > 20 ? Eval ("CategoryName").ToString ().Substring (0, 20) + "..." : Eval("CategoryName").ToString ()%>'  ToolTip='<%# Eval ("CategoryName")%>'  CommandArgument='<%# Eval("CategoryId")%>' ></asp:LinkButton>
                        </td>
                     </tr>
               </table>
          </td>
       </tr>
 </table>
</ItemTemplate>
</asp:DataList>



In server side Get the details based on geatory id and

C#
dtCategoryList.DataSource = dtDetails;
          dtCategoryList.DataBind();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900