|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Call Page from ControlI 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?. 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) -- Show quoteHide quoteTeemu 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?. > > 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?. >> >> > > 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?. > >> > >> > > > > > > >
Get Value of a control from my Own Control
asp:button Text= Parser Error Disable ButtonColumn button control through code Problem programmatically creating tabstrip webcontrol dynamic control event not firing Viewstate Looking for sorted list webcontrol Binding to listbox / using data access object ASP makes me angry as a clown ;) |
|||||||||||||||||||||||