Add this code in your aspx page. <INPUT type="hidden" id="MyHiddenField" runat="server" value="http://tbn2.google.com/xy/ab.JPG"> <img runat="server" id="hiddenImg" alt="" /> and in code behind add this code HtmlInputHidden hidden = (HtmlInputHidden)Page.FindControl ("MyHiddenField"); Img.Src = hidden.Value; Hope this help.
R
renjithmp
@renjithmp
Posts
-
Problem with mage tag -
Unchecking and disabling checkboxes in asp.netAdd the check boxes (except private check box ) to a checkbox group. and use this code foreach (CheckBox ch in CheckBoxList1.Items) { if(private.checked) { ch.Checked = false; ch.Enabled = false; } else { ch.Checked = true; ch.Enabled = true; } } If you want to do similar kind of operation to a group of items then this is the standard way of doing that. Hope this help
-
How to set favicon for a mobile page .Hi , I have created simple web application in .net 2.0 C# . I have added this code to add a favicon. This is working fine, if I inherit my page from "System.Web.UI.Page". but it is not working if I inherit from "System.Web.UI.MobileControls.MobilePage" .Please tell me the reason and resolution for this?