Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I am developing an ASP.net application with c# in VS2010. My web page contains a dropdownlist with 4 options and on select of each item it shows different items as below. Please refer to the code below.
XML
<asp:Label ID="Label1" runat="server" Text="Select any filter">
<asp:DropDownList ID="ddlfilter" runat="server" AppendDataBoundItems="True" CssClass="TextBox" onchange="return changefilter()">
     <asp:ListItem>Select a filter
     <asp:ListItem>Date Range
     <asp:ListItem>Paralegal Name<small></small>
     <asp:ListItem>Group Name

The rows to display:-
XML
<tr id="1" style="display: none">
   <td>
      <asp:TextBox ID="txtStartDate" runat="server">
      <asp:TextBox ID="txtEndDate" runat="server" >
   </td>                                 
 </tr>

 <tr id="2" style="display: none><br mode=" hold=" />
   <td><br mode=" ddlparalegalname=" runat=" server=" AppendDataBoundItems=" true="<br mode=" employeename=" DataValueField=" employeeid=" ><br mode=" 3=" style=" none="> <br mode=" txtgroupname=" runat=" block=";<br mode=">
</tr>
Posted
Updated 4-Apr-12 18:42pm
v6
Comments
Ankur\m/ 5-Apr-12 0:43am    
You haven't talked about your issue in the question.
tulasiram3975 5-Apr-12 0:50am    
You did't Close TD in second row...
ZurdoDev 5-Apr-12 8:15am    
tulasiram3975 is correct. However, what is your question?
Tejas Vaishnav 6-Apr-12 0:44am    
please write your code which will use to show your hidden row. as well as correct your formatting issue in your design as mention above.
and please write your question properly and also include each and every thing regarding your code and question.

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