S
Stephanie
Hi. I am doing a tutorial
http://www.15seconds.com/Issue/020319.htm
About creating user controls in ASP.NET. As I run through the tutorial,
there is a point after which I create a lovely looking page with text boxes
and whanot that I go into code and change
public partial class UCLogin : System.Web.UI.UserControl
to
public abstract class UCLogin : System.Web.UI.UserControl
Actually I had deleted all teh code from the code behind file and replaced
it with the tutorial. Not until I messed around with this change did I
notice it was the cause of the build error...
"Missing partial modifier on declaration of type 'UCLogin'; another partial
declaration of this type exists."
My handy dandy help file tells me that a partial class is such:
"Partial type definitions allow for the definition of a class, struct, or
interface to be split into multiple files. "
I have no interest in separating the class into separate files. When I added
a new item in VS, this partial definition was there by default. I want to
change it to abstract as the tutorial tells me to do.
Can someone please help me understand this build error and how to correct it
without specifying a partial class which I don't want? Thanks!
I hope this is not an overly ignorant question.
Thanks.
Stephanie
http://www.15seconds.com/Issue/020319.htm
About creating user controls in ASP.NET. As I run through the tutorial,
there is a point after which I create a lovely looking page with text boxes
and whanot that I go into code and change
public partial class UCLogin : System.Web.UI.UserControl
to
public abstract class UCLogin : System.Web.UI.UserControl
Actually I had deleted all teh code from the code behind file and replaced
it with the tutorial. Not until I messed around with this change did I
notice it was the cause of the build error...
"Missing partial modifier on declaration of type 'UCLogin'; another partial
declaration of this type exists."
My handy dandy help file tells me that a partial class is such:
"Partial type definitions allow for the definition of a class, struct, or
interface to be split into multiple files. "
I have no interest in separating the class into separate files. When I added
a new item in VS, this partial definition was there by default. I want to
change it to abstract as the tutorial tells me to do.
Can someone please help me understand this build error and how to correct it
without specifying a partial class which I don't want? Thanks!
I hope this is not an overly ignorant question.
Thanks.
Stephanie