Ask a Question related to ASP.NET Building Controls, Design and Development.
-
using user controls in class file
Hi
I would like to define an instance of a user control, which is in a separate
assembly, in a class file I am trying to build, how can I do this, please?
I am getting compilation error, saying "missing using directive or an
assembly reference", but I have already included the "using ..." directive.
I have also tried using the /reference option when compiling, but I get
"CS0006 metadata file can not be found", in fact all the files are under the
same development directory, say c:\dev\asp.net.
Any idea?
TIA
--
Guest
-
Keeping 2 user controls of the same class synced
On a page, I need to show one item at a time. The top of the page has a Previous-Next control, followed by the item being shown, followed by... -
communication between an application, custom controls, and user controls
Hi, and many thanks in advance... I'm a little lost about how to proceed with communication between an application, custom controls, and user... -
Why the properties of web user controls which inherted from my custom base UI controls MISSED?
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable? -
using javascript in User controls to access server controls of the user control
Hello all, I have an asp.net textbox (named txtHidden) and an HtmlButton(named btnAction). I wanted to write a javascript function which will get... -
user controls: dynamiclly added child controls dont survive post back ?
hi, i have some strange behaviour: i've created a web user control that add's some child controls (e.g: textbox, image buttons) to its control... -
Re: using user controls in class file
Hi
I add the file extension to the /reference and CS0006 is gone, but CS0234 -
missing assembly and the CS0246 are still there, please help?!
TIA
<dl> wrote in message news:%23h4o4H3XFHA.612@TK2MSFTNGP12.phx.gbl...separate> Hi
> I would like to define an instance of a user control, which is in adirective.> assembly, in a class file I am trying to build, how can I do this, please?
>
> I am getting compilation error, saying "missing using directive or an
> assembly reference", but I have already included the "using ..."the>
> I have also tried using the /reference option when compiling, but I get
> "CS0006 metadata file can not be found", in fact all the files are under> same development directory, say c:\dev\asp.net.
>
> Any idea?
>
> TIA
>
> --
>
>
>
Guest
-
lisa@starways.net #3
Re: using user controls in class file
dl wrote:separate> Hi
> I would like to define an instance of a user control, which is in aplease?> assembly, in a class file I am trying to build, how can I do this,directive.>
> I am getting compilation error, saying "missing using directive or an
> assembly reference", but I have already included the "using ..."
Sometimes that isn't enough. Are you using VS.NET? If so, go to the
references under the project name and add the usercontrol there.
Lisa
lisa@starways.net Guest
-
Re: using user controls in class file
Thanks
I somehow got it fixed by changing the instance declaration to "public". Of
course, I also had the /reference option when compiling.
<lisa@starways.net> wrote in message
news:1116869209.077847.124110@g49g2000cwa.googlegr oups.com...>
> dl wrote:> separate> > Hi
> > I would like to define an instance of a user control, which is in a> please?> > assembly, in a class file I am trying to build, how can I do this,> directive.> >
> > I am getting compilation error, saying "missing using directive or an
> > assembly reference", but I have already included the "using ..."
>
> Sometimes that isn't enough. Are you using VS.NET? If so, go to the
> references under the project name and add the usercontrol there.
>
> Lisa
>
Guest



Reply With Quote

