Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
ok let me explain my problem. i have two datalists on same page parendl and childdl parentdl has some initial info of all the records having a view details button when user clicks on view details button of an particular record then all the info of that record clicked should be display on child datalist
i know how to pass values from one page to another which some thing like
C#
protected void datalist_ItemCommand(object source, datalistCommandEventArgs e)
    {
        if (e.CommandName == "details")
        {
            Response.Redirect("./Repeater_DataSource.aspx?house_id=" + e.CommandArgument);

        }
    }

but i don't know how to pass values from parent datalist to child datalist within same window
i will deeply appreciate if some one could come up with an example
thanks
Posted
Comments
Jim Jos 25-May-12 7:47am    
Could you put your entire code here we could help...

1 solution

I'm guessing that you are actually asking for how to set up a userinterface for a Master/Detail relation.
If that's the case have a look at: Master/Detail Filtering With a DropDownList[^]

Best regards
Espen Harlinn
 
Share this answer
 
v2
Comments
Prasad_Kulkarni 25-May-12 7:52am    
There is problem Espen, link is broken its giving error The page you are looking for is not available
Espen Harlinn 25-May-12 13:55pm    
Thanks :-D
Wendelius 25-May-12 16:02pm    
Good answer!
Espen Harlinn 26-May-12 4:35am    
Thank you Mika :-D
VJ Reddy 31-May-12 20:11pm    
Good answer. 5!

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