473,406 Members | 2,956 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,406 software developers and data experts.

button hyperlink

Hi everyone

Could someone tell me how to solve the following problem within Visual
Web Developer (ASP.NET and VB.NET)

I have a datalist with an embedded repeater to display the item and
it's price

how do I include a single linkbutton with each item that would be for
linking to the item's detail page.

for example

I have 5 items listed on a page, each item as a seperate buy now
button.

I now need to add a button of some sort that would hyperlink to a
details page that as been selected.

In my database I have a field called DescFileName which has the
hyperlink for each item that will be displayed.

How do I get the button to get this information from the database.
Thanks Bob8000

Mar 9 '07 #1
1 1040
You have a datalist with an embedded repeater? So you are showing a
collection of items that each have their own collection?

I don't think I quite understand your problem since the solution seems
so easy. If you are binding to a datasource, just make sure your
datasource contains your DescFileName field. Then you can bind the
NavigateUrl property of a hyperlink to it. If you want to use buttons
(which personally I don't like), you could bind to the CommandArgument
property. It could them be retrieved during the ItemCommand event.

Mar 9 '07 #2

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

Similar topics

2
by: Paul Sullivan | last post by:
I need an "Exit" button on my intranet web app that would direct the user to the opening page of our intranet. The HyperLink control provides that function, but its visual presentation is not a...
1
by: Joshua Weir | last post by:
Hi, I want to simply add hyperlink functionality to a normal web control button. I understand that i can use the hyperlink button for this but in this case i dont want to do this. Say i have...
0
by: Waran | last post by:
Hi, In a datagrid I am displaying 2 columns. One is a Hyperlink Colum and the other is a Button Column. The values for the hyperlink columns are fetched from the database and its a url. When I...
1
by: Randall Parker | last post by:
Currently in an asp:DataGrid I have a column for bringing up an edit form on a particular row and that is done by a hyperlink as follows: <asp:TemplateColumn HeaderText="Edit Record">...
1
by: shapper | last post by:
Hello, I created an Hyperlink field in a GridView but I can't find and ImageUrl property. I know normal Asp:Hyperlink control can also be used with an Image. Is this possible in GridView? ...
1
by: ashima515 | last post by:
Hi I have made a datagrid with first column as hyperlink col and last as button col and all cols inbetween are bound cols. the hyperlink col contains the empid n when an enpid is clicked a form...
22
by: mforema | last post by:
Hey Everybody, I have an URGENT REQUEST (I need a reply within 24 hours, or I lose my job) I need help writing vba code for a command button. I want this button to locate a hyperlink in a table (the...
5
by: Thirdworld | last post by:
I'm trying to create a hyperlink button on a form that does the following: 1. User clicks on button 2. The default 'insert hyperlink' window appears 3. User selects the desired file 4. User...
2
by: =?Utf-8?B?Q2hhcnRz?= | last post by:
I have been writing C# programs to spider yellow page to get list of restaurant name, address to the database. When I encounter button or hyperlink, I don’t know how to use the program to click...
1
by: Arielle | last post by:
Background: I have a generated datalist to display information and I need to add the capability to have a button (Edit button) so that users can change the information. I'm sure once I figure it...
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: 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: 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...
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.