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 6849565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:00:26+00:00 2026-05-27T01:00:26+00:00

I am creating a web user control for showing Alert on AspxGridView Columns(Delete/Edit) click

  • 0

I am creating a web user control for showing Alert on AspxGridView Columns(Delete/Edit) click on Server side events.
For example:

Deleted disabled on row then if As like asp grid view when delete command fire then on deleting show message that delete is not allowed/ confirm before delete as we do in windows application..

Reason:

To reduce the database hit for checking that  user allowed to delete/ Edit 
particular record.

I do not want to check thousand of rows to disable them OnHtmlRowCreated Event 
of AspxGridView

I have taken an idea from this codeproject ajax enabled confirm box / messagebox.
Here it is using ajax user controls. It is using Update Panel and Molalpopupextender control to create this user control.

It provides these features.

The MessageBox should have a simple usage. We should show the message with such a single line of code.
The MessageBox should be modal. I mean, a user should not be able to do any other operation while the message is open.
The MessageBox should support multiple messages. Multiple messages may be shown through one postback.
The MessageBox should have a different appearance according to the type of the message, whether it is an error message or just an information message.
The MessageBox should have confirmation functionality.
The MessageBox should be AJAX ready.

Pros: This user control can be called at server side and can be updated on server side functions of the ajax controls.

I do not want to include Ajax library in my project. so that i have done to use this my solution as follows:

Replaced Update Panel with CallbackPanel control
Replaced PopupExtender with DevExpress PopupControl
Add all content of the PopupExtender target panel's control to PopupControl content Collection

Problem:
DevExpress Control do not have Update method like ajax controls and all of these callbackpanel and popupcontrol works on Callback mostly.

This is User Control’s PreRender Event. Where user control is updated on postback. I want to update this on gridview OnDeleting Event

protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);

        if (btnOK.Visible == false)
            mpeMsg.OkControlID = "btnD2";
        else
            mpeMsg.OkControlID = "btnOK";

        if (Messages.Count > 0)
        {
            btnOK.Focus();
            grvMsg.DataSource = Messages;
            grvMsg.DataBind();

            mpeMsg.Show();  /// Show AspxPopupControl like as like modalpopupExtender
            udpMsj.Update();  // I want to update CallbackPanel like this

        }
        else
        {
            grvMsg.DataBind();
            udpMsj.Update();  /// I want to update CallbackPanel like this
        }
        if (this.Parent.GetType() == typeof(UpdatePanel))
        {
            UpdatePanel containerUpdatepanel = this.Parent as UpdatePanel;

            containerUpdatepanel.Update();
        }
    }

There are another way to implement this functionality like create controls on another page and load rendered html to the
popupcontrol. but this is alos client side functionality in Callback.

I know the callback functionality with these controls but I want this usercontrol to automate itsself as Ajax control do same as windows controls,
but in DevExpress there is not way to implement using DevExpress controls that provide server side functionality.

​

  • 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-05-27T01:00:27+00:00Added an answer on May 27, 2026 at 1:00 am

    Utilize the http://www.devexpress.com/example=E1120 approach as a starting point. This option describes how to use the ASPxPopupControl (a popup window from DevExpress ASP.NET product line) for this purpose.

    I believe it is possible to combine the required solution with the use of DevExpress products. If you have any difficulties, ask DX support guys to help you in this regard.

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

Sidebar

Related Questions

I'm creating a comments web user control. I want to use this comments control
I'm creating a web user control and want to get some html from a
I am creating a web user control for a simple poll. I am currently
I'm creating a web application for work where the user has to enter the
I'm creating a web application on Google AppEngine where I want the user to
When creating a web application, and lets say you have a User object denoting
I am interested in creating a simple web application that will take in user
When I'm creating a user for my web application, an SMTP email (using ASP.NET's
For a web application, when creating the user which will connect to the MySQL
I have a simple ASP.NET Web User Control. It looks like this: <%@ Control

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.