Image control problem. urgenthttp://forums.asp.net/t/1775792.aspx/1?Image+control+problem+urgentFri, 02 Mar 2012 18:22:59 -050017757924859853http://forums.asp.net/p/1775792/4859853.aspx/1?Image+control+problem+urgentImage control problem. urgent <p>Hi all.</p> <p>I have a issue, in a updatepanel, i have a image control that has a image loaded. i need a way to clear that image and then run server side function where i still have access to data from the current form.</p> <p>any ideas?</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>Thanks</p> 2012-03-02T02:58:42-05:004859864http://forums.asp.net/p/1775792/4859864.aspx/1?Re+Image+control+problem+urgentRe: Image control problem. urgent <p>try this one</p> <pre class="prettyprint">&lt; script type=&quot;text/javascript&quot;&gt; var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_pageLoaded(pageLoaded); var c = 0; function pageLoaded(sender, args) { var img = document.getElementById(&quot;Control&quot;); c&#43;&#43;; img.src = img.src &#43; &quot;?&quot; &#43; c; }</pre> <p>plz mark as <strong>ANSWER</strong> if it helps u</p> 2012-03-02T03:09:14-05:004861232http://forums.asp.net/p/1775792/4861232.aspx/1?Re+Image+control+problem+urgentRe: Image control problem. urgent <p>sorry, im not a java person, trying to learn it as i go, so, can this be called from a button , or is this executed every time the page refreshed from the update panel?</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>thanks</p> 2012-03-02T18:03:19-05:004861255http://forums.asp.net/p/1775792/4861255.aspx/1?Re+Image+control+problem+urgentRe: Image control problem. urgent <p>found my own answer thanks for the help. works great,\</p> <p>for anyone who need to know, i created the following on the page load</p> <p>&nbsp;</p> <p>btn.Attributes.Add(<span size="2" face="Consolas" color="#a31515" style="font-family:Consolas; color:#a31515; font-size:small"><span size="2" face="Consolas" color="#a31515" style="font-family:Consolas; color:#a31515; font-size:small"><span size="2" face="Consolas" color="#a31515" style="font-family:Consolas; color:#a31515; font-size:small">&quot;onclick&quot;</span></span></span><span size="2" face="Consolas" style="font-family:Consolas; font-size:small"><span size="2" face="Consolas" style="font-family:Consolas; font-size:small">, </span></span><span size="2" face="Consolas" color="#a31515" style="font-family:Consolas; color:#a31515; font-size:small"><span size="2" face="Consolas" color="#a31515" style="font-family:Consolas; color:#a31515; font-size:small"><span size="2" face="Consolas" color="#a31515" style="font-family:Consolas; color:#a31515; font-size:small">&quot;javascript:function()&quot;</span></span></span><span size="2" face="Consolas" style="font-family:Consolas; font-size:small">)</span></p> <p><span size="2" face="Consolas" style="font-family:Consolas; font-size:small"></span></p> 2012-03-02T18:22:59-05:00