Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Convert Asp.Net Variables to JavaScript

convert asp.net variables to javascript

  • Please log in to reply
 

#1 OneDes

OneDes

    Senior Member

  • Designer
  • 282 posts

Posted 16 April 2013 - 09:03 PM

You can integrate ASP values to your JavaScript values, to do this follow these steps
1. Open your Visual Studio by going to Start-> All programs-> Microsoft .NET->Visual Studio.
2. Go to File->Open. And click your ASP project file name and click "Open."
3. Double-click the form containing your JavaScript function. Then click "View Code" to open the JavaScript and HTML code.
4. Type the code ‘ =yourASPVariable’ between these code tags <% %>

The "=" sign tells your ASP engine to write the variable as "ASPVariable" to the JavaScript. Make sure you change "yourASPVariable" to your own variable name.





Also tagged with one or more of these keywords: convert asp.net variables, to javascript

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users