Asp.net LInkButton Server Control


Link Button Control
The LinkButton control is used to create a hyperlink button.
Note: This control looks like a HyperLink control but has the same functionality as the Button control.

Source code

<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Click
    hereasp:LinkButton>

<asp:Label ID="Label1" runat="server">asp:Label>

Code file

protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Label1.Text = DateTime.Now.ToString();
    }

0 comments:

Post a Comment