Answers for " button onclick"

0 button onclick

<script runat="server">

    void Btn_Click(Object sender, EventArgs e)
        // When the button is clicked,
        // change the button text, and disable it.
        Button clickedButton = (Button)sender;
        clickedButton.Text = "...button clicked...";
        clickedButton.Enabled = false;        
        // Display the greeting label text.
        GreetingLabel.Visible = true;

  <asp:Button id="Button1"
    Text="Click here for greeting..."
Posted by: Guest on June-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language