0

Hi Everyone, Thank you for viewing.
I would like to check how to disbale HTML button in c#?
Can anyone advise on this?

3
Contributors
4
Replies
24
Views
4 Years
Discussion Span
Last Post by RichardGalaviz
1

Hi KM999, Thank you for your response.

The HTML button that i am referring is as the code below:

<input id="btn_aaa" type="button" value="aaa" />

I would like to seek for your advice on how can i access this btn_aaa button in C# code?

Thank you!

Votes + Comments
You are most welcome :)
0

Hi all,

Thank you for viewing this thread. I managed to find some code online and did the disabling of input hmtl button.

Just to share with everyone.

  Page.ClientScript.RegisterStartupScript(this.GetType(), "button", "<script>document.getElementById('btnTest').disabled  = true;</script>");
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.