ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
return popup's Problem in view??
Title:
B
I
{code}
?
Hi I used this code but ActionActive was displayed in popup. in view: @(Html.Awe().InitPopupForm() .Name("confirmedPopup") .Height(200) .Url(Url.Action("GetPhoneNumber", "Account"))) <a onclick="awe.open('confirmedPopup')">Submit</a> in controller: [HttpPost] public ActionResult GetPhoneNumber(MobileEmail model) { MobileEmailViewModel ME = S_Account.GetMobileEmailRec(1); int code = ME.ListMobileEmails.Max(x => x.Id); model.Id = code + 1; TempData["ActiveId"] = model.Id; ME.ListMobileEmails.Add(model); //return View("Active") ; return Json(RedirectToAction("Active")); } public ActionResult Active(AccountSubmit As) { MobileEmail me = S_Account.GetMobileEmailById(int.Parse(TempData["ActiveId"].ToString())); As.MobileNumber = me.PhoneNumber; As.Email = me.Email; return View(As); } Now,I want to display ActionActive in view after Register or ok in popup instead of popup. How can I do this??
Save Changes
Cancel
dear
asked at 22 Nov 2016
do you know what value will return `Json(RedirectToAction("Active"))` ? if you don't know you can edit it, and put a breakpoint var res = Json(RedirectToAction("Active"));//put breakpoint here, see res value return res;
at 22 Nov 2016
Omu
It's not important that how value return. I want just return go to ActiveAction and show ActiveAction in view instead of popup.
at 22 Nov 2016
dear
why are you using returning `Json(RedirectToAction("Active"))` ? use the browser console and (F12) and see what is the json result being returned
at 22 Nov 2016
Omu
I don't know used Json(RedirectToAction("Active")) OR return RedirectToAction("Active") Or..... What suggestions??? I use this link :http://demo.aspnetawesome.com/PopupFormDemo#Submit-confirmation-using-OnLoad-func but I wnat after submit go to Active view. Haw can i do this??
at 22 Nov 2016
dear
do you know what the code that you wrote is doing ? specifically this `Json(RedirectToAction("Active"))`, and if you don't know, you should learn c#, asp.net mvc etc. first; because you're problems are not related to Awesome helpers
at 23 Nov 2016
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK