urgent
-
In my script i set a variable called impath="whatever.jpg"; ex: <% string impath; impath="wallpaper/" + idvalue + " /thumbs/" + cnt1 + ".jpg";%> I want to be able to use this variable in a href command such as:- src=impath  runat="server" > but of course this syntax is wrong.. How would I define the img src line to use the variable? if u know ans plz let me know ASAP Haritha
-
In my script i set a variable called impath="whatever.jpg"; ex: <% string impath; impath="wallpaper/" + idvalue + " /thumbs/" + cnt1 + ".jpg";%> I want to be able to use this variable in a href command such as:- src=impath  runat="server" > but of course this syntax is wrong.. How would I define the img src line to use the variable? if u know ans plz let me know ASAP Haritha
-
In my script i set a variable called impath="whatever.jpg"; ex: <% string impath; impath="wallpaper/" + idvalue + " /thumbs/" + cnt1 + ".jpg";%> I want to be able to use this variable in a href command such as:- src=impath  runat="server" > but of course this syntax is wrong.. How would I define the img src line to use the variable? if u know ans plz let me know ASAP Haritha
Urgent is not a acceptable message title. Read the how to get answers post at the top of this forum. You may get more/better responses that way.
only two letters away from being an asset
-
Set it up as a public variable in your code behind. Then you can access it with the <% %> You just need to make sure you do some sort of Page.Bind so that the <% %> gets translated to your value. Hope that helps. Ben
A proper design would be to use properties rather than public fields.
only two letters away from being an asset
-
A proper design would be to use properties rather than public fields.
only two letters away from being an asset
-
In my script i set a variable called impath="whatever.jpg"; ex: <% string impath; impath="wallpaper/" + idvalue + " /thumbs/" + cnt1 + ".jpg";%> I want to be able to use this variable in a href command such as:- src=impath  runat="server" > but of course this syntax is wrong.. How would I define the img src line to use the variable? if u know ans plz let me know ASAP Haritha
This is correct however you can add single Quotes or double quotes
Nobody is perfect i'm Nobody