writing parameter dynamically

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi All

How can i write dynamic parameter for a java script function in<asp:image>
tag?

for static usage like ;
onmouseover="ChangePicture('images/blue.gif')"
works fine.

I have to use single quotes because the parameter must be string. If i try
like that;

onmouseover='<%# "ChangePicture('" + Eval("BIG_PICTURE_PATH") + "')" %>'

it raises "The server tag is not well formed" error ....

What should I do?

Thanks,

Adam



.



Relevant Pages

  • Re: writing parameter dynamically
    ... What is the complete code for the tag in the *.aspx file? ... the way I showed you, even with single quotes, they work perfectly. ... possible that the error is referring to a different server tag. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Regular Expression question
    ... It also fails to match any image tag where the src attribute is quoted ... using single quotes, or where the src attribute is not enclosed in quotes ... Handle all of that correctly in the regex and the beautiful soup or ...
    (comp.lang.python)
  • Re: htmlentities()
    ... most people use double quotes for their tag attributes rather then single quotes. ... In most circumstances, you don't want both (for instance, setting an onclick attribute on a tag in double quotes: you want the double quotes as entities, converting the single quotes will usually end up destroying the javascript in there. ... Rik Wasmus ...
    (comp.lang.php)