Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have a wizard like this: http://jsfiddle.net/rniemeyer/FyuSD/ when i click button next data of current step are send to the server (the function to send data its not display in this link ) in the server i have an action like this:

C#
[HttpPost]
    public ActionResult SocialNetworkChoice(string[] selectedSocialNetwork)
    {
        if (selectedProduct!= null)
        {
          // check if the user got a social account linked in for all the selected networks
          // and redirect to the link account page
          ....
            if (q.Count() > 0)
            {
                return RedirectToAction("LinkAccount", "Account", new LinkAccountModel() { ProviderName = q.First() });
            }

            else
            {....}

          }


in the first step i have two checkbox for two social networks, when a user check ckeckbox data its send to the action SocialNetworkChoice. if (q.Count() > 0) the view for action "LinkAccount" doesn't display and the wizard pass to the second step

How can to solve this probleme if (q.Count() > 0) redirect to LinkAccount (View) else to second step

I'm sorry for my bad english,

thanks,
Posted

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