ASP.NET C# variables to JavaScript?

  • Thread starter Thread starter questionable113
  • Start date Start date
Q

questionable113

Guest
What is the easiest way to accomplish this? I have code that is pulling data from SQL Sever and populating an apsx page using <asp:label> tags.
Thanks
Sorry it isn't C# it is VB.
 
give the label an ID, it compiles to a <span> tag and you can reference anything you want via getElementById("labelID");
 
Back
Top