Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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???

George C.K. Low

Posted
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?

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.

Posted

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.

George C.K. Low

Posted
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

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.

Posted

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.

George C.K. Low

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...