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

Recommended Answers

All 4 Replies

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!

commented: You are most welcome :) +2

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>");

search for javascirpt bookmarklets.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.