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,329
  • 7
  • 29
  • 53

1 Answers1

1

In your script add this when you need the ID:

<%=table.ClientID%>
Amiram Korach
  • 12,646
  • 3
  • 26
  • 28