C#小知识
1、获取程序启动路径
System.Windows.Forms.Application.StartupPath
2、ASPX嵌入Server代码
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("OK2");
}
</script>
<% SPHttpUtility.NoEncode(m_pageDescription,Response.Output); %>
3、后台声明
<% =jQueryScriptBlock %>
后台声明变量:
protected string jQueryScriptBlock = @"<script type=""text/javascript""
src=""scripts/jquery-1.3.2.min.js""></script>";