<li><a href="#">Franchisee</a>
<ul>
<li>
<asp:DataList ID="DataList2" runat="server" OnItemCommand="DataList2_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("Product_Name") %>' CommandName="pn" Text='<%#Eval("Product_Name") %>'></asp:LinkButton>
</ItemTemplate>
</asp:DataList></li>
<li><a href="Refurbished.aspx">REFURBISHED TRUCKS </a></li>
</ul>
</li>
public void datashow()
{
try
{
da = new SqlDataAdapter("select Product_Name from Product", con);
dt = new DataTable();
da.Fill(dt);
DataList1.DataSource = dt;
DataList1.DataBind();
}
catch (Exception)
{
}
}
<ul>
<li>
<asp:DataList ID="DataList2" runat="server" OnItemCommand="DataList2_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("Product_Name") %>' CommandName="pn" Text='<%#Eval("Product_Name") %>'></asp:LinkButton>
</ItemTemplate>
</asp:DataList></li>
<li><a href="Refurbished.aspx">REFURBISHED TRUCKS </a></li>
</ul>
</li>
public void datashow()
{
try
{
da = new SqlDataAdapter("select Product_Name from Product", con);
dt = new DataTable();
da.Fill(dt);
DataList1.DataSource = dt;
DataList1.DataBind();
}
catch (Exception)
{
}
}
No comments:
Post a Comment