主题:求助:在学习ASP.net中遇到问题?求高手们帮帮忙看看!
在按教程学习过程中,输入以下代码
void Page_Loda(Object Sender,EventArgs E){
Page.ClientTarget=ClientTarget.Downlevel ;}
会出现这些错误提示,意思大概好像是“Downlevel”没有定义,但这些是按照书输入的,就算改成DownLevel、downlevel都没有用,请大家帮忙看看。这一段是用来在服务器端强制验证的代码。
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: CS0117: 'string' does not contain a definition for 'Downlevel'
Source Error:
Line 31: }
Line 32: void Page_Loda(Object Sender,EventArgs E){
Line 33: Page.ClientTarget=ClientTarget.Downlevel ;}
Line 34: </script>
Line 35:
void Page_Loda(Object Sender,EventArgs E){
Page.ClientTarget=ClientTarget.Downlevel ;}
会出现这些错误提示,意思大概好像是“Downlevel”没有定义,但这些是按照书输入的,就算改成DownLevel、downlevel都没有用,请大家帮忙看看。这一段是用来在服务器端强制验证的代码。
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: CS0117: 'string' does not contain a definition for 'Downlevel'
Source Error:
Line 31: }
Line 32: void Page_Loda(Object Sender,EventArgs E){
Line 33: Page.ClientTarget=ClientTarget.Downlevel ;}
Line 34: </script>
Line 35: