|
Помогите начинающему
|
|||
---|---|---|---|
#18+
Создал файл calendar.aspx <asp:Calendar id="Dates" runat="server" /> Результат Server Error in '/' Application. -------------------------------------------------------------------------------- Control 'Dates' of type 'Calendar' must be placed inside a form tag with runat=server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Control 'Dates' of type 'Calendar' must be placed inside a form tag with runat=server. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Control 'Dates' of type 'Calendar' must be placed inside a form tag with runat=server.] System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +152 System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer) +215 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 System.Web.UI.Page.ProcessRequestMain() +1900 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0 ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 08:06 |
|
Помогите начинающему
|
|||
---|---|---|---|
#18+
надо так: Код: plaintext 1. 2.
... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 09:59 |
|
Помогите начинающему
|
|||
---|---|---|---|
#18+
Создал файл HelloWorld2.aspx и <%@ Page Language="VB" Inherits="HelloWorldClass" Scr="HelloWorld2.vb" %> <html> <body> <form id="Form" runat="server"> <asp:Label id="lblTest" runat="server" /> </form> </body> </html> HelloWorld2.vb Public Class HelloWorldClass Inherits System.Web.UI.Page Protected lblTest As System.Web.UI.Webcontrols.Label Public Sub Page_Load() lblTest.Text = "Hello, the Page_load event occured." End Sub End Class Результат Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'HelloWorldClass'. Source Error: Line 1: <%@ Page Language="VB" Inherits="HelloWorldClass" Scr="HelloWorld2.vb" %> Line 2: <html> Line 3: <body> Source File: E:\asp\helloworld2.aspx Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0 ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 11:28 |
|
Помогите начинающему
|
|||
---|---|---|---|
#18+
Создал HelloWorld2.vb Public Class HelloWorldClass Inherits System.Web.UI.Page Protected lblTest As System.Web.UI.Webcontrols.Label Public Sub Page_Load() lblTest.Text = "Hello, the Page_load event occured." End Sub End Class и HelloWold2.aspx <%@ Page Language="VB" Inherits="HelloWorldClass" Scr="HelloWorld2.vb" %> <html> <body> <form id="Form" runat="server"> <asp:Label id="lblTest" runat="server" /> </form> </body> </html> Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'HelloWorldClass'. Source Error: Line 1: <%@ Page Language="VB" Inherits="HelloWorldClass" Scr="HelloWorld2.vb" %> Line 2: <html> Line 3: <body> Source File: E:\asp\helloworld2.aspx Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0 ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 11:34 |
|
Помогите начинающему
|
|||
---|---|---|---|
#18+
Src="HelloWorld2.vb" ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 16:24 |
|
Помогите начинающему
|
|||
---|---|---|---|
#18+
Inherits="[ApplicationAssemblyName].HelloWorldClass" Codebehind="HelloWorld2.vb" ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2003, 22:02 |
|
|
start [/forum/topic.php?fid=18&fpage=1053&tid=1396519]: |
0ms |
get settings: |
11ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
30ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 250ms |
total: | 373ms |
0 / 0 |