Problem with mage tag
-
Hi All i am assingning a dynamic value to image through hidden feild value and it is not working. the tag is <img src="<%hidden1.value%>" alt=""/> this does not show any image and on checking the properties of image it says no URL defined Thanks in advance!!!!!
-
Hi All i am assingning a dynamic value to image through hidden feild value and it is not working. the tag is <img src="<%hidden1.value%>" alt=""/> this does not show any image and on checking the properties of image it says no URL defined Thanks in advance!!!!!
<%= you are missing "=" char
-
Hi All i am assingning a dynamic value to image through hidden feild value and it is not working. the tag is <img src="<%hidden1.value%>" alt=""/> this does not show any image and on checking the properties of image it says no URL defined Thanks in advance!!!!!
IT_Help wrote:
the tag is
use
IT_Help wrote:
this does not show any image and on checking the properties of image it says no URL defined
What is the hidden1.value returning, From Are you giving the path ??
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
IT_Help wrote:
the tag is
use
IT_Help wrote:
this does not show any image and on checking the properties of image it says no URL defined
What is the hidden1.value returning, From Are you giving the path ??
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
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.