Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating hyperlinks in datagrid
Message
De
03/07/2002 14:08:20
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Creating hyperlinks in datagrid
Divers
Thread ID:
00675043
Message ID:
00675043
Vues:
48
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform