Accessing ASP control methods/properties/attributes in Javascript? -


Using Javascript in IE6 with ASPNET.2.0 I enable JavaScript in 'junk' Property must be changed. Can it be done - if so how?

Tried the following but does not work

  document.getElementById ('& lt;% = tbDate.ClientID% & gt;'). Set Attribute ("View", "Wrong")  

Any help or link will be highly appreciated.

As a little background, when you type code or behind ASP.NET in ASPX markup Visible attribute on server control (or HTML server control), that control is not provided in the HTML sent in the client and therefore can not be accessed because it is not present on the customer

< P> If you want hidden elements that you want to send to client-side code (such as postbacks A wish to use without), you can use any set style display or a CSS class. Display: None . It will still provide control in HTML, but the control will not be visible. You can then look visible and can be hidden by using it (respectively)

  // to create a visible document (" & gt; ; "). Style.display = "block"; // document.getElementById ("") to hide it. Style.display = "none";  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -