How to run multiple JavaScript functions in ASP.NET to insert a desired text in a TextBox, Set the TextBox back color and font color and also disable or lock the Button for 5 second? I tried below code but I need client side code:
VB.NET code:
Protected Sub btnClickTest_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnClickTest.Click
txtTest.BackColor = Drawing.Color.Yellow
txtTest.ForeColor = Drawing.Color.Red
txtTest.Text = "You Clicked the Button!"
btnClickTest.Enabled = False
System.Threading.Thread.Sleep(5000)
btnClickTest.Enabled = True
End Sub
html:
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnClickTest"
runat="server"
Text="Click Me" />
<br /> <br />
</div>
<asp:TextBox ID="txtTest"
runat="server"></asp:TextBox>
</form>
</body>
</html>