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...Building ExtensionsBuilding ExtensionsModulesModulesDNN 8 - Christoc Templates - DAL2 MVC and SPA - Where is View.ascx?DNN 8 - Christoc Templates - DAL2 MVC and SPA - Where is View.ascx?
Previous
 
Next
New Post
9/6/2016 7:44 PM
 

I haven't done many of these (2 maybe?) and that was a year or more ago.  Now I am on DNN8 and need to get a few simple modules built, e.g., read stored procedure results into a grid view.  

I downloaded the new templates and created a project using first the MVC, then when I couldn't find the view.ascx file and realized how simple this page would be, so I went and created another project, this time using the SPA template.  Again, no view.ascx file.

Does someone have a sample simple module out there I can look at?  I am writing in C#, and although it doesn't sound like it, I have been doing this kind of work for nearly 20 years.  This just has me befuddled in my old age, I guess.

Any direction would be appreciated.  Thanks.

JoAnn

 
New Post
9/6/2016 11:34 PM
 

Hello JoAnn,
When you are using the DAL2 MVC , you never get an view.ascx file because the MVC model has a Controller folder, a View folder and a Model folder. So when you use the DAL2 MVC template look for the Views -> Item and there you will see 2 files index.chtml and edit.cshtml which respectively correspond to vieux.aspx and edit.ascx
The DAL2 SPA (if I am correct) uses AJAX and web api, so you will have view.html and edit.html at the root level.
So recreate your MVC module , compile it and deploy it to make sure it works first and then you can start modifying your itemManager.cs, ItemsController.cs, index.cshtml , edit.cshtml and 00.00.01.SqlDataPrivider to include the field that you want to add.

I hope this help...

 

 
New Post
9/7/2016 8:51 AM
 

Thanks.  I was trying to follow the online tutorials but I am going to guess that the ones I found are all out of date and that there is a current one I can't find.  As much as I love DNN, I sure hate trying to find things.  If you know where the current tutorial is, that would be wonderful.  

Looking at other modules I was able to find in the annual module competition section, I see multiple folders under Views which seem to be individual pages, so I am going to guess that the Item folder is a sample for a single page and that I should be creating a clean folder for each page.  

Thanks for your help!

 
New Post
9/8/2016 9:45 PM
 
Give me the specs of the module you want to build and will see if i can get you a starter project.
 
New Post
9/9/2016 10:13 PM
 

That is a very generous offer.  How about a list of all usernames and email addresses, with a passed parameter of the first letter of the username, 

select username, email from users where left(username,1)[email protected]
order by username

I have the SPs written for the actual output but figuring out where to put what and telling what is new-to-me .Net syntax vs. DNN-specific syntax is taxing.

That would do me a world of good.  I thank you

JoAnn

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 8 - Christoc Templates - DAL2 MVC and SPA - Where is View.ascx?DNN 8 - Christoc Templates - DAL2 MVC and SPA - Where is View.ascx?


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