In ASP.NET 2.0 when using codebehind ASP.NET generates a partial class to
go along with your codebehind. This partial is where all your server side
controls get declared for your codebehind. Without seeing your code, my guess
is that in your codebehind (the one your working in, not the ASP.NET generated
one) you've got the field declared. Just remove that line and you should
be all set.
As for the intellisense, it will eventually show up -- VS.NET will just need
some time to catch up. Try to write the code anyway, and I'm sure it'll work.
Just because it's not in intellisense doesn't mean it's not correct :)
-Brock
DevelopMentor
http://staff.develop.com/ballen The below is error message :
The type 'page2' already contains a definition for 'txtLocationName'
i know why this comes. but iam not ablke to find the other place where
the definition is added. coz iam not able to get this textbox object
in the intellisence sp i tried to add a line "protected TextBox
txtLocationName = new TextBox();" .. so i got this error. Plz help me
on this
thanks in advance