You are here:
<a href="#" onclick="addlocation('Homepage.aspx')">Home</a>
<a href="#" onclick="addlocation('Visit.aspx')">/Visit</a>
ASKER
<asp:LinkButton id="LinkButton1" Text="Home" OnClick="LinkButton1_Click" runat="server"/>
The OnClick function will generate the OnClick event handler for the server-side code. This will look similar to the followingpublic void LinkButton1_Click(Object sender, EventArgs e)
{
// Add whatever C# code you need to here
}
As a side note, if you need to call Javascript from the server-side, you would need to call the ScriptManager.RegisterStarASKER
ASKER
HyperLink link = new HyperLink();
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY