Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2007, 05:22 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing text in a hyperlink field

I have a GridView with a hyperlink column. I want to modify the text in the hyperlink field in OnRowDataBound. However, I can't read the text using:

protected void GridView1_OnRowDataBound(object sender, GridViewRowEventArgs e){

string TempText = (string)e.Row.Cells[5].Text;
}

A null string is returned.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ID in hyperlink field pagey ASP.NET 2.0 Basics 4 October 7th, 2007 01:12 PM
Using Hyperlink field in GridView asp_convert ASP.NET 2.0 Basics 2 February 7th, 2007 07:33 PM
How to display one field as a hyperlink? emccraw Classic ASP Databases 4 September 5th, 2006 04:03 PM
Accessing the contents of a hyperlink column in a rosalynb VS.NET 2002/2003 2 October 1st, 2003 06:33 PM
Accessing the contents of a hyperlink column in a rosalynb ADO.NET 0 September 29th, 2003 01:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.