Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Programatically regenerating the Designer.vb file
Previous Previous
 
Next Next
New Post 4/26/2008 8:24 AM
User is offline Chuck Rizzio
135 posts
9th Ranked




Programatically regenerating the Designer.vb file 
Modified By Chuck Rizzio  on 4/26/2008 10:29:00 AM)

Greetings all...

I'm messing around with code generation and have run into an issue that I need some direction on.   All input is welcome!

I can successfully generate an ASCX with all the Web Controls that I want but now I need to generate the .Designer file.  I was hoping that in my generation logic after I finish generating the ASCX I could call a method passing in the code or a reference to the file and get what needs to be put into the .Designer file. 

The Visual Studio IDE does just this -- when you write an ASCX in code (Source View) then switch to "Design View" you see the messages in the status line of the IDE that it's generating all the controls.  I was hoping that there was a public method somewhere one of the .Net Classes but I have not been able to find anything.  I'm guessing that what we see in the designer is something coded in the IDE that is not actually part of .Net itself.

My generation process uses an ASCX file as a template.  The process loops through all the fields I want to create and adds the code to the ASCX.  I know I could "templatize" the designer file and do something similar but that complicates my logic.  I was hoping to leverage what the Visual Studio IDE does.

Has anyone else attempted this and/or have any suggestions? 

Thanks,

Chuck R.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Programatically regenerating the Designer.vb file
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP