2010-11-12 68 views

回答

0

剛剛創建你的CS受保護的字符串值,像這樣:

protected string szBaseURL = "http://www.stackoverflow.com"; 

和您的主頁上,

<script type="text/javascript"> 
//this is the client side value  
var baseUrl = "<%= szBaseURL %>"; 
</script>