1.
2.
public
string
tmp;

private
void
Page_Load(
object
sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
tmp = "test,test1";
}
http://www.cnblogs.com/cxy521/archive/2008/01/22/1048778.html
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<
html
>
<
head
>
<
title
>
viewjava
</
title
>
<
meta
name
="GENERATOR"
Content
="Microsoft Visual Studio .NET 7.1"
>
<
meta
name
="CODE_LANGUAGE"
Content
="C#"
>
<
meta
name
="vs_defaultClientScript"
content
="JavaScript"
>
<
meta
name
="vs_targetSchema"
content
="http://schemas.microsoft.com/intellisense/ie5"
>
<
meta
http-equiv
="Content-Type"
content
="text/html; charset=gb2312"
>
<
script
language
="javascript"
>
var tmp = "<%=tmp%>";
alert(tmp);
</
script
>
</
head
>
<
body
MS_POSITIONING
="FlowLayout"
topmargin
="0"
>
<
form
id
="Form1"
method
="post"
runat
="server"
>
</
form
>
</
body
>
</
html
>

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >


















2.






