There are many ways to schedule a task on a web server. For example, you can use Windows Task Scheduler and SQL Server Agent. This application is unique in that you can:
Schedule jobs using a web browser.
Extend the scheduling application to include your own features.
Using the code
This application has three components:
A Windows Service that will run a job (DOS command text).
A Web Application that will let you schedule a job.
MS SQL Server database Stored Procedure to get the list of jobs that need to run.
Job and schedule information are stored in a MS SQL Server database. The web application lets
[More]
aee42ab7-584e-483c-9e58-b779fd891a8a|0|.0
This article is about to introduce a web based job scheduler where you can add and manage your daily or monthly administration or report sending tasks. There are some other available approaches to do this, but I found none of them fully satisfying so I decided to write my own job scheduler. For one hand you can use Windows Task Scheduler for running some scripts and the other hand you can use MS SQL Server Agent job scheduler to execute some of your stored procedures to handle your database maintance jobs. This project is intends to combine this two approaches so it can be handled through an easily manageable ASP.NET page.
[More]
01289409-0106-4468-ad5f-3d9883f85543|0|.0
Introduction
How can you change the page size of a grid view based on screen height? I never thought of this until I came across this requirement in one of my projects. After some thinking, was able to get it working. There are few pre conditions to it. But, it is workable in most of the real time projects. Below section will try to cover the how to implement it.
[More]
ed870046-b08b-4c5c-95e3-e5c3b76e45e5|0|.0
Simple function to convert Hex to Bin,Bin to Hex, Dec to Bin, Bin to Dec,Hex to Dec, Dec to Hex in C#
[More]
8cf6d0a4-2ad9-430e-865d-4f0a03169a21|0|.0
Generally some tasks are required to be scheduled or dependent on the time. So this can be performed easily using windows service. Here are the steps to create windows service quickly.
1. File-> New Project -> Visual C# -> Windows -> Windows Services
Give Project Name and location.
2. Now Right Click -> View code
[More]
628fb809-f609-42e8-81f2-c971fb21793c|0|.0
f023ce2b-4b95-4f1f-9048-d6df92437e17|6|4.0
Struct cannot have an explicit parameterless constructor, only the implicit one, that initializes all members to their default. Struct won't allow destructor in .Net.
Although the CLR allows it, C# does not allow structs to have a default parameterless constructor. The reason is that, for a value type, compilers by default neither generate a default constructor, nor do they generate a call to the default constructor. So, even if you happened to define a default constructor, it will not be called and that will only confuse you. To avoid such problems, the C# compiler disallows definition of a default constructor by the user. And because it doesn't generate a default constructor, you can't initialize fields when defining them.
The default constructor is implicitly defined by C# and you can't implement the default constructor yourself. The default constructor initializes all struct fields to default values. i.e. integrals are 0, floating points are 0.0, and booleans are false. If you need custom constructor overloads, you can add new constructors, as long as they have one or more parameters.
[More]
7493c470-2ccf-45fb-af7a-0ff7acbd254b|0|.0
In our normal programs, the requirement of exporting data to excel is very usual. I've summarized some basic skills in an article in Codeproject. And right here, I want to specialize on some solutions and offer you a solution for large amount data exporting to excel solution which may be useful for you.
[More]
2a28756a-ebba-4e45-88d9-b2bca5a4ac35|0|.0