AJAX :: Scheduling Tasks Within A Web Application?

Feb 6, 2010

As part of the web application I am working on there will be functionality to export data from the web application into a windows application copying the data between the database for the web application and the windows application. The databases for these two programs could have been combined but are being kept apart for simplicity.The utility to export the data can be triggered manually from the web application but it is also required that this task can be scheduled to run by the user (once a day, on web app shutdown etc)

I envisage this to be run as a service - I have created services for windows applications before but this is the first time I have needed to create this for a web application. Searching on goggle, I have found an msdn magazine article that suggests creating a web service and then creating a windows service which would call into this web service. So in my situation, I am thinking that I would create a web service which would contain the data transfer functionality between the web application and the windows application. Then I would create a windows service which would be installed as part of installing the web application, which would then call into the web service (at pre-defined intervals) using settings configured by the user within the web application (so that the data transfer functionality can be scheduled).Does this seem the correct solution? I would appreciate any advice on how I might achieve the above.

View 3 Replies


Similar Messages:

C# - Finding Best Ways Of Scheduling Tasks (without Writing Windows Scheduler)

Jul 14, 2010

I am into shared hosting and they do not allow me to use windows scheduler... So what are the ways of achieving scheduled tasks ie(timed mail) in asp.net... I just saw background process by Jeff Atwood blog... Is it relaible? Or any other ways of doing scheduled tasks...

Then i found quartz.net but i can't find a simple example that embeds quartz.net into an asp.net(without installing a Quartz.Net server as a standalone windows service)...

View 6 Replies

System.Threading.Tasks - Limit The Number Of Concurrent Tasks?

May 24, 2010

I have just started to look at the new "System.Threading.Tasks" goodness in .Net 4.0, and would like to know if there is any build in support for limiting the number of concurrent tasks that run at once, or if this should be manually handled.

E.G: If I need to call a calculation method 100 times, is there a way to set up 100 Tasks, but have only 5 execute simultaneously? The answer may just be to create 5 tasks, call Task.WaitAny, and create a new Task as each previous one finishes. I just want to make sure I am not missing a trick if there is a better way to do this.

[code]....

View 5 Replies

MVC And Web Application Administrative Tasks - How It Will Be Treated

Jan 12, 2010

I am little bit confuse with Asp.net MVC Area.

When we talk about WebForms we say, for Administrative tasks, you must have an Admin folder to separate the admin task.

In MVC how i will treat my Admin tasks?

I will go for Admin Area or Admin Controllers,

Because if i will write controller for Admin tasks, each and every task will be written in one controller (AdminController) or if i will write Area -> Controller, means i will need to write at-least two controllers for each feature.

Second if we breaks the application in Areas (as modules) how i will manage Admin task for each Area.

View 1 Replies

Which Type Of Application Can Be Used To Automate Tasks And Does Not Require A User To Login

Nov 26, 2010

Which of the following answer is true and why?

Question: Which type of .Net application can be used to automate tasks and does not require a user to login?

a. Windows Form
b. Windows service
c. XML Web Service
d. Net remoting object

View 1 Replies

Ajax - Pattern For Long Running Tasks Invoked Through Webpage?

Apr 1, 2011

I need to invoke a long running task from an ASP.NET page, and allow the user to view the tasks progress as it executes.

In my current case I want to import data from a series of data files into a database, but this involves a fair amount of processing. I would like the user to see how far through the files the task is, and any problems encountered along the way.

Due to limited processing resources I would like to queue the requests for this service.

I have recently looked at Windows Workflow and wondered if it might offer a solution?

I am thinking of a solution that might look like:

ASP.NET AJAX page -> WCF Service -> MSMQ -> Workflow Service *or* Windows Service

View 3 Replies

C# - Implementing A "tasks" Application That Runs Alongside .NET MVC Site In Medium Trust?

Oct 10, 2010

I'm writing an ASP.NET MVC site where I need to have a "Tasks" application that runs alongside the website. Such a "Tasks" application would collect data at set intervals and insert it into the database.

Of course, I could write a simple Console Application and use the Windows Task Scheduler to run it, but my site is being hosted by GoDaddy and I only have medium trust permissions.

Are there any methods for implementing such functionality while not violating medium trust permissions?

One method that I'm considering is a method in the site itself that gathers data, waits for a long time, and then gathers data again. Would that interupt users' connection to the site?

View 1 Replies

Creating Scheduling Control In C#?

Jan 12, 2010

I need to create a scheduling control in ASP.NET. Meeting slots are fixed to 30 minutes.

I am showing the slots in tabular format.

My main concern is to DateTime and slot timing like 4 to 4 4:30 to be read in code when user clicks particular cell in table, using HtmlTable control.

Table is created dynamically. Unfortunately the TableCell control don't have a click event.

