|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom Server ControlI am creating a custom control that inherits from Panel. I have the
control created but I need to figure out how to be able to drag controls from the toolbox onto my control. Does anyone know how to accomplish this? Is this a UserControl? If it is you can just drag your user control from the
solution explorer to your aspx page. JerryM It is a custom server control. Not a user control. I am not having
problems adding the control to the page. I am having problems adding other controls to this control. Ryan JerryWEC wrote: Show quoteHide quote > Is this a UserControl? If it is you can just drag your user control from the > solution explorer to your aspx page. > > JerryM knighthawkga***@gmail.com wrote:
> It is a custom server control. Not a user control. I am not having Inherits System.Web.UI.WebControls.Panel ?> problems adding the control to the page. I am having problems adding > other controls to this control. > > Ryan > > JerryWEC wrote: > > Is this a UserControl? If it is you can just drag your user control from the > > solution explorer to your aspx page. > > > > JerryM Why can't you drop controls onto it? I have one like that, and it's fine. does it claim "Error creating control" ? can't really say any more without looking at code -- a -- It is a simple inherits from panel right now and when I try and drag a
control onto it I get the circle with a slash through it and the control won't drop onto my panel. Ryan addup wrote: Show quoteHide quote > knighthawkga***@gmail.com wrote: > > It is a custom server control. Not a user control. I am not having > > problems adding the control to the page. I am having problems adding > > other controls to this control. > > > > Ryan > > > > JerryWEC wrote: > > > Is this a UserControl? If it is you can just drag your user control from the > > > solution explorer to your aspx page. > > > > > > JerryM > > Inherits System.Web.UI.WebControls.Panel ? > > Why can't you drop controls onto it? I have one like that, and it's > fine. > does it claim "Error creating control" ? > > can't really say any more without looking at code > > -- a -- knighthawkga***@gmail.com wrote:
Show quoteHide quote > It is a simple inherits from panel right now and when I try and drag a Hmm... like i said, i got one that works fine.> control onto it I get the circle with a slash through it and the > control won't drop onto my panel. > > Ryan > > addup wrote: > > knighthawkga***@gmail.com wrote: > > > It is a custom server control. Not a user control. I am not having > > > problems adding the control to the page. I am having problems adding > > > other controls to this control. > > > > > > Ryan > > > > > > JerryWEC wrote: > > > > Is this a UserControl? If it is you can just drag your user control from the > > > > solution explorer to your aspx page. > > > > > > > > JerryM > > > > Inherits System.Web.UI.WebControls.Panel ? > > > > Why can't you drop controls onto it? I have one like that, and it's > > fine. > > does it claim "Error creating control" ? > > > > can't really say any more without looking at code > > > > -- a -- Code, please -- a -- Never mind it decided it wanted to work now. I guess I just needed to
restart VS. Ryan knighthawkga***@gmail.com wrote: Show quoteHide quote > It is a simple inherits from panel right now and when I try and drag a > control onto it I get the circle with a slash through it and the > control won't drop onto my panel. > > Ryan > > addup wrote: > > knighthawkga***@gmail.com wrote: > > > It is a custom server control. Not a user control. I am not having > > > problems adding the control to the page. I am having problems adding > > > other controls to this control. > > > > > > Ryan > > > > > > JerryWEC wrote: > > > > Is this a UserControl? If it is you can just drag your user control from the > > > > solution explorer to your aspx page. > > > > > > > > JerryM > > > > Inherits System.Web.UI.WebControls.Panel ? > > > > Why can't you drop controls onto it? I have one like that, and it's > > fine. > > does it claim "Error creating control" ? > > > > can't really say any more without looking at code > > > > -- a -- Hi,
See the post i have done in ASP.Net forum (just above this forum). I have given differences between User control and Custom server control. Hope it helps you. More articles, log on to: http://www.vkinfotek.com Regards bhar knighthawkga***@gmail.com wrote: > *I am creating a custom control that inherits from Panel. I have the > control created but I need to figure out how to be able to drag > controls from the toolbox onto my control. Does anyone know how to > accomplish this? * -- bhar ------------------------------------------------------------------------ Posted via http://www.mcse.ms ------------------------------------------------------------------------ View this thread: http://www.mcse.ms/message2426947.html I already know the difference. Please stop trying to promote yourself.
The problem has been resolved and it works like I expect it to. I have created multiple custom server controls and so I know the difference. bhar wrote: Show quoteHide quote > Hi, > > See the post i have done in ASP.Net forum > (just above this forum). I have given differences between User control > and Custom server control. > > Hope it helps you. More articles, log on to: http://www.vkinfotek.com > > Regards > bhar > > > > > knighthawkga***@gmail.com wrote: > > *I am creating a custom control that inherits from Panel. I have the > > control created but I need to figure out how to be able to drag > > controls from the toolbox onto my control. Does anyone know how to > > accomplish this? * > > > > -- > bhar > ------------------------------------------------------------------------ > Posted via http://www.mcse.ms > ------------------------------------------------------------------------ > View this thread: http://www.mcse.ms/message2426947.html
WebForm UserControl ?s
DropdownList problem with internet explorer passing data on the cleint side Firing events for child controls inside a DataGrid Problem with HTML in ASP.Net App CustomValidator Retireve data with SqlDatasource & dynamically manipulate before dispalying How-to link 2 Detailsview Formview child control data retrieval Can a Repeater control repeat an .ascx? |
|||||||||||||||||||||||