Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Showing Confirmation Pop-up Window after checking an condition

Showing Confirmation Pop-up Window after checking an condition

Scheduled Pinned Locked Moved ASP.NET
javabusinesstoolshelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sangramkp
    wrote on last edited by
    #1

    Hi, I have a problem... and any kind of suggestion/solution will be accepted whole heartedly. I have a button on its click I want to do some validation, that logic has been written in business logic layer. If the validation fails then I want to show an confirm pop-up using Java script. The validation is all about comparing an input textbox value with a session variable. Waiting for suggestions.. Thanks & Regards

    Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

    E 1 Reply Last reply
    0
    • S sangramkp

      Hi, I have a problem... and any kind of suggestion/solution will be accepted whole heartedly. I have a button on its click I want to do some validation, that logic has been written in business logic layer. If the validation fails then I want to show an confirm pop-up using Java script. The validation is all about comparing an input textbox value with a session variable. Waiting for suggestions.. Thanks & Regards

      Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Why dont you write the code in c# then just show a message on the same screen. I dont think its best to use javascript heavily or unnecessarily with asp.net and c# If you really want to use javascript check this out: http://www.developerfusion.co.uk/show/4505/

      We are not a Code Charity

      S 1 Reply Last reply
      0
      • E eyeseetee

        Why dont you write the code in c# then just show a message on the same screen. I dont think its best to use javascript heavily or unnecessarily with asp.net and c# If you really want to use javascript check this out: http://www.developerfusion.co.uk/show/4505/

        We are not a Code Charity

        S Offline
        S Offline
        sangramkp
        wrote on last edited by
        #3

        Hi, Thnaks for replying. I just don't Want to show an Confirm message. I want that after the Button is clicked it calls a method for validation of the page. If the input textbox's Value is Less then 100 to say I want to show the confirm popup ur entry is less than 100 are u sure u want to proceed with this? hope u understand the situation Thanks and regards

        Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

        E 1 Reply Last reply
        0
        • S sangramkp

          Hi, Thnaks for replying. I just don't Want to show an Confirm message. I want that after the Button is clicked it calls a method for validation of the page. If the input textbox's Value is Less then 100 to say I want to show the confirm popup ur entry is less than 100 are u sure u want to proceed with this? hope u understand the situation Thanks and regards

          Sangram (A battle with self) Life is simple, we are the ones makes the living difficult

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          Well then put that bit of code checking the less than 100 in the last bit of the onclick event of the button. Not sure how you would include the javascript code in that though

          We are not a Code Charity

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups