|
Hi Ray!
i'm using SitemapActionAttribute follow your tutorial : https://dotnetage.com/publishing/dna/2011/08/31/6909/extending-action-as-webpage.html . But my site can't show custom page . Here 's my CS controller file: 1:
2: using System; 3: using System.Collections.Generic; 4: using System.Linq; 5: using System.Web; 6: using System.Web.Mvc; 7:
8: using DNA.Mvc; 9: using DNA.Mvc.UI; 10: using DNA.Mvc.Controllers; 11:
12: namespace SAWidget.Controllers 13: {
14: public class dcmController : Controller 15: {
16: // 17: // GET: /dcm/ 18:
19: [SiteMapAction()]
20: public ActionResult Detail(int id) 21: {
22: return View(); 23: }
24:
25: }
26: }
27:
If i change SitemapActionAttribute to SiteControlPanel follow your tutorial : https://dotnetage.com/publishing/dna/2011/08/31/6906/how-to-write-console-panel.html This is cs controller changed: 1:
2: using System; 3: using System.Collections.Generic; 4: using System.Linq; 5: using System.Web; 6: using System.Web.Mvc; 7:
8: using DNA.Mvc; 9: using DNA.Mvc.UI; 10: using DNA.Mvc.Controllers; 11:
12: namespace SAWidget.Controllers 13: {
14: public class dcmController : Controller 15: {
16: // 17: // GET: /dcm/ 18:
19: [SiteControlPanel(Text="Custommers", Group="SAControl")] 20: public ActionResult Index() 21: {
22: return View(); 23: }
24:
25: }
26: }
27:
this controlpanel showed in consol ! pls help me why, did i typed wrong? |