Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 21st, 2006, 05:54 PM
Authorized User
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to savan_thakkar Send a message via Yahoo to savan_thakkar
Default Using Javascript in Nested Datalist

I have two datalists. One simply have a linkbutton with text containing category name & other datalist is inside the first one containing products from respective category.
Html looks something like this.

<asp:datalist id="dlCat" runat="server" Width="100%">
                                <table Width="100%">
                                        <td Width="100%">
                                            <asp:TextBox ID="txtid" Runat=server Visible=False Text='<%# DataBinder.Eval(Container.DataItem,"catid")%>'>
                                            <asp:Button id="btnShow" runat="server" CommandName="show" Text='<%# DataBinder.Eval(Container.DataItem,"catname")%>'>

                                        <td width="100%">
                                            <asp:DataList Runat="server" ID="dlProd" Width="100%">
                                                    <table Width="100%">
                                                            <td Width="100%">
                                                                <%# DataBinder.Eval(Container.DataItem,"prodname")%>
    </table> </ItemTemplate>

I have already bound both the lists.
Now the problem is that I want the second list to be invisible by default.When user clicks on linkbutton, the appropriate child datalist should be visible.All the others should be kept invisible.
This should be done Client side.
I tried a lot for this.Now I think it is almost near to impossible.
Can anyone have idea about this? or any other solution for doing the same?



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tie to nested GridView inside DataList rsearing ASP.NET 2.0 Basics 6 June 18th, 2011 06:35 AM
Nested datalist arijoy ASP.NET 1.0 and 1.1 Professional 0 December 6th, 2006 01:23 PM
hyperlink in nested datalist debjanib ASP.NET 1.0 and 1.1 Professional 3 June 5th, 2006 02:17 PM
hyperlink in nested datalist calling a repeater debjanib C# 1 May 25th, 2006 08:17 AM
Nested DataList Problem orcities C# 0 July 12th, 2004 01:40 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.