By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

image control - no navigateurl ?

P: n/a
Hey guys,

I am just playing around with asp.net 2.0 and I was reading about the
image control (for mobile designer) and thought that would be handy.

So I have created:

Do While intImgRatingCount < intImgRating
intImgRatingCount += 1
Dim myimg As New Image
myimg.ImageUrl = "images/images.jpg"
myimg.AlternateText = "Rating " & intImgRatingCount
Form.Controls.Add(myimg)
Loop

And I would like to bind a link to each image. Apparently there should
be a method of navigateurl?

Should this be available? Does anyone know?

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Euan,

System.Web.UI.MobileControls.Image does have a NavigateUrl property.
System.Web.UI.Webcontrols.Image does not have a NavigateUrl property.

Double check you are using the correct class.

Tim
"eu**@madprops.org" wrote:
Hey guys,

I am just playing around with asp.net 2.0 and I was reading about the
image control (for mobile designer) and thought that would be handy.

So I have created:

Do While intImgRatingCount < intImgRating
intImgRatingCount += 1
Dim myimg As New Image
myimg.ImageUrl = "images/images.jpg"
myimg.AlternateText = "Rating " & intImgRatingCount
Form.Controls.Add(myimg)
Loop

And I would like to bind a link to each image. Apparently there should
be a method of navigateurl?

Should this be available? Does anyone know?

Nov 19 '05 #2

P: n/a
Ah thanks Tim. Yeah was wondering if WebControls had a NavigateUrl
property. Well... that sucks. I guess I can just create an image and
put in inside a link.

Nov 19 '05 #3

P: n/a
You can do :-
<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="ID"
DataNavigateUrlFormatString="test.aspx?ID={0}"
Text="<img border='0' src='/urimage.gif'
/>"></asp:HyperLinkColumn>
Do the binding as you want.
Patrick
<eu**@madprops.org> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Ah thanks Tim. Yeah was wondering if WebControls had a NavigateUrl
property. Well... that sucks. I guess I can just create an image and
put in inside a link.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.