|
Subject:
|
WebControls.LinkButton
|
|
Posted By:
|
Ric_H
|
Post Date:
|
1/27/2006 3:23:17 PM
|
I am currently working on a Registration page. When I try to debug it I get the error 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: The base class includes the field 'butCancel', but its type (System.Web.UI.WebControls.Button) is not compatible with the type of control (System.Web.UI.WebControls.LinkButton).
Going with the advice of some articles on line I added
protected System.Web.UI.WebControls.LinkButton butRegister; protected System.Web.UI.WebControls.LinkButton butCancel;
This didn't work. While debugging the program, it looks as if it is getting redirected to the error message in the Try-Catch-Finally, however, I have gone through the Try line by line with the debugger and it appears that each line is doing what it is suppost to do.
Does anybody have any suggestions?
Ric
|
|
Reply By:
|
Imar
|
Reply Date:
|
1/28/2006 7:00:55 AM
|
Hi there,
Is this indeed about ASP.NET 2? If so, can you post the code for the page and the Code Behind?
Otherwise, you may be better off posting this in one of the ASP.NET 1.x forums located here: http://p2p.wrox.com/default.asp?CAT_ID=11
Cheers,
Imar--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|