Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backgroundworker VS2008 VB - Can't get started

Status
Not open for further replies.

JRB-Bldr

Programmer
May 17, 2001
3,281
0
0
US
Hello,

I am trying to learn about using the Backgroundworker to get a ProgressBar working.
But I can't seem to get this development effort off-the-ground.

I am using VS2008 (VB).
When I create a New Project - Web ASP.Net Application and look for the Backgroundworker object in the Toolbox, it is Greyed-out.

I have tried various things found on a web search and none of them will Enable the Backgroundworker control so that I can place it onto my Default.aspx form.

What am I doing wrong?

Any advice/suggestions you might be able to offer would be greatly appreciated.

(Note - since I am not sure which forum area might be best for this question, I will be duplicating it on the VB.Net area as well. My apologies for the duplication)

Thanks,
JRB-Bldr
 
Are you sure you created a web project or website?
I don't see that object in my toolbox. All background worker process is done in code from all examples I have seen.

that object does exist in windows forms projects
 
Yes, within VS2008 (VB) I created a new ASP.Net Web Application project for the purpose of testing this.

In order to get the Backgroundworker object to appear at all (even though it was Greyed-Out) I had to right click in the middle of the Toolbox (not the title bar) and click on Show All.

The Toolbox Default does not include many categories.
Once I did the Show All, the Containers tab appeared wherein the Backgroundworker showed as Greyed-Out.
And numerous other web references found on Backgroundworker talked about merely dragging this control onto the form and then showed code to make it work.
From that I had hoped to find an 'easy' solution. But NOT SO FAST....

Apparently, based on other references I found, the Backgroundworker is not intended to work in ASP.Net.
I say that only due to the following replies to my question from another forum (not based on personal knowledge)
The Backgroundworker control is winforms only
BackgroundWorker is not a control, and it is not winforms only. But no, it can't work client-side in asp.net page

If someone knows differently and/or better, I'd appreciate their enlightening me.

Good Luck,
JRB-Bldr
 
Hi JRB-Bldr,

I am currently working on a rather large and complex web application (MVC architecture) with some heavy server-side operations.
I have learned to love using hangfire for this:

I suggest you give it a try.

Good luck,
MakeItSo

ôKnowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.ö (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.
 
Thanks for the reply.

I will be looking into Hangfire, but apparently is is for VS2010+ and not for VS2008.

The project I am working on is in VS2008 so that might not be a solution for this situation.
Regardless, I will look into more thoroughly.

Thanks
JRB-Bldr

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top