Hi guys...i am displaying some html images on the web page dynamically...i want to add an tag to that image so that the user would be able to click on the image and navigate...
How can we add a tag in C# code
Hi guys...i am displaying some html images on the web page dynamically...i want to add an tag to that image so that the user would be able to click on the image and navigate...
How can we add a tag in C# code
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Mar 25, 2009, 2:10 AM EDT
Use ImageButton in the toolbox option and in Properties of it....use
ImageUrl-The Image u want to display
PostbackUrl-The page u want to navigate to...
Hope it Helps.........
Vipul Kelkar26 pointsPosted Mar 25, 2009, 9:06 AM EDT
Soory dude...not workin
No need o using toolbox...I have taken an array of 'image' control as i have to add the images dynamically...How can i navigate on the click of an image
there is no property for an image control as postbackurl...
Help me out..its urgent
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Mar 25, 2009, 10:06 AM EDT
HTML code:
c# code:
now you can fetch all the images path which is stored in database and put it on a dataset and loop through it and assign the appropriate imagepath.
javascript code: