Click here to Skip to main content
16,016,580 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: displaying date format Pin
bhanu1234524-Jan-08 22:50
bhanu1234524-Jan-08 22:50 
GeneralRe: displaying date format Pin
Sathesh Sakthivel24-Jan-08 23:01
Sathesh Sakthivel24-Jan-08 23:01 
Generalidentifier expected Pin
hurrem24-Jan-08 13:21
hurrem24-Jan-08 13:21 
GeneralRe: identifier expected Pin
Michael P. Scherer24-Jan-08 15:37
Michael P. Scherer24-Jan-08 15:37 
GeneralRe: identifier expected Pin
hurrem24-Jan-08 16:04
hurrem24-Jan-08 16:04 
GeneralArithmatic Over flow exception in .NET Pin
Elena200624-Jan-08 7:10
Elena200624-Jan-08 7:10 
GeneralRe: Arithmatic Over flow exception in .NET Pin
Ennis Ray Lynch, Jr.24-Jan-08 7:39
Ennis Ray Lynch, Jr.24-Jan-08 7:39 
GeneralSubWebs, UserControls, Skins, and dynamically loading an ascx Pin
pattyweb24-Jan-08 6:19
pattyweb24-Jan-08 6:19 
What a mess......

Description: I have a large scale asp.net 1.1 application I'm trying to move to 2.0. I'm hoping to improve some aspects in the port. It's made up of many modules, separate web applicaton projects, different directories (not nested), and it's all connected via IIS. I can open, run, debug, etc. Works great. Design time support is very lacking.

VS 2008

I'm trying to build a new framework using 2.0. Now that 2.0 has the whole master pages feature built in I figure I'd dump the old 1.0 approach. So far I've got that working. But now the controls. Before I'd have ascx files (standalone, don't inherit from anything) and then my pages would reference user controls (by class, NOT ascx) that are not attached to any ascx. Based on settings, or if an override ascx file is found in another directory, this usercontrol would dynamically load the PROPER ascx file and add it to it's empty control collection. It would then look for the appropriate controls in that loaded control, and move data accordingly.

I've read about the asp.net 2.0 'themes and skins' but this doesn't seem to do what I want. This is more about just styles, colors, etc then actually allowing one to provide a whole new ascx file with a radical new layout. Or does it and I'm missing something?

I can make the old approach work in VS2008 with the same lack of any designer support.

One issue with building ascx controls with codebehind and referencing those ascx's directly from a page is that it's all broken as soon as you add these controls in a subweb. The path in the register tag doesn't work. Either you set the tag so it works in design time breaking the runtime or vice versa. You can have one but not the other. Because of this I have my ascx and cs disconnected. My pages reference the cs directly which is nice since no path is involved.

So, the big questions.

1) If I register an ascx directly in a page, how can I make it work in both design time and runtime? Designtime path is relative to the project. Runtime path needs to include the subdirectory that the sub web application project is in. Is there any way to make this work?

2) Is there anything NEW in asp.net 2.0 or VS2008 that will allow me to create a UserControl (ascx and codebehind cs) but then at runtime change which ascx to actually load? It would be nice to have the designtime integration of the ascx and cs working together. But then at runtime, maybe I want a different ascx? But I don't want to have to change all the register tags in all the pages that reference that. My current app ships with all the default ascx files but then if I want to change something, I can just make a new version of an existing ascx file, place it in a client override skins directory and my application loads that. Of course, the current app, the ascx and cs are disconnected.
General"parameter 'Parameter1' is missing a value" - .rdlc Report error Pin
Member 470022524-Jan-08 4:05
Member 470022524-Jan-08 4:05 
GeneralCross Post, Ignore... Pin
Justin Perez24-Jan-08 4:08
Justin Perez24-Jan-08 4:08 
GeneralRe: "parameter 'Parameter1' is missing a value" - .rdlc Report error Pin
Paul Conrad24-Jan-08 6:08
professionalPaul Conrad24-Jan-08 6:08 
General[Message Deleted] Pin
Member 470022524-Jan-08 7:16
Member 470022524-Jan-08 7:16 
GeneralPlease ignore the previous one Pin
Member 470022524-Jan-08 7:22
Member 470022524-Jan-08 7:22 
GeneralRe: Please ignore the previous one Pin
Paul Conrad24-Jan-08 7:26
professionalPaul Conrad24-Jan-08 7:26 
GeneralRe: "parameter 'Parameter1' is missing a value" - .rdlc Report error Pin
Paul Conrad24-Jan-08 7:25
professionalPaul Conrad24-Jan-08 7:25 
GeneralRe: "parameter 'Parameter1' is missing a value" - .rdlc Report error Pin
Member 470022524-Jan-08 10:41
Member 470022524-Jan-08 10:41 
Generalcheckbox problem Pin
eyeseetee24-Jan-08 3:20
eyeseetee24-Jan-08 3:20 
GeneralRe: checkbox problem Pin
Paul Conrad24-Jan-08 6:13
professionalPaul Conrad24-Jan-08 6:13 
GeneralRe: checkbox problem Pin
bokuceres24-Jan-08 22:19
bokuceres24-Jan-08 22:19 
GeneralRe: checkbox problem Pin
bhanu1234524-Jan-08 23:04
bhanu1234524-Jan-08 23:04 
Generalrunning exe in shared hosting Pin
Mogaambo24-Jan-08 3:19
Mogaambo24-Jan-08 3:19 
GeneralRe: running exe in shared hosting Pin
Vasudevan Deepak Kumar24-Jan-08 4:12
Vasudevan Deepak Kumar24-Jan-08 4:12 
GeneralRe: running exe in shared hosting Pin
Mogaambo24-Jan-08 4:46
Mogaambo24-Jan-08 4:46 
GeneralRe: running exe in shared hosting Pin
N a v a n e e t h24-Jan-08 7:51
N a v a n e e t h24-Jan-08 7:51 
GeneralDeployment issue Pin
samerh24-Jan-08 2:47
samerh24-Jan-08 2:47 

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.