Sending a Asp Repeater Hyperlink to a OnServerClick

G

Guest

I was wondering how I could with the following in ASP.NET (repeater)

<ITEMTEMPLATE><a class="1" href='<%# SqlTrim(Container.DataItem("Hyperlink")) + SqlTrim(Container.DataItem("MenuCategory")) %>' ><TR style="cursor:hand" bgcolor='Beige' onmouseover="style.backgroundColor='LightBlue'" onmouseout="style.backgroundColor='Beige'"><TH class="withBreaks10" align="center"><%# Container.DataItem("MenuItems") %></TH></TR></a></ITEMTEMPLATE

I want to be able to run a Procedure on the vb.net codebehind

Public Sub MenuChoice(ByVal item as String

For the item parameter... I need to pass the Container.DataItem("MenuCategory") to the call. I'm trying to set a session variable according to what the user clicks on a the hyperlink.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top