In short, how can I detect the DateTime and timing from cell in the table by?

View 3 Replies

Add Scheduling A RDLC Report?

Mar 28, 2011

I have created a report (rdlc) in visual studio 2005 web form. However, the client now wants the report to be sent by email at scheduled times. How can i add a scheduler to the report?

View 1 Replies

Scheduling System For Assigning Shifts?

Jul 22, 2010

May I ask for your idea regarding a scheduling system? I'm in a task of creating a scheduling system for my team and this will include the team leader will assign a shift on 1-15 cut-off schedule and 16-31 cut-off per month. How can I design my database? If you work with this before.

View 2 Replies

Creating A Scheduling / Calendar Grid In C#?

Apr 12, 2010

I am working on the prototype for a scheduling application on an intranet system. The application is for scheduling and tracking promotional workers at various locations on various dates.

Currently, only for prototyping, I am generating a data table of location/date, and from this I iteratively build an HTML table (asp:Table control). On visiting each cell, I query for people working that location-date and populate the cell accordingly. This is very inefficient, and will at worst be improved by querying cached data for the whole location/date grid.

I'm looking around for established patterns and techniques for dealing with scenarios like this in HTML in general, maybe a visualization library for jQuery or something, and for ASP.NET in particular, maybe a library for implementation on a GridView etc.

View 4 Replies

DataSource Controls :: Job Scheduling In Sql Server?

May 19, 2010

i want to create a registration form, which contain free and paid option if user registered through free then after3 days ne/she will get a msg regarding registration... So i follow the steps of this site...........but i culd not understand the code , where we define 3 days limitation ...

http://www.aspsnippets.com/Articles/Automated-Email-Notifications-using-SQL-Server-Job-Schedular.aspx\

View 5 Replies

DataSource Controls :: How To Run The SQL Server Job From Webpage (without Scheduling)

Apr 9, 2010

I want to run the SQL server Job from the web page.

I have created the SP. Now i want to run this SP By run the Job.

The Job should not be scheduled automatically. I should run this job from front end web screen.

If user clicks the button i want to run the job and return the response back to the screen.

The SP (calculation process) will run for nearly 10 minutes, thats why we are going for this method instead of calling SP directly.

View 1 Replies

Calendar - Employee Shift Scheduling Component For C#?

Jan 27, 2010

I'm looking for a control I can use in an ASP.NET app for scheduling work shifts. My primary requirement is to have locations on a y-axis, dates on the x-axis, and then at each intersection, have a block divided into shifts, and each shift containing a short (1-3) list of employees working that shift.

View 2 Replies

Web Forms :: Scheduling Timed Routine In Application_Start?

Aug 19, 2010

I'm looking at automating some reporting that I'm going to be generating. I want the reports to be generated and emailed at a particular time every day. These times will vary, and so will the types of reports.I was wondering if there were any better solution to creating a routine with a timer that executes at a set time every day? If I include this class and routine in the Application_Start of my Global.asax, will it always be running, or is there some awesome EventListener that I'm not aware of?

View 3 Replies

SQL Server :: Scheduling System - Showing Data Using Relation Shift

Jul 26, 2010

How I will create the scheduling system. I have 3 tables related namely employees, schedule and shift. How will I show the data using the relation shift of the table on gridview by this: It will be filtered by datefrom and dateto: Select via calendar ex Datefrom: August 1 Dateto: August15

Then It will show:
EmployeeID Name
1 2 3 4 5 and up to 15

EP9112 Lastname, firstname, Middlename shift shift shift shift shift
with edit when I press EmployeeID their shift.
How can I also format the shift and date by: ex TimeIn: 7:00:00 AM TimeOut: 3:00:00 PM Date: 8/1/2010
When I add it, it will be TimeIn: 8/1/2010 7:00:00AM TimeOut: 8/1/2010 3:00:00 PM.
Do I need to edit my database.

View 5 Replies

Web Forms :: API For Scheduling SSRS Report From Webpage HTML Page

May 7, 2012

I need to find an API for scheduler in SSRS and call it from a ASP .Net Web Page/HTML page, which performs a scheduling operation and calling this API should directly get linked to a SSRS Scheduler.

View 1 Replies

Where Can I Find The Tasks To Practice

Sep 16, 2010

I am a beginner of C# programming. I have read a few books about C#.net. But I cannot find some exercises in the books. Someone told me to build up a blog to practice my coding.

But it is a huge task for a beginner. I just want some tasks to have a step by step learning process.

View 3 Replies

MVC :: Firing Startup Tasks?

Jun 21, 2010

