button action asp net
<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />
button action asp net
<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />
asp.net 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;
}
</script>
<html>
...
<asp:Button id="Button1"
Text="Click here for greeting..."
OnClick="Btn_Click"
runat="server"/>
...
</html>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us