关于动态修改html中的某些内容
解决方法:
例如,改变页面的title
1)
<script language =javascript >
window.document.title =tl;
</script>
.cs中:
string s="123456";
Response.Write("<script language=javascript>var tl='"+ s +"'</script>");
2)
<title><%=s%></title>
.cs中:
public string s="123456";
使用protected修饰也行,但internal修饰则出错,???
3)
<title><%=Method()%></title>
.cs中:
public string Method()
{
return "123456";
}
同二,使用internal修饰也不行???