Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
i am using javascript to get the child control id from a listview but not able to get it. please help me...

in the listview i placed a imagecontrol so i need to get that control id using javascript...

<pre lang="Javascript"> <script type="text/javascript" >       
        function wdt() {
            var wh;
            wh = document.getElementById("<% = TextBox3.ClientID %>").value;
            document.getElementById("<% = (lvPhotos).FindControl(ImageButton1).ClientID %>").width = wh;                      
        }
    </script>
Posted

1 solution

Hi,

I suggest you to use jQuery Selectors[^] for that. You have many examples on net. Search for http://bit.ly/GKgcOp[^] or similar to get better results and from examples you will find solution.

If you can't solve it, just update your question with html that is generated from your asp.NET (only the part of html related to this problem, not whole html) code and I'll try to write selector for you. :)
 
Share this answer
 
v2

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