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" />
 
Back
Top