What is the equivalent of javascript document.getElementById("table1").style.display = "block" in c#

I have a javascript code as followed:
document.getElementById("table1").style.display = "block"

How do I translate into C#?

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Rikus_TrentConnect With a Mentor Commented:
You'll need to make sure its a server control for asp.net to see it. Either use an asp.net control or at runat="server" to the existing element.

Then in your C# code you can access it as such:

myControl.Style["display"] = "block";
All Courses

From novice to tech pro — start learning today.