raviprakashg Posted April 27, 2007 Share Posted April 27, 2007 hi, friendsits possible to use variables deleared in C#(Codefile) in javascript (<script tag> in .aspx page)thnx in adv.urs raviprakashg Link to comment Share on other sites More sharing options...
aspnetguy Posted April 27, 2007 Share Posted April 27, 2007 you should be able to do this.aspx.cs public void Page_Load(......{ string myVar = "myValue";} .aspx ...<head> <script> var csharpValue = "<%= myVar %>"; </script></head>... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.