谁能告诉我,这是怎么回事?
我练习写了个Page_Load事件,在<script>中,运行正常,为什么我将他移动到codebehind中,他就没反应了??
在codebehind中代码如下:
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Configuration
Public Class login
Inherits System.Web.UI.Page
Sub Page_Load(ByVal obj As Object, ByVal e As EventArgs)
Dim connectString As String = ConfigurationSettings.AppSettings("connectString")
Response.Write(connectString)
End Sub
End Class
该子程序在<script>块中运行没有任何问题,现在为什么...?