473,382 Members | 1,313 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,382 software developers and data experts.

datagrid hyberlink column

Hi

I have a datagrid with hyperlink column. based on sql server database values
i am generarting the path and assign the value to that column. so the field
value is
ms00\test\server\test.pdf.

when run the aspx page, the hyperlink column says
"http://localhost/ms00/test/server/test.pdf".

here i dont want to the "http://localhost" part. bcos the ms00 is different
machine connected thru network. so i just want the hyperlink column should
says "ms00\test\server\test.pdf".

How to do this? help please.

bala
Nov 19 '05 #1
2 1148
Have you tired using the Replace Method
See the way is used here..
http://www.homeandlearn.co.uk/NET/nets7p6.html
Hope that helps
Patrick

"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
Hi

I have a datagrid with hyperlink column. based on sql server database values i am generarting the path and assign the value to that column. so the field value is
ms00\test\server\test.pdf.

when run the aspx page, the hyperlink column says
"http://localhost/ms00/test/server/test.pdf".

here i dont want to the "http://localhost" part. bcos the ms00 is different machine connected thru network. so i just want the hyperlink column should
says "ms00\test\server\test.pdf".

How to do this? help please.

bala

Nov 19 '05 #2
Thanks.i got it.

bala

"Patrick.O.Ige" wrote:
Have you tired using the Replace Method
See the way is used here..
http://www.homeandlearn.co.uk/NET/nets7p6.html
Hope that helps
Patrick

"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
Hi

I have a datagrid with hyperlink column. based on sql server database

values
i am generarting the path and assign the value to that column. so the

field
value is
ms00\test\server\test.pdf.

when run the aspx page, the hyperlink column says
"http://localhost/ms00/test/server/test.pdf".

here i dont want to the "http://localhost" part. bcos the ms00 is

different
machine connected thru network. so i just want the hyperlink column should
says "ms00\test\server\test.pdf".

How to do this? help please.

bala


Nov 19 '05 #3

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

Similar topics

5
by: Jean Carlo | last post by:
Hello guys I`m developing a windows form that contain one Datagrid. In this datagrid I insert a checkBox Column. I need to get all rows where checkbox is checked by user. How do I get this...
0
by: Pietje de kort | last post by:
Hello, why is the System.Windows.Forms.DataGrid so un-customizable? I am trying to build a DataGrid that will resize it's last column when there is room left over (make it fill the total...
3
by: PeterZ | last post by:
G'day, After doing much searching and pinching bits of ideas from here there and everywhere I came up with a fairly 'clean' solution of including a comboBox into a dataGrid column. You can...
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
0
by: optimizeit | last post by:
What I am attempting to do is import an Excel Workbook and display the worksheets in a datagrid dynamically. I am very close to getting this to work. I have to this point successfully imported a...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
4
by: Anthony | last post by:
Hi Folks, I'm adding some columns to my datagrid which are of Combo Box type. I'm inheriting DataGridTextBoxColumn and doing all the usual stuff to get them populated. This is working fine. I...
10
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.