georgepatotk Posted April 17, 2004 Posted April 17, 2004 Dear all, I am creating a user control (ascx) and this user control is embedded into an aspx. For your information, this ascx has few buttons. It is so funny that if I add the ascx into the aspx in the programming time, it works just fine. But, if I add it dynamically during executin time, the buttons in the ascx dont' work. Why, why, why.... can you tell me why??? Quote George C.K. Low
Joe Mamma Posted April 17, 2004 Posted April 17, 2004 Dear all, I am creating a user control (ascx) and this user control is embedded into an aspx. For your information, this ascx has few buttons. It is so funny that if I add the ascx into the aspx in the programming time, it works just fine. But, if I add it dynamically during executin time, the buttons in the ascx dont' work. Why, why, why.... can you tell me why??? Are you adding the user control to the Pages Controls property? how about posting your dynamic User Control creation code? Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
georgepatotk Posted April 18, 2004 Author Posted April 18, 2004 As attached, anyone can tell me what is the problem?? Panel1 is actually a login ascx. Panel2 is Tabs (Functions available for certain users). And panel3 is for the modules/functions interface. It is a portal by the way. Quote George C.K. Low
Moderators Robby Posted April 18, 2004 Moderators Posted April 18, 2004 I think that Joe ment to see your code. Quote Visit...Bassic Software
Joe Mamma Posted April 18, 2004 Posted April 18, 2004 I think that Joe ment to see your code. Yes, how let us see the code that you are implementing to dynamically create the user control and add it to the Page Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
georgepatotk Posted April 19, 2004 Author Posted April 19, 2004 okok.. I will display the code here. but I need to do some modification, cause it might to messy to paste everything here. I will paste it shortly Quote George C.K. Low
georgepatotk Posted April 19, 2004 Author Posted April 19, 2004 (edited) Please help me to see what is the problem. Or tell me what is the way to achieve the same result. ThanksTestUserControl.zip Edited April 19, 2004 by georgepatotk Quote George C.K. Low
georgepatotk Posted April 19, 2004 Author Posted April 19, 2004 Why I can't add two ASP:Button in a runat server form I had figured out the problems. It is because when I dynamically added th second button if a form (runat="server"), the added button won't work. but, I still don't have the solution on how to cure this problem. Anyone can tell me, please. Quote George C.K. Low
georgepatotk Posted April 19, 2004 Author Posted April 19, 2004 I got the solution... Actually the buttons work. I just need to recreate the button everytime I post back my page. Thanks for spending your time with me. Quote George C.K. Low
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.