Click here to Skip to main content
15,886,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Get the query string with parameteres ( parameter value can be change) Pin
Richard Deeming3-Jul-17 1:51
mveRichard Deeming3-Jul-17 1:51 
QuestionMVC Application RoleManager issue after being deployed in Azure Pin
Farhad Eft29-Jun-17 4:54
Farhad Eft29-Jun-17 4:54 
AnswerRe: MVC Application RoleManager issue after being deployed in Azure Pin
F-ES Sitecore29-Jun-17 23:41
professionalF-ES Sitecore29-Jun-17 23:41 
Suggestionproject definition Pin
Member 1327996126-Jun-17 17:59
Member 1327996126-Jun-17 17:59 
GeneralRe: project definition Pin
Richard MacCutchan26-Jun-17 20:56
mveRichard MacCutchan26-Jun-17 20:56 
AnswerRe: project definition Pin
ZurdoDev27-Jun-17 9:54
professionalZurdoDev27-Jun-17 9:54 
QuestionHow to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14323-Jun-17 12:41
indian14323-Jun-17 12:41 
AnswerRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
F-ES Sitecore25-Jun-17 23:01
professionalF-ES Sitecore25-Jun-17 23:01 
The answer all depends on your specific requirements. Usually you have a form that submits to an action on the same controller and that action will do validation and processing and if it is successful it redirects you to the second page by returning a RedirectToAction. You always redirect or link to actions on controllers, never views.

[HttpGet]
public ActionResult PageOne()
{
    MyModel model = new MyModel();

    return View(model);
}

[HttpPost]
public ActionResult PageOne(MyModel model)
{
    // do validation
    if (!ModelState.IsValid)
    {
        return View(model);
    }

    // do processing of model

    // redirect to page two
    return RedirectToAction("PageTwo");
}

[HttpGet]
public ActionResult PageTwo()
{
    return View();
}


I suggest you get a book on MVC or at least go through some basic tutorials (google for "MVC Music Store") as all these basic topics will be covered.
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14326-Jun-17 8:28
indian14326-Jun-17 8:28 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
jkirkerx26-Jun-17 13:26
professionaljkirkerx26-Jun-17 13:26 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
F-ES Sitecore26-Jun-17 22:53
professionalF-ES Sitecore26-Jun-17 22:53 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14327-Jun-17 7:17
indian14327-Jun-17 7:17 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
Richard Deeming27-Jun-17 9:31
mveRichard Deeming27-Jun-17 9:31 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14327-Jun-17 11:55
indian14327-Jun-17 11:55 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
F-ES Sitecore27-Jun-17 22:31
professionalF-ES Sitecore27-Jun-17 22:31 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14328-Jun-17 6:40
indian14328-Jun-17 6:40 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
F-ES Sitecore28-Jun-17 22:22
professionalF-ES Sitecore28-Jun-17 22:22 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14328-Jun-17 6:44
indian14328-Jun-17 6:44 
QuestionHTTP Error 500.19 - Internal Server Error Pin
indian14321-Jun-17 11:29
indian14321-Jun-17 11:29 
AnswerRe: HTTP Error 500.19 - Internal Server Error Pin
F-ES Sitecore21-Jun-17 22:41
professionalF-ES Sitecore21-Jun-17 22:41 
GeneralRe: HTTP Error 500.19 - Internal Server Error Pin
indian14322-Jun-17 7:38
indian14322-Jun-17 7:38 
AnswerRe: HTTP Error 500.19 - Internal Server Error Pin
Richard Deeming22-Jun-17 1:25
mveRichard Deeming22-Jun-17 1:25 
QuestionPosting the same form on 10 pages to a single action on a controller Pin
jkirkerx21-Jun-17 7:36
professionaljkirkerx21-Jun-17 7:36 
AnswerRe: Posting the same form on 10 pages to a single action on a controller Pin
Richard Deeming21-Jun-17 8:59
mveRichard Deeming21-Jun-17 8:59 
GeneralRe: Posting the same form on 10 pages to a single action on a controller Pin
jkirkerx22-Jun-17 12:56
professionaljkirkerx22-Jun-17 12:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.