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

How to create HREF link ?

Dear all,

I have an application which display database result querry , store it in a
dataset and bind a Datagrid control to it.

I would like that the content of one particular column behaves like a HREF
link. Then when my user clik on one records, it will jump to an other page
dedicated to that item

How to do that ?

Thnaks for your reply
regard
serge
Nov 19 '05 #1
3 2618
You can use a HyperLinkColumn:
http://www.c-sharpcorner.com/Code/20...LinkColumn.asp

or a TemplateColum wihth an ItemTemplate inside which makes use of a
HyperLink (http://www.devx.com/vb2themax/Tip/18857)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:91**********************************@microsof t.com...
Dear all,

I have an application which display database result querry , store it in a
dataset and bind a Datagrid control to it.

I would like that the content of one particular column behaves like a HREF
link. Then when my user clik on one records, it will jump to an other page
dedicated to that item

How to do that ?

Thnaks for your reply
regard
serge

Nov 19 '05 #2
You can use HyperLinkColumn in the datagrid.

HTH

Elton Wang

"serge calderara" wrote:
Dear all,

I have an application which display database result querry , store it in a
dataset and bind a Datagrid control to it.

I would like that the content of one particular column behaves like a HREF
link. Then when my user clik on one records, it will jump to an other page
dedicated to that item

How to do that ?

Thnaks for your reply
regard
serge

Nov 19 '05 #3
My grid column are issues from a SQL select statment .
I have try adding a template column and hyperlink control but the problem is
that it creat a new column in my grid and what I try to do is define that
first column items issu from select statemnt, when click, will run another
querry.

For that my first column need to act as an hyperlink but how to define when
I do not know in advance column numbers

thanks for your help
serge
"Elton W" wrote:
You can use HyperLinkColumn in the datagrid.

HTH

Elton Wang

"serge calderara" wrote:
Dear all,

I have an application which display database result querry , store it in a
dataset and bind a Datagrid control to it.

I would like that the content of one particular column behaves like a HREF
link. Then when my user clik on one records, it will jump to an other page
dedicated to that item

How to do that ?

Thnaks for your reply
regard
serge

Nov 19 '05 #4

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

Similar topics

6
by: mmac | last post by:
I am trying to create something like this: Response.Write "<a href=""javascript:openWindow('www.domain.com/events/EventDetails.asp?EventID=" & rsEvents("OccID") &...
14
by: Dafydd | last post by:
I have the following Script in my web page reduce to two pages. <script> function details() { document.getElementById('details').style.visibility='visible';...
14
by: Brandon Hoppe | last post by:
I'm trying to change the src of an ilayer in the parent document from a link inside the ilayer. I'm not able to get it to work. All that happens is Netscape 4 crashes. This is for Netscape 4 only....
2
by: Kevin Lyons | last post by:
Hello, Can anyone assist me with what I am trying to do with the following code (six different scenarios to try to make the functionality work correctly)? I want to always (and ONLY) display...
3
by: ningjun.wang | last post by:
Hello: My html file contains the following image link: <a href="some_url"><img src="MyImage.gif"></a> How can I use Javascript to find out the value of some_url for the given image name...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
2
by: mikeoley | last post by:
Ok I have a Javascript slideshow working. Every image is linked to a another page in the site. Problem is...The link wont refresh to the next link once the second images rollovers in the slideshow....
6
by: windandwaves | last post by:
Hi Folk Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide...
14
by: hgraham | last post by:
Hi, I'm trying to understand how to work the dom, and all I'm trying to do is insert a link right before another link in the html based on it's href value. This isn't a real world example - I'm...
2
by: nja2222 | last post by:
I would like to create a page for my clients to login and check for updates on their accounts. Then I would like to create a page where my employees can login and make updates, specifically new file...
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
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
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.