可以<%@ Page AspCompat="true" language="C#" %> <script runat="server" >MyComObject comObj;public void Page_Load(){ // Use comObj here when the code is running on the STA thread pool. comObj = New MyComObject(); // Do something with the combObj object. }http://msdn.microsoft.com/en-us/library/ydy4x04a.aspx
aspx中也可以加C#代码吗?
<script runat="server" >MyComObject comObj;public void Page_Load(){
// Use comObj here when the code is running on the STA thread pool.
comObj = New MyComObject();
// Do something with the combObj object.
}http://msdn.microsoft.com/en-us/library/ydy4x04a.aspx