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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:17:39+00:00 2026-05-26T12:17:39+00:00

Scenario: I have a CaseEdit.aspx page in which on have 3 buttons: AddImage FinalPage

  • 0

Scenario:

I have a CaseEdit.aspx page in which on have 3 buttons:

  • AddImage
  • FinalPage
  • QuestionAns

and one web user controls that CaseContentList.ascx.

In casecontentlist I have datalist in that I am lbtnDisplay.

When we are clicking on caseEdit.aspx btn we are adding the name to the lbtnDisplay (suppose I clicked on btn addimage then addimage will add to dataliast, if btnqusans clicked then qusans will add in that datalist lbtn).

Now, on every btn click I am opening the following web user controls:

  • on AddImage click i am opening AddImage.ascx (using tinymce editor)

  • on FinalPage click i am opening FinalPage.ascx (using tinymce editor)

  • on QuestionAns click i am opening QuestionAns.ascx (using tinymce editor)

  • and when i am clicking on datalist link btn (lbtnDisplay) on any item then, PageContent.ascx is opening.

All these things are happening on caseEdit.aspx page.

Requirement:

  1. when we are in edit mode of any page and moving to some other page it must show the confirmation alert box.

  2. when page content is opened on lbtnDisplay click and then we are going to some other page it should not show the confirmation alert box.

  • 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-26T12:17:40+00:00Added an answer on May 26, 2026 at 12:17 pm

    I have taken a hidden field and keeping the value=0, when i am clicking on edit button changing the value to 1 and after that i am comparing the value of text box and hidden filed when user click on some other link its working fine..

    function ValueChanged() {
         var textvalue;
    
         textvalue = removeHTMLTags(tinyMCE.get('<%=txbText.ClientID %>').getContent());
         if (textvalue != tinyText) {
             var ssave = window.confirm('Your changes are not saved. Do you want to save your changes before you exit.')
             if (ssave == true) {
                 document.getElementById('<%=btnSave.ClientID%>').click();
                 return false;
             }
             else
                 return true;
             }
         }      
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have a Javascript-generated web page that someone else wrote a long time
Scenario: I have a Question which has 2 radio buttons & two subforms: subformA
Scenario: I have an application that has a config table which stores the config
Scenario: I have a page which contains a dropdownlist and a table which contains
Scenario: I have a php page in which I call a python script. Python
Scenario I have an web application which needs some calculations and processing on data.
Scenario: We have a Spring managed web application that runs inside Websphere. (Spring 3.0.x,
Scenario: I have multiple text boxes in which a user will enter data into
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Scenario: You have an ASP.Net webpage that should display the next image in 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.