Click here to Skip to main content
15,919,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to add a progress bar to my web page to display the progress during an export operation. Though when i get to the place in my code where i try to add the progress bar to my page i'm getting the following error:

Value of type 'System.Windows.Forms.ProgressBar' cannot be converted to 'System.Web.UI.Control'

From this line of code

Me.Controls.Add(Progress1)

How can i go about adding a progressbar to my webpage? Any suggestions are greatly appreciated
Posted
Comments
Richard C Bishop 4-Jun-13 11:52am    
You cannot mix Forms controls with Web controls. Look up web control progress bars.
sorawit amorn 4-Jun-13 12:02pm    
richcb is correct. One way that you could do is to build your own or use JQuery progress bar. If you need it to communicate to the server, then use Ajax.
ZurdoDev 4-Jun-13 14:09pm    
First off, the web and windows are very very different. Secondly, your best option is to find a 3rd party control to do this because it is not a straightforward simple task, especially for someone who is used to windows forms.

 
Share this answer
 
http://forums.asp.net/p/1380129/2915571.aspx[^]

you can some idea by reading this article
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900