Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   How to Show working links in Gridview? (http://www.go4expert.com/forums/links-gridview-t15448/)

Dominia 9Dec2008 19:43

How to Show working links in Gridview?
I have an XML file as the datasource. It has link titles as well as URL's. I need to display just the link names in a gridview, and have them work according to the corresponding URL's. Basically the user should see only the name of a link and be able to click on it and go to its destination. Each link has a different destination. I am not sure how to do this?
I also need to be able to display an image to the left of each link. This image will be the same for all links and will not be clickable.

Lastly, I need the links split up so that they appear in two columns next to each other. So this means half of them will be in column 1 for example, and the other half in cloumn 2.
Thank you :-)

mail2kumaranjani 18Jun2010 17:13

Re: How to Show working links in Gridview?
In Gridview use sqldatasource and add imagefield and set dataimageurlfiled of you database where path of image has stored it will display image on grid. now if you want to see details some thing then add hyperlink in grid and set navigationurl detail will show after clicking image

alia123 10Feb2016 14:11

Re: How to Show working links in Gridview?
Hey, try this code :-

<asp:hyperlinkfield headertext="NewsHeadline"
datanavigateurlformatstring="http://{0}" />

All times are GMT +5.5. The time now is 22:45.