I used Castle Windsor before and had this routine that fired the certain method of all classes that implement a certain interface.If I recall correctly, the interface was IBootStrapTask and only had an excecute method. Then, for instance, I'd place all my route registrations in one of these, and know it get fired on application startup.Have to admit I did not understand the code to well, so I'm even more unsure how can I do this. I'm using structure map now. (still knowing very little about it)

View 1 Replies

How To Use Threading To Perform Background Tasks

Jan 29, 2011

In my ASP.NET website, I am having a function which has to be automatically performed once every 2-3 mins on its own, i.e. without user intervention. This function contains database access.

Can I use threading to perform this process in background?

If Yes, How can I use that?

Edit

Also I am not looking for a solution which includes windows service because I am using shared hosting. So I dont have all the rights to access the host computer.

View 5 Replies

Javascript - Running Tasks Before Redirect

Apr 4, 2011

We have a timer process (a JQuery plugin) that redirects after X number of minutes to the login page, all via JavaScript. When the timer hits zero, I want to run a task (could be anything; however, in this specific scenario, it's a web service call).

So the process does:

if (zeroedOut) {
window.setTimeout(function() {
//Run finish-up processes
}, 0);
window.location = "login.aspx";
}

The issue I'm having is the web service that runs with the finish-up processes is not being called. The web service call happens, the redirect happens, I don't see any errors (I have try/catch statements around the setTimeout call), but no WS call.

View 1 Replies

Web Forms :: How To Add Task In Windows Scheduled Tasks

Mar 14, 2011

How can I add a Task in Windows Scheduled Tasks using Asp.Net.

View 3 Replies

What Is A Reliable Way To Run Time Consuming Tasks In MVC2

Sep 15, 2010

I need reliable way to run 10 different tasks simultaneously. For instance the first one would be sending emails, while the next one is cleaning rows from a specific table... so on an so forth.

I've used the Thread class and while it works well on my development machine (VS2010 internal web server) non of these threads seems to be working at all on my production server. And I don't know of an effective way to debug the problem on the production server.

I saw this technique which encourage you to register cache objects. Since the application fires a callback when a cached item expires, then it's possible to run any code to mimic threading behavior. It seems a little Micky Mouse like.

View 3 Replies

MVC :: Create Views That Perform Multiple Tasks?

Oct 3, 2010

This is my first forray into ASP.NET MVC, having been doing WebForms for nearly 6 years now. I've read through various tutorials and guides on getting started with MVC, but I've a few questions about how you're meant to do things:

UserControls for entities

In an application I wrote a few years ago (using WebForms) there were many entities that had an associated postal address (which existed as an instance of an Address class), so I created a UserControl that contained fields for working with addresses. During the page lifecycle I would pass the business object's .Address property to the UserControl for display and for population upon a successful and valid postback. How would I do something like this in MVC? My current project has a similar situation where common sets of fields are repeated throughout the application and all 'map' to the same class.

Modifying the page/view on 'postback'

Say I'm working on a data-entry form for an online B2B ordering system, where the user manually enters order items into a series of textboxes arranged in a table. The system can only provide so-many textboxes at a time (usually 5 or 10). If the user ran out of textboxes they would click an "Add more rows" button that performed a postback that was caught by that button's server-side .Click event handler. The page's class would then add more rows to the page; ASP.NET's stateful nature made this easy to implement. But in MVC there is no ViewState and I haven't found much information about how you'd do this, or anything like this. All of the tutorials and guides assume a form posting is only for data submission.

Multiple tasks per page/form

In a similar vein to the above, how do you create views that perform multiple tasks? In my above example I cited a webform that had two buttons: one to submit the form for actual processing, and another button that just modified the page (by adding more data-entry rows).Given that Controllers' actions are bound to URIs rather than what combination of fields were submitted, does this mean that I would have to interpret the posted data myself and branch based on that?

Componentised self-contained controls (e.g. sidebar forms)

Finally, in many web applications you have the main form in the middle, but also things on the periphary of the page (e.g. a sidebar) that might have their own logic. For example, in one WebForms application I wrote last year there was a 'Quick contact' form in a UserControl located elsewhere on the page. When the user clicked the form's button the UserControl's logic handled the postback details independently of the page containing the UserControl (but there was only one <form> element in the whole rendered page). The user was returned to the page they clicked the button on, with everything in identical state as to how it was before, exccept for the UserControl which reported that the email was sent. Again, MVC's stateless nature would make something like this hard to implement, unless there are some techniques not covered in the tutorials?

View 2 Replies

MVC :: Asynccontroller Multiple Tasks In Parallel Failed Sometime?

Jul 29, 2010

I am experimenting AsyncController feature. What I did is set up two tasks to run in parallel. As in the code below, the problem is that sometime all tasks finished and return successfully, sometime only one task finish and sometime each task finish half of it's work and return. It is weird, what did I do wrong?

[Code]....

View 29 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved