473,386 Members | 1,785 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.

Links in User Control

Hi All,

I am trying to build a user control that is used on each page of my site.

The user control contains a datalist of links. The list of links (and
associated information) is grabbed from the database.

I am trying to make it so a click of a button (link) fires the ItemCommand
function button which grabs the CommandArgument(URL) for the button and
redirects to that page. However, all it is doing right now is posting back
to itself (the default page). The ItemCommand code is in the UC VB code.

Am I doing something wrong? It is trying to fire the ItemCommand Code in
the VB for the default page? Can anyone help me make this work?

Thank you for any help,

Phil Lamey

--
Phil Lamey, EIT
CGI Consultant
Jul 21 '05 #1
1 1509
Use the LinkButton control, pass an event to the onClick property to redirect.

"Phil Lamey" wrote:
Hi All,

I am trying to build a user control that is used on each page of my site.

The user control contains a datalist of links. The list of links (and
associated information) is grabbed from the database.

I am trying to make it so a click of a button (link) fires the ItemCommand
function button which grabs the CommandArgument(URL) for the button and
redirects to that page. However, all it is doing right now is posting back
to itself (the default page). The ItemCommand code is in the UC VB code.

Am I doing something wrong? It is trying to fire the ItemCommand Code in
the VB for the default page? Can anyone help me make this work?

Thank you for any help,

Phil Lamey

--
Phil Lamey, EIT
CGI Consultant

Jul 21 '05 #2

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

Similar topics

0
by: Cameron Laird | last post by:
QOTW: "Really, of course, the only things you need to make explicit are the ones that readers don't understand." -- Steve Holden "Working with unicode objects in Python is so transparent, it's...
18
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand...
3
by: Ernesto Morin | last post by:
Not sure if somebody can help me here. Our company develops a web based system that lets client have interaction with it. One of the things that we have is the ability for a user to create links...
3
by: Andy Dingley | last post by:
We've all seen this structure many times: <ul> <li><a href="..." >Click here</a></li> <li><a href="..." >Click here</a></li> </ul> Now it's obvious good practice to have sensible link texts,...
0
by: simon | last post by:
I have application CPO. I have user control with links which is included in all my pages. But my pages are in different directories. <TR> <TD><%=funkcije.createUrl(path& "/advertisments.aspx",...
12
by: Alan Silver | last post by:
Hello, I Classic ASP, I used to have a standard way of making the top-level site navigation links. I had an include file which included a Sub like this ... Sub MakeLink(TocURL, TocText) If...
1
by: Andre Ranieri | last post by:
I have a quick question - I'd just like to have confirmation to be sure. I'm building an ASP.NET corporate site for my employer, some of the pages have e-commerce capability and will need to be...
0
by: Phil Lamey | last post by:
Hi All, I am trying to build a user control that is used on each page of my site. The user control contains a datalist of links. The list of links (and associated information) is grabbed from...
2
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order...
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: 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...
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...

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.