Home All Groups Group Topic Archive Search About
Author
7 Apr 2005 2:55 PM
Ahmed Hashish
I have created a web control library which have a custom control CC.vb and a
web page wp.aspx. How I could deploy and distribute the page with the
control?, and what is url of the page in this case?.

Author
7 Apr 2005 6:47 PM
Teemu Keiski
Control knows only about its containing Page via its Page property. All you
have there (and also all you have via Context property which represents
current HttpContext) is what you can use unless you hardcode the control
into a certain page (which might not make it very reusable one)

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU


Show quoteHide quote
e"Ahmed Hashish" <a_hash***@hotmail.com> wrote in message
news:ulaVUF4OFHA.580@TK2MSFTNGP15.phx.gbl...
>I have created a web control library which have a custom control CC.vb and
>a web page wp.aspx. How I could deploy and distribute the page with the
>control?, and what is url of the page in this case?.
>
>
Author
10 Apr 2005 2:25 PM
Ahmed Hashish
Dear Teemu
    thanks for replay
    I just wander if I couldn't use the WebPages in my web control library
why VS allows to add it to the project?!!, and If I want to add other
resources to the project (images, xml, ...) how could I use it?

Ahmed



Show quoteHide quote
"Teemu Keiski" <jot***@aspalliance.com> wrote in message
news:%23FuiaI6OFHA.2824@TK2MSFTNGP10.phx.gbl...
> Control knows only about its containing Page via its Page property. All
> you have there (and also all you have via Context property which
> represents current HttpContext) is what you can use unless you hardcode
> the control into a certain page (which might not make it very reusable
> one)
>
> --
> Teemu Keiski
> ASP.NET MVP, AspInsider
> Finland, EU
>
>
> e"Ahmed Hashish" <a_hash***@hotmail.com> wrote in message
> news:ulaVUF4OFHA.580@TK2MSFTNGP15.phx.gbl...
>>I have created a web control library which have a custom control CC.vb and
>>a web page wp.aspx. How I could deploy and distribute the page with the
>>control?, and what is url of the page in this case?.
>>
>>
>
>
Author
11 Apr 2005 11:09 AM
Kannan.V [MCSD.net]
hi ahmed,

Basically custom controls are controls that can be used on any we form.
a custom control cannot again contain a page.
Basically a control sits on the page and its not the other way around.
U can add images as embedded resource to the control and you can read the
image back using the assembly.getmanifestresourcestream methods and convert
it into a bitmap object and use it.

Not very much sure about XML files.

Basically i guess u want to compress a whole web project into a custom
control??
thats not possible.....

regds
Kannan.V

Show quoteHide quote
"Ahmed Hashish" wrote:

> Dear Teemu
>     thanks for replay
>     I just wander if I couldn't use the WebPages in my web control library
> why VS allows to add it to the project?!!, and If I want to add other
> resources to the project (images, xml, ...) how could I use it?
>
> Ahmed
>
>
>
> "Teemu Keiski" <jot***@aspalliance.com> wrote in message
> news:%23FuiaI6OFHA.2824@TK2MSFTNGP10.phx.gbl...
> > Control knows only about its containing Page via its Page property. All
> > you have there (and also all you have via Context property which
> > represents current HttpContext) is what you can use unless you hardcode
> > the control into a certain page (which might not make it very reusable
> > one)
> >
> > --
> > Teemu Keiski
> > ASP.NET MVP, AspInsider
> > Finland, EU
> >
> >
> > e"Ahmed Hashish" <a_hash***@hotmail.com> wrote in message
> > news:ulaVUF4OFHA.580@TK2MSFTNGP15.phx.gbl...
> >>I have created a web control library which have a custom control CC.vb and
> >>a web page wp.aspx. How I could deploy and distribute the page with the
> >>control?, and what is url of the page in this case?.
> >>
> >>
> >
> >
>
>
>