ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Enhancing ASP.NET Pages with JavaScript
Subject:   How to use C# string variable in JavaScript
Date:   2006-10-06 00:01:51
From:   ManishKSingh
I want to pass a string variable and show it in a alert box but i am not able to get the value from the string variable which i m passing from C# code.
Here is the function where i am doing the effort.Please suggests the solution.

private void PopUpMessege(string msg)
string popupScript = "<script language='javascript'>" +
Page.RegisterStartupScript("PopupScript", popupScript);

1 to 1 of 1
  1. How to use C# string variable in JavaScript
    2006-10-22 01:54:53  ashraf_gawdat [View]

1 to 1 of 1