Your Page you Should Register Like wise
]]>
]]>
Body Section like wise
<snp:usernews id="userNews" runat="Server" xmlns:snp="#unknown">
<asp:button id="btn1" runat="server" text="Click" xmlns:asp="#unknown">
codeFile have :
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
userNews.SrcNews = "Chrysanthemum.jpg";
}
usercontrol modify the Property
public string SrcNews
{
get { return imgNews.Attributes["src"];}
set { imgNews.Attributes["src"] = value;}
}
i hope this code will work