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 have a custom application page with a form and a submit button. After Submit is clicked some code behind is executed and the user is redirected to the fill-out form again.

I would like to add a Notifcation which appears after the code execution is done so the user knows the updates were done correctly.

Can I use the build in namespace for this (I can not use it in my .cs file anyway)?

SP.UI.Notify.addNotification = function(strHtml, bSticky) { } 
share|improve this question
add comment

3 Answers

How about when you redirect the user to fill another form (or the same) then pass the status on the url as a parameter eg: htt://yoursite/Yournewform.aspx?status=Success

And then load you can run javascript to display the notification

share|improve this answer
add comment

You can set the page status serverside using the PageStatusSetter.

share|improve this answer
    
Hi Wouter, do you have any examples of this? –  Wim Hill May 6 '11 at 7:41
    
add comment

You cannot use it in your .cs file, but what you can do is add a check in your page for when the page is postback, and if it does then render the javascript syntax for SP.UI.Notify in your CreateChildControls or Render methods.

For more information about SP.UI.Notify you should check out Zevensea's post.

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.