Post Action dose not work
i enter wrong captcha at first and get error "captcha is wrong ".
after it shows "captcha is wrong " i enter
right captcha and press "register" button , but it dose not post . i think it's because of partial part , yes?
how can i solve it?
[HttpGet]
public virtual ActionResult Register()
if (Request.IsAjaxRequest())
return View(MVC.Account.Views.Register);
return View();
[HttpPost]
[ValidateAntiForgeryToken]
[CaptchaVerify("captcha is wrong")]
public virtual ActionResult Register(RegisterModel model)
if (!ModelState.IsValid)
return PartialView(MVC.Account.Views._Register, model);
return Json(new { show = "success" });
view :
ViewBag.Title = "Register";
@using (Ajax.BeginForm(MVC.Account.Register(), new AjaxOptions { HttpMethod = "POST", OnSuccess = "RegisterUser.Form.onSuccess", LoadingElementDuration = 300, LoadingElementId = "loadingMessage", UpdateTargetId = "registerForm" }, new { @class = "form-group", @id = "registerForm" }))
@Html.AntiForgeryToken()
@Html.Partial(MVC.Account.Views._Register)
PartialView (_Register) :
@model Models.RegisterModel
@using CaptchaMvc.HtmlHelpers;
<div class="message" id="addCommentResult">@Html.ValidationSummary()</div>
@Html.TextBoxFor(z => z.LName, new { @class = "form-control" })
@Html.TextBoxFor(z => z.Email, new { @id = "registerEmail", @class = "form-control zozo-dir" })
<div class="right">
<input type="submit" value="Register" class="button btn btn-normal">
</div>
myscript.js :
RegisterUser.Form.onSuccess = function (data) {
if (data.show == "success") {
var message = '<div class="success">thanks for your register</div>';
$('#addCommentResult').html(message);
else {
$('#RegisterModel').html(data);
i do MVC.
Please post MVC questions in the ASP.NET forums (http://forums.asp.net ).
Similar Messages
-
My iPhoto '11 dose not work from 0:00 Sunday. I was deleting and downloaded againg but the problem is same.
Sorry but we need more to go on thatn it does not work
what happens? what does not happen? what error messages to you get? if it crashes post the first 50 lines of the carash report
LN -
NOKIA ASHA 200 dose not work social application
Hi..
Since yesterday "social" application on my nokia asha 200 dose not work.. when i tring to open it phome display that " Applicion error" phone proved me only "exit" option.. so now i cant login to my facebook account on socia application. can you help me to solve this problem??
Moderator's Note: We have moved your post to the appropriate board. This is to keep the forum organized and let other forum users easily see and respond to this post.hi mate,
have you checked if there are any firmware updates avaiklable for your device via Nokia suite on your PC? if there are any, please updaet to the latest versiojn offered. if not, then try re-installing your current firmware or if that doesn't work, then Restore your phone to factory settings. -
Why youtube dose not work on my macbook pro 10.6.6?
why youtube dose not work on my macbook pro 10.6.6 ?
Double check you have the latest version of Adobe Flash.
-
hi i have a ipod touch 4 generation 64gb and my camera is blocked and dose not work i cant update the ipod either
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
In the Applications tab -- Content Type -- the "portable document format" icon is a Word 2010 icon (not Adobe), so selecting Adobe Reader or preview in Firefox as action does not work to display the PDF. I can see this Applications difference because my other Firefox laptop has the Adobe icon, and I can view PDFs. Essentially, a PDF is coming in as a Word document -- and the computer tries to open it up as a Word file.
How do I get the correct PDF icon in the Applications list -- the same way it displays (and works) on my other laptop.Adobe PDF Plug-In For Firefox and Netscape 10.1.7 ?
I think you need to add this to the list of applications and the action to take on the type of content. This can also be managed in the about:permissions page. [[Permissions Manager - Give certain websites the ability to store passwords, set cookies and more]] -
Re: Action Buttons not working Peoplesoft HR9.1/PT8.52
Hi All,
I've seen lots of threads regarding Action Buttons not working Peoplesoft HR9.1/PT8.52.
May I know which patch to download?
ThanksHi,
Log on to Oracle Support and go to tab Patches & Updates, Choose PeopleTools and version 8.52. From the search results choose the highest tool patch, at the moment.
Updateid: 14285861 / PT 8.52.10 PRODUCT PATCH -
DOCUMENT SETTING that ALLOW FUTURE POSTING DATE does not work in PL34
Hi Expert,
I am now using SAP B1 2005B (7.40.252) sp:00 pl:34 and realised that the ALLOW Future Posting Date was not working.
I still can remember while I was using pl:11 at B1 2005A, there is no such problem and wish to know when can the bug fix up? in which sp/pl?
Wish to hear goods news ASAP .
Thank you.
Joan.Basically can you please clarrify your requirement as to what you want to change ..what I understand you would need to change the code for ABAP - RFEBBE00
Value Date code in the above abap
IF PAR_VALD = 'X'.
MOVE C2-VALDT TO HLP_VALDT. " VALUE DATE
write hlp_valdt to umsatz-budat dd/mm/yy.
ELSE.
MOVE C8-BALDT TO HLP_BALDT.
MOVE HLP_BALDT TO HLP_VALDT.
write hlp_valdt to umsatz-budat dd/mm/yy.
ENDIF.
MOVE HLP_VALDT(2) TO UMSATZ-BUDAT.
MOVE HLP_VALDT2(2) TO UMSATZ-BUDAT3.
MOVE HLP_VALDT4(2) TO UMSATZ-BUDAT6.
Regards
Anurag
Message was edited by: Anurag Bankley -
My PS CC 2014 dos not work. It starts up and then its stops.
Hi My PS CC 2014 dos not work properly. It starts up but stops wen i won't to work with it. wat is the problem
Please read these and proceed accordingly:
http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
http://forums.adobe.com/docs/DOC-2325 -
T sql dose not work in SQlCompact
im useing a T Sql in SQlCompact database but
it dose not work the function is stuff() that forgathering values in on
cell this is the select
Statement but it shows me an error asking
for help
SELECT Pepole.ID,
Pepole.FNA, Pepole.LNA, STUFF ((SELECT ', ' + Name AS Expr1 FROM Special AS S2 WHERE (ID = PeopleTarget_1.SpecialID) FOR XML PATH('')),,,) AS Names FROM Pepole INNER
JOIN PeopleTarget AS PeopleTarget_1 ON Pepole.ID = PeopleTarget_1.PeopleID INNER JOIN Special
AS Special_1 ON PeopleTarget_1.PeopleID = Special_1.IDSELECT Pepole.ID, Pepole.FNA, Pepole.LNA, STUFF
((SELECT ', ' + Name AS Expr1
FROM Special AS S2
WHERE (ID = PeopleTarget_1.SpecialID) FOR XML PATH('')),,,) AS Names
FROM Pepole INNER JOIN
PeopleTarget AS PeopleTarget_1 ON Pepole.ID = PeopleTarget_1.PeopleID INNER JOIN
Special AS Special_1 ON PeopleTarget_1.PeopleID = Special_1.ID -
My macnotebook air cam dose not work
my cam built in macbook air dose not work in anyway
mainly started not working in yahoo meenger and skype
now face time and photo boothTake it to an Apple store to be repaired. The screen will need to be replaced as just the camera can't be replaced by itself. If it a newer unit and or you have Applecare and it is less then 3 years old it will be covered by the warranty. If it is older and or you do not have Applecare then the repair will be at your expense.
-
When I click PDF file, the file does not open and installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.
Did you ever install Acrobat? It is not installed automatically with CS, but requires an extra installation step.
-
HT1727 my cd-r audio dose not work in my car. WHY
my cd-r audio dose not work in my car. why
having the same problem. frustrated. and yes, you are only allowed to burn song so many times that we purchase. I have tried to burn them about 5 times now. they burn ok, and play on the computer ONLY! I burned them to a cd rw and on max speed and set preference to music. won't play in the car or any stereo system. frustrated.
-
My App dose not work, how do I get my money back?
I purchased a Game Pad Companion App and dose not work, how do I get my money back?
Have you first contacted the maker of the maker of the application?
You can contact Apple here for Mac App store purchases.
-> http://www.apple.com/support/mac/app-store/applications/ -
Assigned F key to play an action does not work to play the action on an image. When the F key is selected it seams to control computer attributes rather than the play action assigned in photoshop. Why? Using cs6 iMac and wireless key board.
Is this a possible preference setting in mac or is it a setting in cs6 photoshop ? Help and knowledge will be appreciated.*** Moderator Action ***
This networking question has been moved from the Solaris 10 discussion space,
to the Solaris Networking discussion space, for closer topic alignment.
Whereas there may be IPV6 nuances specific to your Solaris 10 environment and to the hardware, this appears to be a discussion that may be more global in effect.
Maybe you are looking for
-
Corrupt (weird?) images after using Safe for web?
Since upgrading to CS4 i noticed that a number of images saved with 'save for web' do not display in a browser? It happens for jpegs as well as gifs, and when i upload them to a server they won't display - not even if i use the direct link to the ima
-
Single Payment receipt aganest Multiple Customer invoices
Hi All, I need your help to slove this business senario, here i have one payment receipts i need to clear against multiple customer invoice, how to clear the single payment receipt for multiple customer invocies, But customer will not infore which i
-
Creating a simulated Active directory
Hi all, I am studying IDM now and doing some exercises, one of them include making a simulated file of an AD, but it doesn't work like an Active directory at all. I installed the gateway but didn't see how can I connect a simulated file to the gatewa
-
After 10.9.2 mail does not start
I upgraded to 10.9.2 this morning. Mail will not start. I can't get spotlight to work. There are multiple crashes in the log such as this: 2/28/14 9:50:12.000 AM kernel[0]: CODE SIGNING: process 1495[com.apple.ShareK]: rejecting invalid page at add
-
Hi I have created 2 tables zposition, zwork. The fields in zposition is department and position. The fields in zwork is empid, department, position, firstname and lastname. I wanted to create a validation that when i insert the data into the zwork, t