Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..!

I have a user control in which i'm setting some default values of html controls in document.ready().

Now, i'm adding that user control to the update panel of the main page dynamically from code behind.

Plz note that, on asynchronous post back, i'm adding that control.

but, document.ready() of the user control is not getting fired at all..!

i understood the reason for why it is not getting fired.

But im unable solve this issue.

Can some one help me get out of this problem?

Thank You..!
Posted
Comments
Maarten Kools 31-Jan-14 4:59am    
did you try document.ready() or $(document).ready()?
Tuduru Sai Krishna 31-Jan-14 5:04am    
$(document).ready()
Maarten Kools 31-Jan-14 5:09am    
Is the control an IScriptControl by any chance? Post some code otherwise, you can use the "Improve question" button to edit your question.
TrushnaK 31-Jan-14 5:11am    
post your code..
Tuduru Sai Krishna 31-Jan-14 5:29am    
Here is my user control
<script type="text/javascript">
$(document).ready(function() {
$('#liquid').liquidcarousel({height:160});
});
</script>
<div id="liquid1" class = "liquid" style="height: 129px; overflow: hidden;width:290px;">
<span class="previous"></span>
<div class="wrapper" style="height: 129px; overflow: hidden; float: left; width: 150px;">
<ul style="height: 129px; float: left; margin: 0px; padding: 0px; display: block;">
<asp:Literal ID="ImgLiterals" runat="server" Text="">
</ul>
</div>
<span class="next"></span>
</div>

1 solution

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