Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need a confirmation box for Item Adding event on a custom document library, can someone tell me what would be the best way of doing it using C# or I don't mind using jQuery/Javascript plugin either.

share|improve this question
add comment

2 Answers

You make a redirect to the application page and show a confirmation box.

properties.RedirectUrl

This will cause the redirect, which you point to an application page with your confirmation button on it.

You can do this with the client object model with ECMA script also.

Just write the javascript to take over the functionality and handle the request. In my opinion this is nicer for users, as it visibly takes less time.

The simple way: Only had to do this for item deleting, and I use a java script confirmation box bound to the button, using JQuery.

share|improve this answer
    
thanks +1 but what instead of redirecting to application page, If display a Div using scripting, but I am not able to find any relevant tutorial for this tho :( –  Muhammad Raja Nov 5 '12 at 11:06
    
Ah, well you bind to the link your javascript with JQuery, return false in the onclick event will prevent it from going to the url. You then code in your javascript whatever you want to handle the event. –  Hugh Wood Nov 5 '12 at 11:38
    
to be honest, I am lost, is there any tutorial you can find me please –  Muhammad Raja Nov 5 '12 at 11:42
add comment
up vote 0 down vote accepted

My research said its not possible, only thing you can do is, redirect to a different page aspx page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.