Click here to Skip to main content
15,925,042 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# windows service using Word Pin
Nick Ingratta11-Nov-04 8:14
Nick Ingratta11-Nov-04 8:14 
GeneralRe: C# windows service using Word Pin
Heath Stewart11-Nov-04 8:24
protectorHeath Stewart11-Nov-04 8:24 
GeneralRe: C# windows service using Word Pin
leppie11-Nov-04 0:13
leppie11-Nov-04 0:13 
GeneralRe: C# windows service using Word Pin
Heath Stewart11-Nov-04 6:34
protectorHeath Stewart11-Nov-04 6:34 
GeneralCLR access policy for a C# control Pin
fridtjof10-Nov-04 8:04
fridtjof10-Nov-04 8:04 
GeneralRe: CLR access policy for a C# control Pin
Judah Gabriel Himango10-Nov-04 8:22
sponsorJudah Gabriel Himango10-Nov-04 8:22 
GeneralRe: CLR access policy for a C# control Pin
Nick Parker10-Nov-04 8:23
protectorNick Parker10-Nov-04 8:23 
GeneralDynamic user controls Pin
HectorB10-Nov-04 7:46
HectorB10-Nov-04 7:46 
Hello.
I have a web C# project with a form with 3 buttons and 3
placeholders, each placeholder contains a Web User Control,
when I click over button 1 it shows the data of WUC1, when
I click over button 2 it shows the data of WUC2 and when I
click over button 3 it shows the data of WUC3. My solution
was to make initially invisible the 3 placeholders and when
a button is clicked then I made visible the corresponding
placeholder, as the following code from button 1 shows:

this.PlaceHolder1.Visible = true;
this.PlaceHolder2.Visible = false;
this.PlaceHolder3.Visible = false;

This works well, but I think it's not too eficient to have
loaded the 3 WUCs, so I'm trying to make a dynamic load of
each WUC depending the button clicked, example of button 1:

private void btn1_Click(object sender,
System.EventArgs e){
this.PlaceHolder1.Controls.Clear();
this.PlaceHolder2.Controls.Clear();
this.PlaceHolder3.Controls.Clear();
this.PlaceHolder1.Controls.Add(LoadControl("WUC1.ascx"));
//Only load the WUC1
}

This code load well the WUCs, show the data, but it can't
execute the events of the WUCs, because in each WUC I have
buttons that perform some operations and this events don't
execute, i put a breakpoint and show that the page_load of
the page that contains the WUCs, I think it's a problem of
dynamic load of controls, any idea would be appreciated.
Thanks a lot.

GeneralRe: Dynamic user controls Pin
Nick Parker10-Nov-04 8:10
protectorNick Parker10-Nov-04 8:10 
Generaldestroy dll Pin
ppp00110-Nov-04 7:15
ppp00110-Nov-04 7:15 
GeneralRe: destroy dll Pin
Nick Parker10-Nov-04 7:28
protectorNick Parker10-Nov-04 7:28 
GeneralConditional Attributes Pin
Kevin McFarlane10-Nov-04 5:27
Kevin McFarlane10-Nov-04 5:27 
GeneralMonitor Problem Pin
waiwai0910-Nov-04 3:18
waiwai0910-Nov-04 3:18 
GeneralPathfinding (path or no path) in 3D Pin
Sebastian Schneider10-Nov-04 3:04
Sebastian Schneider10-Nov-04 3:04 
GeneralFind and replace in text file Pin
sevan10-Nov-04 2:12
sevan10-Nov-04 2:12 
GeneralRe: Find and replace in text file Pin
Dave Kreskowiak10-Nov-04 3:27
mveDave Kreskowiak10-Nov-04 3:27 
GeneralRe: Find and replace in text file Pin
tom_dx10-Nov-04 12:39
tom_dx10-Nov-04 12:39 
GeneralRe: Find and replace in text file Pin
Dave Kreskowiak10-Nov-04 13:37
mveDave Kreskowiak10-Nov-04 13:37 
GeneralRe: Find and replace in text file Pin
Kraki11-Nov-04 9:06
Kraki11-Nov-04 9:06 
QuestionIs there a way to prevent InitializeComponent() regeneration? Pin
DizzyMobile10-Nov-04 1:26
DizzyMobile10-Nov-04 1:26 
AnswerRe: Is there a way to prevent InitializeComponent() regeneration? Pin
Skynyrd10-Nov-04 5:26
Skynyrd10-Nov-04 5:26 
AnswerRe: Is there a way to prevent InitializeComponent() regeneration? Pin
J4amieC10-Nov-04 5:34
J4amieC10-Nov-04 5:34 
GeneralRe: Is there a way to prevent InitializeComponent() regeneration? Pin
DizzyMobile10-Nov-04 8:35
DizzyMobile10-Nov-04 8:35 
GeneralRe: Is there a way to prevent InitializeComponent() regeneration? Pin
Skynyrd10-Nov-04 9:47
Skynyrd10-Nov-04 9:47 
Generaloverride WndProc allow form resize, move, max and min Pin
Lyhr10-Nov-04 0:51
Lyhr10-Nov-04 0:51 

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.