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

asp:HyperLinkColumn question

Does anyone know how I can using <asp:HyperLinkColumn> have the same caption
and point to different URLs? (where the url is id=1,2,3,4,5)

Thank you
Maz.

Nov 18 '05 #1
2 1225
Hi,

just include

<asp:HyperLinkColumn HeaderText="Header"
DataNavigateUrlField="ID"
DataNavigateUrlFormatString="nextPage.aspx?ID={0}"
Text="Column text"/>
Best,

Svetlin Grancharov
Frontline System
-----Original Message-----
Does anyone know how I can using <asp:HyperLinkColumn> have the same captionand point to different URLs? (where the url is id=1,2,3,4,5)
Thank you
Maz.

.

Nov 18 '05 #2
You can set the DataTextField property to display the same thing, and the
NavigateUrl property to display the different url. Just use {0} if you want
to pull from the DataNavigateUrlField if you have this target URL stored in
the data source you are binding from.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:LU*****************@news01.bloor.is.net.cable .rogers.com...
Does anyone know how I can using <asp:HyperLinkColumn> have the same caption and point to different URLs? (where the url is id=1,2,3,4,5)

Thank you
Maz.

Nov 18 '05 #3

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

Similar topics

7
by: nicole | last post by:
We have completed a clean install of Microsoft Server 2003 on our Web Server and are using frontpage 2002 for our web site. On our asp page (www.dgf.k12.mn.us/contactus.asp) we are getting the...
0
by: Maziar Aflatoun | last post by:
Hi everyone, Does anyone know how I can apply the css 'linksmall' to my hyperlink in my datagrid? I have the following and it doesn't work <asp:HyperLinkColumn Text="Edit"...
7
by: Mark | last post by:
Hi... I've been doing a lot of work both creating and consuming web services, and I notice there seems to be a discontinuity between a number of the different cogs in the wheel centering around...
0
by: fernhopper | last post by:
Is there a way I can do the equivalent of a server.URLEncode() when moving to a new form via a asp:hyperlinkcolumn in a datagrid? My hyperlink column currently looks like this: ...
3
by: Maziar Aflatoun | last post by:
Hi everyone, Does anyone know how I can apply the css 'linksmall' to my hyperlink in my datagrid? I have the following and it doesn't work <asp:HyperLinkColumn Text="Edit"...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
2
by: Tom Edelbrok | last post by:
I'm reading the section "Postbacks and Round Trips" in the Visual Studio 2005 Help (I use VB.NET). Amongst other things, it says that as a result of a postback "On the Web server, the page runs...
12
by: mcp6453 | last post by:
My small company has a web site that is developed in "Classic ASP", which is, I'm told, different from just "ASP". It is clear to me that we are not using ASP.NET. The site is hosted on a shared...
1
by: CSharper | last post by:
Quick question on ASP (still in ASP), if it is a wrong please let me know. I am very new to Web development so please bear with me if it is something simple. I have a asp page which has two...
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
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.