Sending a Asp Repeater Hyperlink to a OnServerClick

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Back
Top