Click here to Skip to main content
16,005,080 members
Home / Discussions / Web Development
   

Web Development

 
Generaldocument.formname.elements Pin
mtone27-Jul-05 8:49
mtone27-Jul-05 8:49 
GeneralASP.NET application deployment Pin
azam31627-Jul-05 5:47
azam31627-Jul-05 5:47 
GeneralRe: ASP.NET application deployment Pin
Christian Graus27-Jul-05 16:04
protectorChristian Graus27-Jul-05 16:04 
GeneralRe: ASP.NET application deployment Pin
Vasudevan Deepak Kumar27-Jul-05 17:08
Vasudevan Deepak Kumar27-Jul-05 17:08 
GeneralRe: ASP.NET application deployment Pin
minhpc_bk27-Jul-05 17:13
minhpc_bk27-Jul-05 17:13 
GeneralRe: ASP.NET application deployment Pin
azam31627-Jul-05 22:54
azam31627-Jul-05 22:54 
Generalhiding user controls Pin
wpcolleen27-Jul-05 4:46
wpcolleen27-Jul-05 4:46 
GeneralRe: hiding user controls Pin
minhpc_bk27-Jul-05 15:39
minhpc_bk27-Jul-05 15:39 
Hi there,
There are a couple of things come to mind after a quick scan on your sample code:
+ To add a web user control to the web page, you cannot use the new keyword to create the user control and add it to the web page. You either declare it on the web page, for example:
<uc1:Keyboard id="Keyboard1" runat="server" />
or use the LoadControl method to programmatically load the user control based on its path.

+ In the code-behind, you simply add the declaration for the control instance:
protected Keyboard  Keyboard1;//Declare the same id used on the web page


+ To make the control insivible, simply set the Visible property to false as you did.

For more information, you can see Adding User Controls to a Web Forms Page[^]
GeneralSELECT WITH VARIABLE Pin
evlxtc26-Jul-05 23:31
evlxtc26-Jul-05 23:31 
GeneralRe: SELECT WITH VARIABLE Pin
Guffa27-Jul-05 0:44
Guffa27-Jul-05 0:44 
GeneralRe: SELECT WITH VARIABLE Pin
evlxtc27-Jul-05 20:06
evlxtc27-Jul-05 20:06 
GeneralRe: SELECT WITH VARIABLE Pin
Guffa27-Jul-05 23:39
Guffa27-Jul-05 23:39 
Generalhi Pin
Anonymous26-Jul-05 22:59
Anonymous26-Jul-05 22:59 
Generalhello Pin
C0d3_P03t27-Jul-05 1:47
C0d3_P03t27-Jul-05 1:47 
GeneralRe: hello Pin
DavidNohejl27-Jul-05 6:20
DavidNohejl27-Jul-05 6:20 
GeneralSleep in VBScript Pin
Spaz8026-Jul-05 22:05
Spaz8026-Jul-05 22:05 
GeneralRe: Sleep in VBScript Pin
minhpc_bk26-Jul-05 23:29
minhpc_bk26-Jul-05 23:29 
GeneralRe: Sleep in VBScript Pin
Spaz8026-Jul-05 23:48
Spaz8026-Jul-05 23:48 
Generalsending email through ASP Pin
Kesari26-Jul-05 3:25
Kesari26-Jul-05 3:25 
GeneralRe: sending email through ASP Pin
Guffa26-Jul-05 5:42
Guffa26-Jul-05 5:42 
GeneralRe: sending email through ASP Pin
Kesari26-Jul-05 17:39
Kesari26-Jul-05 17:39 
GeneralRe: sending email through ASP Pin
Vasudevan Deepak Kumar26-Jul-05 18:29
Vasudevan Deepak Kumar26-Jul-05 18:29 
GeneralRe: sending email through ASP Pin
Guffa27-Jul-05 0:40
Guffa27-Jul-05 0:40 
GeneralRe: sending email through ASP Pin
pigangel_yang28-Jul-05 15:42
pigangel_yang28-Jul-05 15:42 
GeneralRe: sending email through ASP Pin
Kesari29-Jul-05 1:24
Kesari29-Jul-05 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.