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. Show a progress barr

Show a progress barr

Scheduled Pinned Locked Moved ASP.NET
help
10 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.
  • A Offline
    A Offline
    abbd
    wrote on last edited by
    #1

    Hello, I would show a progress bar when i click on the login button, for this i create a picture and i set the propriety Visible on false, in the button code i set visible propriety on true, unfortunatly when i click on the login button the picture don't be appeared, please help met to show this picture, Thank you verry mutch.

    M B A 3 Replies Last reply
    0
    • A abbd

      Hello, I would show a progress bar when i click on the login button, for this i create a picture and i set the propriety Visible on false, in the button code i set visible propriety on true, unfortunatly when i click on the login button the picture don't be appeared, please help met to show this picture, Thank you verry mutch.

      M Offline
      M Offline
      m khansari
      wrote on last edited by
      #2

      Hi see that similar question This[Open in new window]

      Mohammad Khansari

      A 1 Reply Last reply
      0
      • A abbd

        Hello, I would show a progress bar when i click on the login button, for this i create a picture and i set the propriety Visible on false, in the button code i set visible propriety on true, unfortunatly when i click on the login button the picture don't be appeared, please help met to show this picture, Thank you verry mutch.

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        use javascript to display/hide your image.When one sets the visible as false that HTML doesn't render at the page.

        Cheers!! Brij

        1 Reply Last reply
        0
        • A abbd

          Hello, I would show a progress bar when i click on the login button, for this i create a picture and i set the propriety Visible on false, in the button code i set visible propriety on true, unfortunatly when i click on the login button the picture don't be appeared, please help met to show this picture, Thank you verry mutch.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          abbd wrote:

          unfortunatly when i click on the login button the picture don't be appeared, please help met to show this picture, T

          Showing progress bar is nothing to do with just displaying a image. First of all be clear on why you want show progress bar. If the login process taking time and you want to show progress bar you can use AJAX Update panel and AJAX Progress bar. http://www.asp.net/Ajax/Documentation/Live/overview/UpdateProgressOverview.aspx[^]

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          1 Reply Last reply
          0
          • M m khansari

            Hi see that similar question This[Open in new window]

            Mohammad Khansari

            A Offline
            A Offline
            abbd
            wrote on last edited by
            #5

            Hello, Thank you for your answer but i would show a picture (progress bar) whene i click on the login button and when i verify if login and password was good i set the picture on hidden. Please help me, thank you verry mutch.

            M 1 Reply Last reply
            0
            • A abbd

              Hello, Thank you for your answer but i would show a picture (progress bar) whene i click on the login button and when i verify if login and password was good i set the picture on hidden. Please help me, thank you verry mutch.

              M Offline
              M Offline
              m khansari
              wrote on last edited by
              #6

              I think that your login button works by Ajax If I think true if your login button is a asp.net control you can use OnClientClick property and set it by a javascript function name

              I emitted other irrelevant properties in the pervious code if your login button is a HTML control you can use onclick property

              and in loginFun you show the progress bar

              function loginFun()
              {
              [Your codes]
              document.getElementById("progressBar").style.display="inline";
              }

              and when your ajax response is recieved you can use this javascript code to hide that

              document.getElementById("progressBar").style.display="none";

              hope to be useful

              Mohammad Khansari

              A 1 Reply Last reply
              0
              • M m khansari

                I think that your login button works by Ajax If I think true if your login button is a asp.net control you can use OnClientClick property and set it by a javascript function name

                I emitted other irrelevant properties in the pervious code if your login button is a HTML control you can use onclick property

                and in loginFun you show the progress bar

                function loginFun()
                {
                [Your codes]
                document.getElementById("progressBar").style.display="inline";
                }

                and when your ajax response is recieved you can use this javascript code to hide that

                document.getElementById("progressBar").style.display="none";

                hope to be useful

                Mohammad Khansari

                A Offline
                A Offline
                abbd
                wrote on last edited by
                #7

                thank you for anwser, but i don't have e progress bar, i have a gif picture, can you helm me to show a gif picture when i click on logon button ? Thank you

                M 1 Reply Last reply
                0
                • A abbd

                  thank you for anwser, but i don't have e progress bar, i have a gif picture, can you helm me to show a gif picture when i click on logon button ? Thank you

                  M Offline
                  M Offline
                  m khansari
                  wrote on last edited by
                  #8

                  first I want you to answer my question Q - how does your login button works? when you click on the button what happens. the form would be submitted Or a XmlHttpRequest (Ajax)would be sent to server for login action (I answered this situation later) -------------- about first situation if form submit is occurred you can not use a progress bar(show an image) to show progress because whole of your page would be refreshed. I think that you must study more about HTML and Http to understand what happen when the form submitted Hope to be useful

                  Mohammad Khansari

                  A 1 Reply Last reply
                  0
                  • M m khansari

                    first I want you to answer my question Q - how does your login button works? when you click on the button what happens. the form would be submitted Or a XmlHttpRequest (Ajax)would be sent to server for login action (I answered this situation later) -------------- about first situation if form submit is occurred you can not use a progress bar(show an image) to show progress because whole of your page would be refreshed. I think that you must study more about HTML and Http to understand what happen when the form submitted Hope to be useful

                    Mohammad Khansari

                    A Offline
                    A Offline
                    abbd
                    wrote on last edited by
                    #9

                    Hello, i would show a picture (progress bar), for this i try to do : protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { Image2.Visible = true; //the progress bar picture// Authentification au = new Authentification(); MessageBox bb = new MessageBox(); if (Login1.UserName.Length == 0) { Label1.Visible = true; Label1.Text = "Le mot de passe et/ou le login que vous avez entré est invalide."; Image2.Visible = false; //hide the picture// } else { String url = string.Format("Menu.aspx?login={0}&password={1}", "test", "test"); Response.Redirect(url); } } Unfortunatly the picture don't be appear. thank you verry mutch.

                    M 1 Reply Last reply
                    0
                    • A abbd

                      Hello, i would show a picture (progress bar), for this i try to do : protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { Image2.Visible = true; //the progress bar picture// Authentification au = new Authentification(); MessageBox bb = new MessageBox(); if (Login1.UserName.Length == 0) { Label1.Visible = true; Label1.Text = "Le mot de passe et/ou le login que vous avez entré est invalide."; Image2.Visible = false; //hide the picture// } else { String url = string.Format("Menu.aspx?login={0}&password={1}", "test", "test"); Response.Redirect(url); } } Unfortunatly the picture don't be appear. thank you verry mutch.

                      M Offline
                      M Offline
                      m khansari
                      wrote on last edited by
                      #10

                      hi it never works you show the progress bar at server side and hide it at server side you must study more about it http://www.asp.net/Ajax/Documentation/Live/overview/UpdateProgressOverview.aspx[^]

                      Mohammad Khansari

                      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