Adding footer control to the page Dynamically.
-
Hi, I created one footer user control, and want to load that control dynamically.I have one BasePage class in my application, it is the base page for all web forms. In the base page overridden Render, onPreRender events. I tried to add the footer control in both methods and it is not working properly. Problem is that the footer control is adding between the page controls, but I want it to be at the bottom in the webpage (I tried it using writer object and also adding to form control using Add,AddAt methods). Please provide suggestions. Regards, Chakravarthy.v
-
Hi, I created one footer user control, and want to load that control dynamically.I have one BasePage class in my application, it is the base page for all web forms. In the base page overridden Render, onPreRender events. I tried to add the footer control in both methods and it is not working properly. Problem is that the footer control is adding between the page controls, but I want it to be at the bottom in the webpage (I tried it using writer object and also adding to form control using Add,AddAt methods). Please provide suggestions. Regards, Chakravarthy.v
Use a place holder. Then use the placeholders .Controls.Add(...) method.