Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8835191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:12:14+00:00 2026-06-14T09:12:14+00:00

I want to display a confirmation box in SpItemEventReceiver class using just C# or

  • 0

I want to display a confirmation box in SpItemEventReceiver class using just C# or any script or plugin (e.g. jQuery) with it.

I have researched the problem and I believe that I can do something like build a string and display it on this item adding form but I read it in this SharePoint King blog post (I am NOT advertising them) that it’s not possible if you search for the text. Here’s an excerpt:

Is there any way we can show a custom message box when an event is
fired and continue with the event?

No, that is not possible from the method described here.
You can put alert on button click of the form by the javascript but
can not be done by an event handler.

I wonder if someone can confirm whether can or we can’t do it, as I think we can but don’t know how. Here’s a piece of code I’m trying:

class className: SPItemEventReceiver
{
    public override void ItemAdding(SPItemEventProperties properties)
    {
        try
        {
            this.DisableEventFiring();
            //Display a Message box here

[Edit:] Will the HttpContext.Response property work in this context?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:12:15+00:00Added an answer on June 14, 2026 at 9:12 am

    Showing a message box won’t work here; if it worked the message box would be shown on the server because that’s where this code runs. What you could use server-side is the SharePoint

    Page Status MSDN

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have created a zend_form_element_submit. Now i want to display a confirmation message
I want to display simple confirmation popup box if a user tries to close
I want to display a custom confirmation message box (ChildWindow) when the user selects
I want to know how can I display a confirmation box when the users
I am trying to display confirmation box using window.confirm on window unload event. If
I have a form and I want to display a confirmation dialogBox when the
I am new to JQuery and trying to display a Yes/No confirmation dialog box
I have a simple quiz application and I want display a nice timer /
I have db with this table (TableToDo): http://goo.gl/NlTEk I want display all records in
I have a form and when i click submit i want to display a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.