| Composite Controls and adding a form tag programmatically... (2 replies) |
| ASPFriends.com 'aspngreuse' list |
| I am trying to programmatically add the: form id 3D"Form1" runat 3D"server" tag to a web form from a registered custom control. How should I do this? As a literalcontrol? Is this possible? Thanks! |
|
| Loading user controls... (4 replies, VIP) |
| ASPFriends.com 'aspngreuse' list |
| Moved from [aspngwebcontrols] to [aspngreuse] by Swoop Doggy Dogg IronMan@aspelite.com Hello all, I am tasked with creating a Web application for a client using ASP.NET. One of the required features is to facilitate a modular display. I was thinking that I would use user controls to contain data that could then be pushed into a .aspx template. I have a main index.aspx file that contains a series o... |
|
| Controls and Class Library Organization (2 replies) |
| ASPFriends.com 'aspngreuse' list |
| Is it good practice to keep server controls and general classes in separate files or even assemblies? They work fine in the same file, I'm just trying to get a grip on how to group our code in proper namespaces, and be able to use them in other solutions as well. Thanks for any thoughts or links. |
|
| Page Templating (16 replies) |
| ASPFriends.com 'aspngreuse' list |
| Has anyone implemented page templating using the method described in http://www.fawcette.com/vsm/2001 12/magazine/columns/aspnet/default.asp (inheriting your code behind page class from a custom page class using placeholders, etc.)? What are the pros/cons of this approach as regards speed (and maintainability)? It's sounds cool, except it seems that for every page you'd have to have an ASPX that i... |
|
| loadcontrol causing specified cast invalid (3 replies) |
| ASPFriends.com 'aspngreuse' list |
| Moved from [aspngcs] to [aspngreuse] by Alex Lowe webmaster@asp grandrapids.net Moved from [aspngcontrolscs] to [aspngcs] by Rachel Reese rachelemilyreese@hotmail.com Hi, I have a usercontrol that is causing a Specificed Cast invalid error on the page which I'm trying to load it from. I'm loading it using the Page.LoadControl method and adding it to a placeholder. When I turn off viewstate on the ... |
|
| Multiple User Controls on one Page (4 replies) |
| ASPFriends.com 'aspngreuse' list |
| Hi, I have an ASP.NET page which has 2 instances of a user control which I've created. The control is a table with several text boxes which are populated with text at the time of loading. If I have only one control on the page, everything works as it should BUT when there are two, the boxes are only populated in the second control! I've been struggling with this for ages, can anyone shed any light... |
|
| Dynamically Adding Controls (3 replies) |
| ASPFriends.com 'aspngreuse' list |
| Moved from [aspngcontrolsvb] to [aspngreuse] by devin dmrader@sseinc.com Hello, I'm trying to dynamically add controls to a page and pass parameters to those controls as well, but I can't figure out how to do the latter. The hard coded way to do it would be something like: %@ Page language "vb" % %@ Register TagPrefix "my" TagName "Header" Src "/Controls/Header.ascx" % %@ Register TagPrefix "my" T... |
|