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#?

Thx.
fippifAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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";
0
All Courses

From novice to tech pro — start learning today.