Links in User Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Use the LinkButton control, pass an event to the onClick property to redirect.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top