Entering to index page?

Posted by FullmetalBoy on Stack Overflow See other posts from Stack Overflow or by FullmetalBoy
Published on 2011-01-15T19:48:22Z Indexed on 2011/01/15 19:53 UTC
Read the original article Hit count: 196

Filed under:
|
    //
    // Post: /Search/Alternativ1/txtBoxTitle)

    [HttpPost]
    public ActionResult Alternativ1(int txtBoxTitle)
    {
        SokningMedAlternativ1 test= new SokningMedAlternativ1();

        if (txtBoxTitel != null)
        {
            var codeModel = test.FilteraBokLista(txtBoxTitel);
        }

        return View(codeModel);
    }

Problem:
I have problem to find a solution to go back to my index page (first page when entering a website for the first time) view if txtBoxTitle has null.

My request:
How shall I enter to my index page view automatically if txtBoxTitle contains null?

// Fullmetalboy

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about asp.net-mvc-2