Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating hyperlinks in datagrid
Message
From
03/07/2002 14:08:20
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Creating hyperlinks in datagrid
Miscellaneous
Thread ID:
00675043
Message ID:
00675043
Views:
49
Using C#.

I am currently displaying data in a webform using the datagrid control.

How can I wrap HTML around 1 of the fields in my table to create a hyper link?

I tried this, but it didn't work:
oleDbCommand1.CommandText =
"SELECT " +
"" +
"mytable.cu_name" + "
" + " AS Company, " +
"mytable.cu_profess AS Profession, " +
"mytable.cu_fulname AS Full_Name " +
"FROM mytable WHERE mytable.name LIKE '" + lc_somevar + "%' "

When I did a build and browse, I got a "Command contains unrecognized phrase/keyword" in the browser.

Using Web Connect, I can:
SELECT ;
"" + ;
ALLTRIM(mytable.field) + ;
"
" AS myheader, ;
FROM mytable ;
INTO CURSOR mycursor NOFILTER

How can I do this in C#?

Thanks,

Jerryt
Next
Reply
Map
View

Click here to load this message in the networking platform