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
  1. Home
  2. Web Development
  3. ASP.NET
  4. message box

message box

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdesignquestion
8 Posts 4 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.
  • L Offline
    L Offline
    luckydear
    wrote on last edited by
    #1

    hai iam using ASP.NET C# to develop my project "LEAVE TRACKING SYSTEM" my question is **In leave apply page after selecting number of days throough text box and sanctioning authority, i press submit button. here i want to display one message box with the message box like " you are applying leave for 2 days to xxxauthority" **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white. **i want to display message box on the page where i can able to see controls on UI page in disable mode. i hope u will reply soon regards jyothi

    A S S 3 Replies Last reply
    0
    • L luckydear

      hai iam using ASP.NET C# to develop my project "LEAVE TRACKING SYSTEM" my question is **In leave apply page after selecting number of days throough text box and sanctioning authority, i press submit button. here i want to display one message box with the message box like " you are applying leave for 2 days to xxxauthority" **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white. **i want to display message box on the page where i can able to see controls on UI page in disable mode. i hope u will reply soon regards jyothi

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      use javascript modal dialog or use ModalpopupExtender from AjaxControlToolkit.

      Arun Jacob http://codepronet.blogspot.com/

      1 Reply Last reply
      0
      • L luckydear

        hai iam using ASP.NET C# to develop my project "LEAVE TRACKING SYSTEM" my question is **In leave apply page after selecting number of days throough text box and sanctioning authority, i press submit button. here i want to display one message box with the message box like " you are applying leave for 2 days to xxxauthority" **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white. **i want to display message box on the page where i can able to see controls on UI page in disable mode. i hope u will reply soon regards jyothi

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        luckydear wrote:

        **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white.

        This shouldnt be. You are not injecting the javascripts properly. One can see those alerts/confirm on the same page without white space. Further, if you need to have a disabled look, then place a div on the page before showing the alert/confirm.

        1 Reply Last reply
        0
        • L luckydear

          hai iam using ASP.NET C# to develop my project "LEAVE TRACKING SYSTEM" my question is **In leave apply page after selecting number of days throough text box and sanctioning authority, i press submit button. here i want to display one message box with the message box like " you are applying leave for 2 days to xxxauthority" **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white. **i want to display message box on the page where i can able to see controls on UI page in disable mode. i hope u will reply soon regards jyothi

          S Offline
          S Offline
          Sundeep Ganiga
          wrote on last edited by
          #4

          jyothi,

          luckydear wrote:

          **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white.

          There is nothing like javascript(alert/Confirm) will not help here. Try to get it like this.on submit button on client click,You should.. btnSubmit.OnClientClick = " return confirm('you are applying leave for 2 days to xxxauthority');" This will neither allow to access the present page controls,nor navigate to other page. Regards, S G

          Sundeep Ganiga
          **When the only tool you have is a hammer, everything looks like a nail.
          Come Forth Yourself to Click "Good Answer" for any expected solution.
          Let us Support our C Project Programmers who provide solutions here.

          **

          L 1 Reply Last reply
          0
          • S Sundeep Ganiga

            jyothi,

            luckydear wrote:

            **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white.

            There is nothing like javascript(alert/Confirm) will not help here. Try to get it like this.on submit button on client click,You should.. btnSubmit.OnClientClick = " return confirm('you are applying leave for 2 days to xxxauthority');" This will neither allow to access the present page controls,nor navigate to other page. Regards, S G

            Sundeep Ganiga
            **When the only tool you have is a hammer, everything looks like a nail.
            Come Forth Yourself to Click "Good Answer" for any expected solution.
            Let us Support our C Project Programmers who provide solutions here.

            **

            L Offline
            L Offline
            luckydear
            wrote on last edited by
            #5

            btnapply.OnClientClick = "return confirm(''you r applying leave for" + totaldays + " days to " + selectauthority + "')"; i have placed this code in btnapply_click. but it is not working.please reply regards jyothi

            S 1 Reply Last reply
            0
            • L luckydear

              btnapply.OnClientClick = "return confirm(''you r applying leave for" + totaldays + " days to " + selectauthority + "')"; i have placed this code in btnapply_click. but it is not working.please reply regards jyothi

              S Offline
              S Offline
              Sundeep Ganiga
              wrote on last edited by
              #6

              jyothi,

              luckydear wrote:

              btnapply.OnClientClick = "return confirm(''you r applying leave for" + totaldays + " days to " + selectauthority + "')";

              This code has placed before the click event of that button which is being raised(btnapply).Even,You can place this in aspx page also or page load event. SG

              Sundeep Ganiga
              **When the only tool you have is a hammer, everything looks like a nail.
              Come Forth Yourself to Click "Good Answer" for any expected solution.
              Let us Support our C Project Programmers who provide solutions here.

              **

              L 1 Reply Last reply
              0
              • S Sundeep Ganiga

                jyothi,

                luckydear wrote:

                btnapply.OnClientClick = "return confirm(''you r applying leave for" + totaldays + " days to " + selectauthority + "')";

                This code has placed before the click event of that button which is being raised(btnapply).Even,You can place this in aspx page also or page load event. SG

                Sundeep Ganiga
                **When the only tool you have is a hammer, everything looks like a nail.
                Come Forth Yourself to Click "Good Answer" for any expected solution.
                Let us Support our C Project Programmers who provide solutions here.

                **

                L Offline
                L Offline
                luckydear
                wrote on last edited by
                #7

                what u have suggested is not woking. its ok i have another problem as ----response.write("confirm('some message')");---- this is my code, from this what i want is * If i press ok button it should do some action and navigate to other page * If i press cancel no action should be performed and navigate to other page. please reply me bcoz my project is stopped because of this problem.

                S 1 Reply Last reply
                0
                • L luckydear

                  what u have suggested is not woking. its ok i have another problem as ----response.write("confirm('some message')");---- this is my code, from this what i want is * If i press ok button it should do some action and navigate to other page * If i press cancel no action should be performed and navigate to other page. please reply me bcoz my project is stopped because of this problem.

                  S Offline
                  S Offline
                  Sundeep Ganiga
                  wrote on last edited by
                  #8

                  luckydear wrote:

                  ----response.write("confirm('some message')");----

                  I don't Think so,That Response.write will allow you to execute javascript here.Instead You can go for Page.reg..clientscript(if there is no master page.can You just paste the button onclientclick code here and also aspx button properties mentioned of aspx page here,so that i can tell wat is mistake being done.or mail me the page code to sundeepganiga@gmail.com.I will try to find solu if possible. Regards, S G

                  Sundeep Ganiga
                  **When the only tool you have is a hammer, everything looks like a nail.
                  Come Forth Yourself to Click "Good Answer" for any expected solution.
                  Let us Support our C Project Programmers who provide solutions here.

                  **

                  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