Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,

I want to bind an image dynamically in the user control. The UC page is loading for the first time but not any more. I want to load UC everytime the .aspx is loading. How can I do this?

XML
I just bind it in .aspx only.

<%@ Register TagPrefix="uc1" TagName="Header" Src="Components/Controls/Header.ascx" %>

<uc1:header id="Header1"   runat="server" EnableViewState="False">


Thanks in adv,
Janes
Posted
Updated 8-Feb-13 23:51pm
v2
Comments
[no name] 9-Feb-13 5:19am    
Can you give the code!!!
maajanes 9-Feb-13 5:43am    
I just bind it in .aspx only.

<%@ Register TagPrefix="uc1" TagName="Header" Src="Components/Controls/Header.ascx" %>

<uc1:header id="Header1" runat="server" EnableViewState="False">
Nandakishore G N 9-Feb-13 5:25am    
check is it inside the !ispostback ..condition..if yes remove it and place outside the condition
maajanes 9-Feb-13 5:42am    
I just bind it in .aspx only.

<%@ Register TagPrefix="uc1" TagName="Header" Src="Components/Controls/Header.ascx" %>

<uc1:header id="Header1" runat="server" EnableViewState="False">
Nandakishore G N 9-Feb-13 5:52am    
s..you have placed in design page..but check it inside the usercontrol code..

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