Pasing a string from c# to javascript
C#
4
Posts
2
Posters
0
Views
1
Watching
-
-
Just put the string in the javascript code. Example: var str = '<asp:Literal id="MyString" runat="server"/>'; MyString.Text = aString.Replace("\\","\\\\").Replace("'","\\'"); --- b { font-weight: normal; } -- modified at 4:52 Monday 12th December, 2005
-
MyString and aString, c# string or Javascript string? I have a url string (named urlString)in c#, and I want to use it in the window.open function in Javascript?