Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link calling VB function

Status
Not open for further replies.

kizmar2

Programmer
May 25, 2004
164
US
How do you code a <asp:hyperlink...> to call a .VB function? Maybe that's not the right thing to use to get what I need here ...

I tried using a <asp:LinkButton...> instead, but that has to be wrapped in a <form> tag, and I already have a form on the parent page. I'm doing this on a .ASCX page btw.

Each page is using: <%@ Register TagPrefix="MenuControl" TagName="Menu" Src="includes/menu.ascx" %>

then "<MenuControl:Menu runat="server" />" is inserted where I want the menu to show.

On the menu.ascx, I want to have a link "Log Out" (that looks like an <a href=""...>) that calls my "LogOut()" function from my PubClasses.vb.

KizMar
------------
 
You are right to use a LinkButton. The button will be withing form tags if you incude them on the page and drop the user control onto the page.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top