天天看點

C# JS調用背景帶參數方法

function Init()
 {
   var v = "中國";
   var s = '<%=CsharpVoid("'+v+'") %>';
   alert(s);
 }
           
protected string CsharpVoid(string strCC)
{
   strCC = "你好!" + strCC;
   return strCC;
}
           

轉自:http://www.cnblogs.com/morningwang/archive/2008/04/07/1140340.html

繼續閱讀