Posts

Showing posts from 2012

Asp.net MVC 4 application with Flexigrid, jQuery UI, and jQuery validation

Image
Almost all applications expose four fundamental operations on entities such as Create, Read, Update, and Delete (CRUD). In general terms these will relate to: Create new entities List, search, or view existing entities Update existing entities Delete existing entities Building a web application using Asp.Net MVC framework with CRUD operations will result in a separate view for each operation (except delete). Also controller classes will have a set of action methods (http get / post) for each view. It is a quick and straightforward to implement such CRUD pattern. But this pattern is not user friendly and results in the bigger code base and the higher bandwidth consumption. The other approach to implement CRUD UI is using AJAX with jQuery based components. This should make user experience is more enjoyable and the much better technologies utilization. I have created a simple DEMO application called “Job Market” using following technologies: Asp.Net MVC 4 Flexigrid (

Warm up the Web application and SQL Server Reporting Services on Windows Server

Image
Let me share the way of warming up the web application and also SSRS with the help of VB script running from the scheduled task. This will keep the applications alive and avoid the problem of long delays on the first hit after some period of inactivity. The VB script presented below sends the GET request to the designated URL using the ServerXMLHTTP object. We can pass the username and password to authenticate the request for reporting services. Dim strURL Set webObj = CreateObject("MSXML2.ServerXMLHTTP") ' Replace below URL with the URL of your report in the reporting server ' Replace below Username and Password with your credentials strURL = "http://MyReportServer/Reports/Pages/Report.aspx?ItemPath=MyReport" webObj.Open "GET", strURL, False, "Username", "Password" webObj.send ' For debugging - uncomment the line below to check the response status ' MsgBox(webObj.Status) ' Replace below URL with the URL of yo