C# - Background Processing In .net.?
Sep 30, 2010
I have a webpage that reads data from an external source. It can take awhile to retrieve the data.I was wondering if someone could give me an idea on the best way to have this happen in the background. I would like the page to come up and display 'Processing' (or somthing like that) in the panel where the data will eventually be displayed.I thought of the BackgroundWorker component, or maybe an AsyncPostBackTrigger... not sure if these will even solve the problem to my satisfaction.
View 4 Replies
Similar Messages:
Mar 11, 2011
I have an web application which needs some calculations and processing on data. This job is a long running job(few hours). Job is initiated by user.
Requirement.
User Clicks on Process Data.
Some functions are called to start data processing.
Data Processing runs for hours.
User is given feedback of percentage completed etc.
Even if user logs off and then again log on he should get this feedback.
The requirement is somewhat similar to Spiceworks. Where it runs in background to detect the devices/computers in network and the user is notified in his page about the progress. But spicework uses windows service. We don't want to us windows service.
Now the question is.
What if user closes the page, will the task still run in background. This task has to be completed fully.If terminated in between output will not have any meaning. How to actually to design this long running process. In ASP.Net environment. Also is there a way to show all/same user who logs in the status of processing.
View 1 Replies
Aug 25, 2010
I have Requirement to update the label text as we are processing the code (Long running).
Example:
I have Label and button on aspx page.
On button Click Iam calling the AppCode which is going to do long work for me.
I want to update the label text from the appcode (which should reflect in the page then and there.)
I have tryed to pass the text value to the label but it shows the changed text only after the event for the button click is finished.
I tryed using timer but as soon as i click the button the refreshing stops.
I tryed progress template and UpdateProgress without success. (I know we can update at the start and end of proccess using this)
I dont want to use iframe (I know we can do using iframe)
View 3 Replies
Mar 18, 2010
We are in the process of building a huge site. We are contemplating on whether to do the processing of HTML at server side (ASP .Net) or at the client side. For example we have HTML files which acts like templates for the generation of tabs. Is it better for the server side to get hold of content section (div) of HTML load the appropriate values and send the updated HTML to the browser or is it better that a chunk of data is passed onto client and make Javascript do the work?
View 2 Replies
Mar 30, 2010
When user click a button the system query from DB, made the zip file and it will be downloaded.
Problem is that after the download i wanted to delete the file from the server.
But After Response.End() no further processing done and cursor is not coming to next line of code where this File.Delete line is calle.
View 9 Replies
Dec 3, 2010
i'm new to asp.net, but familiar with c#, .net. i want to write a cms for asp.net, which has the pages of the website in a database. these pages contain asp controls, like asp:Repeater which have to be processed after loading the page from the database, and before sending it to the client like a normal aspx page.
View 1 Replies
Feb 17, 2010
Am looking for examples specific to .net/mvc and servers native WinServer08 where problem being addressed is processing a bounced smtp msg so as to bind to an estore transaction and updating account/profile properties.
Reading the related questions i find an interesting reference to [VERP]2. Under the heading 'Software that supports VERP i find that IIS is not on the list. Does that mean i need to find a library to integrate into my store's assembly?
What resources do I have to pull together to make sure that the webapp is informed when mail bounces? fwiw - i'm working with a very low volume site.
View 1 Replies
Apr 18, 2010
I would like to create a subscription based website with users getting charged every month. I know I have to create an account with paypal or authorize.net. Do these payment providers automatically bill the user every month? How would I take care of offering the service free for 30 days and start billing after that?
Also, I've heard of middle men services like spreedly, chargify. Where do they fit into the equation? Can someone help me wrap my head around these concepts?
Considering, I am based in the U.S but would like to have the payment provider accept any kind of currency.
View 1 Replies
Feb 19, 2011
I have windows service which need to execute around 10000 schedules (need to send/execute data to all the members).
For one member it's taking 3 to 5 seconds for 10000 schedules it's taking around 10 minutes or so..
But I need to execute all these schedules in one minutes.
View 1 Replies
Apr 27, 2010
i have treeview filled from database. I want specific information after selection of treeview node, I have used sql query on
selectedindex changing event as well as used Datarow rowfilter property to filter specific data from datatable(filled on page load event once), but the processing is very slow. Is this is technical issue. I used ajax 3.5. I have read articles regarding Update Panel that processing is slow inside it.
View 7 Replies
Nov 2, 2010
I would like all actions of a controller to read some master page level values from the querystring and write those values to ViewState. How do I do this in ASP.NET MVC?
View 1 Replies
Mar 31, 2011
I am building a ASP.NET page which is an Sales Order Processing Form I have two Last issues that due to my lack of experience in the language I am struggling with hopefully you can help.Issue 1 - I have a field <asp:DropDownList runat="server" ID="txtProduct"></asp:DropDownList> that is pulling from a database table Called Products to populate its options list. I need to automatically pull the SalesPrice value and insert it into the txtUnitAmount field based on the selection of the Product.Issue 2 - Once the form has been filled and there are records in the DataTable I then need to insert all of the rows into the Database table SalesOrders when a user clicks a button.
[code]...
View 1 Replies
Mar 27, 2010
I want to be able to upload file from my .aspx page to my web server so that it can be preocessed into a different format.e.g. user will upload a doc and in few seconds it would see a pdf version of the doc on the web page.I have web service available which can convert doc to pdf.now1- how do i automate upload + conversion process.2- how do i handle big files here.3- how not to make user wait for all this thing to happen.
View 1 Replies
Apr 3, 2010
In my application I have a string parameter called "shop" that is required in all controllers, but it needs to be transformed using code like this:
shop = shop.Replace("-", " ").ToLower();
How can I do this globally for all controllers without repeating this line in over and over?
View 1 Replies
May 10, 2010
I need to know a way to process images in asp.net web pages. I need to be able to highlight a certain area of the image and put an image on top of the other, then save the image with those changes. So far everything I have seen requieres buy 3rd parties components which I can not afford, I need to develop this functionality using objects inside the .net framework, or a free component.
View 5 Replies
Apr 28, 2010
I have an aspx page with a long running method.When the button is clicked I want to show a waiting image and continue to process that method.How can do this?
View 3 Replies
Mar 11, 2011
It seems that by default, ASP.NET 3.5 running on IIS 6.0 does not do any parallel processing whatsoever. With a quad-core system and a test webforms application that runs an infinite while loop on the server, CPU usage never goes higher than 30% regardless of how many clients are connected and independently running the while loop.What are my options for enabling parallel processing?
View 2 Replies
May 24, 2010
Can anyone provide examples or links on how to use the TreeView control. I'm just curious what some of the industry standards are. Which Events to use, how reference childnodes, etc.
View 13 Replies
Oct 28, 2010
I'm putting together a web app that will process time consuming jobs in the background.so for example 100 users are on the site 20 of them submit jobs to the server. these 20 jobs get added to a list and the background worker pickes them up one by one. I want to be able to have up to 10 background workers doing the tasks.
for scaleability the job list is likely to be a database table, however at the proof of concept stage I will probably use an application variable (stack of some sort) with a GUID to identify each job.
So I *think* what I need is ....
a single background worker process that starts when the web app starts.This process monitors the stack / job list. It dynamically creates a worker process for the first item, removes the job from the stack and increments the thread count.If there is a second job it creates another thread (up to 10) and increments the thread counter.When each thread finishes it closes itself and decrements the thread count.
If I move to the database table job list would it be better to have ASP.Net add jobs and a windows service do the processing?
View 8 Replies
Jun 29, 2010
I have a Button inside an UpdatePanel. How can I lock the page while the Button is clicked?
View 2 Replies
Jan 22, 2010
When I click the button, it will process for a certain time. How to show to user that it is processing?
(1) Show Processing indicator??
(2) button disabled with text??
(3) Masked the page??
When it has been finished, all return to normal. This is the basic requirement.
View 5 Replies
Mar 27, 2010
I have a process, that outputs step by step messages (i.e., Processing item 1... Error in item 2 etc etc).
I want this to be outputted to the user during the process, and not at the end.
I pretty sure i need to do this with threading, but can't find a decent example.
View 1 Replies
Oct 21, 2010
I'm a part time prgramming enthusiat and have developed several web applications on earlier version of ASP. I'm preparing to get back intoit and have been searching for ways to accomplish my goals. One goal is to acquire data from a website feed and break it down for use of specific data in my application. Specfically I want to be able to grab scores from NFL games so that I can use them in my application.
What I believe I need to do is write my ASP.NET MVC code to capture an RSS feed, then parse the feed (I'm guessing using C# string commands to break the feed down to variables that I can cast as integers and then use in my application.) What I am uncertain of is whether this is the best approach. Is what I am attempting to do best done with ASP.NET, XML and C# or should I be considering another approach?
View 1 Replies
Mar 27, 2010
I have a .aspx web page and a .asmx web service.I want to upload a file from this web page to my web server so that I can call some web services to process the file, e.g. convert uploaded doc to pdf file.1- how to upload big files?2- how do I process these files automatically? like when i upload on youtube, it automatically does some file format conversion. how can i do this.3- how to make sure that i dont make my user wait on this page , but send email or some type of alert when processing is done.
View 3 Replies
Mar 27, 2011
I have a report having lakhs of rows, I wana that the report will process page by page. It means when Report run for the first time it will show the first 100 records and after that if user will go to 5th page he will see records from 500 to 600.
Is this possible in SSRS. Also if any one of you explain about On-Demand Report processing then it will be great.
View 5 Replies