我在default.aspx的前一部分定义了一组变量,但是在后面无法使用这些变量。例如<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%
Dim objBase = New WebBase()
Dim objSystemItem = objBase.getSystemInfo(WebBase.SystemName).FKeyValue
%><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><% =objbase. %></title> '//我无法应用objBase这个对象了,请问如何解决。
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
Dim objBase = New WebBase()
Dim objSystemItem = objBase.getSystemInfo(WebBase.SystemName).FKeyValue
%><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><% =objbase. %></title> '//我无法应用objBase这个对象了,请问如何解决。
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
public objSystemItem = objBase.getSystemInfo(WebBase.SystemName).FKeyValue;
吧~