Show a progress barr
-
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.
-
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.
Hi see that similar question This[Open in new window]
Mohammad Khansari
-
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.
-
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.
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.
-
Hi see that similar question This[Open in new window]
Mohammad Khansari
-
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.
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
-
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
-
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
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
-
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
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. -
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.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