Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedWhere have all the ascx.cs files gone?  Specifically User.ascx.cs?Where have all the ascx.cs files gone? Specifically User.ascx.cs?
Previous
 
Next
New Post
7/20/2017 11:26 PM
 

Hi,

I had a custom modification to \admin\skins\User.ascx.cs.  This was working fine on our 7.4.1 site.  After an upgrade to 9.0.1 I came to reapply the mod to the file.  The file is no longer there.  The user.ascx file is, but the cs file is gone.  The user.ascx file claims there is a code behind named user.ascx.cs, but it's gone.

I have two questions - what is the modern approach for such custom modifications?  Can I just reinstate the file?  If I do will it be used?

Why has that file gone?  A quick glance at the folder shows that there are almost no .cs files. 


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/21/2017 7:36 AM
 
Richard,

I _guess_: It has been compiled and can be found in some DLL file in the bin directory.

It should be possible to write some code that overrides or extends the methods and properties of the defined class, but I think you have to either compile it as well into a dll or place the source file it in the App_Code folder.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
7/22/2017 2:01 PM
 
thanks to Oliver Hine, DNN Website is now precompiled into DotNetNuke.Website.dll.

You should not modify DNN platform files. Clone the files, e.g. myuser.ascx and myuser.ascx.cs. adjust namespace and apply your modification.
In your Skins, you need to adjust sko registration to point to your modified skin object

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedWhere have all the ascx.cs files gone?  Specifically User.ascx.cs?Where have all the ascx.cs files gone? Specifically User.ascx.cs?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out