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

  • Home
  • SEARCH
  • 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 6104497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:50:56+00:00 2026-05-23T13:50:56+00:00

Hello I have a c# application that has a button Submit and in the

  • 0

Hello I have a c# application that has a button “Submit” and in the code behind i am evaluating some stuff when it is clicked. But now, I have a FileUpload in the same page, the one that comes with the standard “Browse” button which I can not code against (and company rules, can not change it to a regular button).

So the thing is that when the “Submit” button is clicked, I still want to evaluate what I need to evaluate but I also want a Javascript or any other type of confirmation that prompts the user if the image file selected in the upload has the same name as the previous one then it should pop up “This image file already exists, do you want to replace it?.

But now, see how I want to use the back end On_Submit(Object o, EventArgs e) and also be able to ask the question IF anf only IF the image chosen has the same name as the previous one.

Now, I can check this in the same On_Submit button whether the new file name is the same as the old one but how can I do this? from within the On_Submit event? something like

public void On_Submit(Object o, EventArgs e)
{
  //using pseudo code
   if(oldImagename == newImageName)
          pop message to alert if replacement
          do other stuff here
   else
        do other stuff here
}

Thank you guys

  • 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-23T13:50:56+00:00Added an answer on May 23, 2026 at 1:50 pm

    You could use Jquery Confirm Alert Prompt

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

Sidebar

Related Questions

HEllo, I have a hybrid iPhone application that has a UITabBarController and 5 Tabs.
Hello: I am developing an application that has a lot of support dll's. some
I have an application that uses (has referenced) a class library (myLib.dll private assembly).
I have an application (Gtk) that has an embedded server (using circuits). Both components
I have developed an application that has a list of items in one frame;
Hello I am working with an application that already has a few validation criterion,
Hello i have the code below to upload pictures for my application. I will
Hello we have an SQL server application running over a low bandwith connection. We
Imagine I have the following: inFile = /adda/adas/sdas/hello.txt # that instruction give me hello.txt
We have a windows application that contains an ActiveX WebBrowser control. As part of

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.