Using Timers in a C# Windows Service is not as simple as it is in windows application where you can drag Timer from the Toolbox and implement it by setting up a few properties. Interestingly, you can do the same in a windows service but it just doesnot work. This is because the timer in […]
In a earlier artcile, we have seen how to create a windows service and install it.In this article we will check the process of Debugging a windows service in VS2010.
As with all other aspects, debugging a Windows Service is different than a normal application. The service cannot be debugged by simply executing it in the development environment as you can with a normal application. To debug a service, you must start the service and then attach a debugger to the process in which it is running. You can then debug your application using all of the standard debugging functionality of Visual Studio.
In this article we will explore basics of creating a windows service in C#. We will cover what Windows Services are and how to create, install a windows service.
A windows service is a long-running executable that performs specific functions and it is designed not to require user intervention or produce any visual output. Windows services can be configured to start when the operating system is booted and run in the background as long as Windows is running, or they can be started manually when required. Any user messages are typically written to text files or Windows Event Log.
In this article I am going to fetch data by asynchronously calling a webservice using JQUERY AJAX method and binding the output to a GridView. JQUERY Code: Since we are going to use JQUERY to satisfy our requirement, we need to add reference to the script file. My web service is going to run under […]
I am always under the impression that adding sorting in GridView is pretty straightforward. If you want to use default sorting, set AllowSorting property on the GridView to true and add sort expressions to all the columns. You could optimize the whole process by handling the way data is fetched and bound to the GridView. […]
In this article, I am going to explain how to create conditional dynamic dropdown lists in a GridView row. First dropdown will be loaded based on the second dropdownlist selection. I am going to use AdventureWorks for this example. Each product belongs to a subcategory and each subcategory belongs to a category. When user tries […]
In this article, I am going to demonstrate an example on how to populate dropdown based on another dropdown. Database Connection: I am going to use AdventureWorks for this example. Add the following connectionstring element to the web.config. Page Design: I have created a simple page with couple of dropdowns ddlCountry and ddlState. Onselectedindexchanged event […]
In this article I am going to explain how to get stored procedure schema. Basically we are not interested in the result set, just the schema of the result returned. What you do with the schema is, I leave it to your imagination. I am going to use AdventureWorks for my example. So add the […]
It is a shame that we cannot add a row to the top of Grid without explicitly pushing all the remaining rows down. It would have been good if Microsoft provide us way of doing it without this additional plumbing work. Since they are busy Windows 8 launch, we have to do it ourselves. I […]