Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Here is the code to display list of razor pages. I want that when i click on that path it will be open the razor page.

C#
public ActionResult List()
       {
           var dbContext = new MyDbDataContext();
           var ct = from Content in dbContext.Table4s select Content;
           var ctm = new List<SupportTeam.Models.Content>();
           if (ct.Any())
           {
               foreach (var list in ct)
               {
                   ctm.Add(new SupportTeam.Models.Content() { id = list.Id, title = list.Title, page_title = list.Ptitle, url = list.Url, description = list.Description });
               }
           }
           return View(ctm);
       }
Posted
Updated 11-Jun-14 19:16pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900