我嘗試過,但我收到此錯誤:可以調用在ASP.NET中設置爲onclick函數的函數嗎?
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30201: Expression expected.
Source Error:
Line 26: password.Text = parseQuery("pass")
Line 27: End If
Line 28: If password.Text <> "" And username.Text <> "" Then btnLogin_Click(Dim sender as Object, Dim e as System.EventArgs)
Line 29: End If
Line 30:
Source File: C:\Inetpub\wwwroot\devv\login.aspx.vb Line: 28
需要看你的源代碼... – 2009-08-14 22:53:11
它已經太長時間,因爲我寫VB。你可以在函數調用中調暗變量嗎?爲什麼不使用Nothing? – Joel 2009-08-14 22:55:56
@Joel:不,這就是爲什麼這不會編譯。 – 2009-08-14 23:01:44