1

Possible Duplicate:
How to get asp.net client id at external javascript file

 var table = new Table { CssClass = "Table", ID = "MYTable" };

In the Javascript File Iwant to get the table ID which is like

'ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_MYTable. 

How to get this Id in javascript.

Community
  • 1
  • 1
Manoj Nayak
  • 2,449
  • 9
  • 31
  • 53

1 Answers1

1

In your script add this when you need the ID:

<%=table.ClientID%>
Amiram Korach
  • 13,056
  • 3
  • 28
  • 30