GridView, Hyperlink and binding the url

  • Thread starter Thread starter arun
  • Start date Start date
A

arun

Hi,

I have an sql statement that returns some urls.

eg:- select 'http://localhost:1000/Sample/Default.aspx?cd=' +
dbo.GetIDForObject( 'Test') as TestCasesInTestRunLink from Table


When bind this to a gridview through an SQLDataSource I can print the
urls in grid..But I want them to be links with some text( url hidden
in text). Suppose the first url is to show all orders for the last
week, then instead of printing the url, I want to show a link "Orders
last week" which on click will take to the respective url..

How can i use <asp:HyperLinkField /> for this purpose.

Thanks in advance

Arun
 
<asp:HyperLinkField DataNavigateUrlFields="TestCasesInTestRunLink"
Text="Orders last week" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top