473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dataset, how to set hyperlink?

I want to fill a dataset, one of the columns is hyperlink.
At the end i want to set a full href, thus url + name.
System.String results in interpreted html, not useful.

How would i modify the following lines?

' Create the column
oCol = New DataColumn("File", System.Type.GetType("System.String"))

Set url to item/column:
oRow("File") = "http:///myfinedir/file1.zip"
Mar 6 '06 #1
2 1300
Hi Edwin
ASP.Net 2.0 :
You must add HyperLinkField to DataGridView and set the following
properties (for example ):
DataTextField="fileTitle"
DataTextFormatString="Download {0}"

NavigateUrlField="FileName"
NavigateUrlFormatString="http://myfinedir/{0}"

I hope this helps
A.Hadi

Mar 6 '06 #2
I thank you for your help, this is actually my question #2, not asked yet :)

I'm looking for the correct system type to fill a dataset column.
Which has in this perspective nothing to do with the gridview (yet)
:)
"Aboulfazl Hadi" <AH****@gmail.com> schreef in bericht
news:11**********************@e56g2000cwe.googlegr oups.com...
Hi Edwin
ASP.Net 2.0 :
You must add HyperLinkField to DataGridView and set the following
properties (for example ):
DataTextField="fileTitle"
DataTextFormatString="Download {0}"

NavigateUrlField="FileName"
NavigateUrlFormatString="http://myfinedir/{0}"

I hope this helps
A.Hadi

Mar 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rik Brooks | last post by:
I've been working on this all day and finally I surrender. What I'm trying to do should be simple, I think. I'm trying to read an rss feed from cnn and use that to populate an asp.net table...
0
by: Alex | last post by:
I have a dataset bound datagrid. I added my own columns (autogenerate=false). However I can't figure out how to display a hyperlink string coming from the DB as a functioning hyperlink. What can...
2
by: Alex | last post by:
I'm reposting my issue with some more info. I would like to use a DataGrid to display my DataSet. My DataSet is from a table in a SQL DB. Both columns in the table are strings. I would like...
5
by: Nita | last post by:
Hi, Im a sort of newbie when it comes to VB.NET, so forgive me if this is a simple question. I have a dataset i wish to clear, ive used a parameterised stored procedure from MS Access. Currently...
10
by: Grumpy Aero Guy | last post by:
Visual Studio .net Academic Edition: After creating a OLEdbDataadapter, followed by an OLE DB Connection (all of which occurs successfully, by the way), I am unable to create a Dataset. I...
3
by: Datatable Dataset Datagrid help | last post by:
Hi I am somewhat confused, I am new at VB.net I use XML data, I have a datagrid, I created a datatable so that I can create a custom format like true is this graphic false is this graphic and...
6
by: Nick | last post by:
I have a code that returns data in IList. My webGrid doesn't allow me to sort with IList returned, it say it only suports DataView, DataTable and DataSet, not IEnumerable. I don't know how to...
1
by: | last post by:
I'm querying Index Server to return search results, both regular properties and some custom properties I've created. Index Server has this preference for thinking about information as strings...
1
by: Stephanie | last post by:
I am running through a tutorial on http://www.asp.net/get-started/ about database web pages. I have a page that uses a dataset to list authors by state. Works great. All is peachy keen. There...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.