Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2006, 04:23 PM
Authorized User
 
Join Date: Jan 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default WebControls.LinkButton

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

 
Old January 28th, 2006, 08:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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/asp-net-asp-12

Cheers,

Imar---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass WebControls as struct to BLL instead of indiv rlb ASP.NET 2.0 Professional 3 April 23rd, 2007 03:35 PM
Reading webcontrols shellhb ASP.NET 1.x and 2.0 Application Design 0 October 20th, 2005 01:02 PM
Assign events to webcontrols through XML and XSLT Navas Classic ASP XML 0 November 12th, 2003 05:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.