Pop-up message in event handler
Hi All, I am writing a item insert validation in "ItemAdding Event" of event handelr. After validating the page is redirecting to the error page showing the custom error message. My requirement is ... Instead of moving to the error page the custom error should display in a pop-up dialog box on the same page. If I will click on the ok than the page should not redirect to any where(the focus should be in the same page) and the value in the field should not reset. Please help me..
September 17th, 2010 12:11pm

Please go through this post SharePoint Event REceivers and Custom Error Messages Regards Sandip Patil Sharepoint Developer www.worldofsharepoint.com
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2010 12:57pm

This Link is all about custom error. I want to show a pop-up diloge box on that . If I will click on that the focus of the page should be on NewItem.aspx (same page).
September 20th, 2010 9:28pm

I Guess you are doing some kind of validation in ItemAdding, the default behaviour of event handler works only this way, by redirecting the user. If the popup is the major functional requirement. I would use jQuery in page for validation, obviously you would be able to show error in popup using client script. Thanks, ~Uday, http://www.mstechblogs.com/sharepoint
Free Windows Admin Tool Kit Click here and download it now
September 20th, 2010 9:32pm

Hi, Please give me the code snippet in jQuery Thanks in advance
September 28th, 2010 2:10pm

Or sharethe link please. The question is still opened. Best regards, Gennady Best regards
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2012 8:12am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics