Web Application is stateless. To maintain the state of the page we have many solutions like query string, session, hidden controls and more.. Hidden controls are primarily used to keep some kind of key value pairs for the page. To maintain multiple key value pairs, we need to have multiple hidden controls on the page [...]
Read more…
Monthly Archives: August 2010
Create RESTful WCF Service API : Step By Step Guide
Windows Communication Foundation (WCF) is an SDK for developing and deploying services on Windows. WCF provides a runtime environment for your services, enabling you to expose CLR types as services, and to consume other services as CLR types. In this article I am going to explain you how to implement restful service API using WCF [...]
Read more…
WebService Routing (Soap Router)
This article describes content based web service routing using WSE 3.0. We can use webservice routing for load balancing or to hide internal web service from external world. A background knowledge of Asp.Net 2.0, C#, WebService & WSE 3.0 is required. In this sample application, I have three webservice 1) CBRoutingService 2) PremiumService 3) StandardService [...]
Read more…
ASP.NET MVC – AuthorizeWithExemptionsAttribute
In this article, I’ll provide you with a solution for securing ASP.NET MVC application’s controllers in a way that all the actions are secured except those you define as unsecure (by default, all the actions are unsecure unless you define them as secure). I encountered a problem in the ASP.NET MVC authorization model, which is [...]
Read more…
Authenticate user by roles in asp.net
Forms authentication enables user and password validation for Web applications that do not require Windows authentication. With forms authentication, user information is stored in an external data source, such as a Membership database, or in the configuration file for an application. Once a user is authenticated, forms authentication maintains an authentication ticket in a cookie [...]
Read more…
Easy way to Implement Ajax using Jquery in Asp.net
A simple steps to perform some action which asynchronous to the server using Jquery and Asp.Net.Here I am using Visual Studio 2008,Jquery and C# to perform this.Here I am just giving the code for doing that.I am just mentioning the way to take the data to a server page without using Handlers.This can be useful [...]
Read more…
Windows PowerShell Cookbook, Second Edition
Do you know how to use Windows PowerShell to navigate the filesystem and manage files and folders? Or how to retrieve a web page? Windows PowerShell Cookbook (O’Reilly Media, $54.99 USD) gives you an introduction to the PowerShell language and scripting environment. “This book focuses squarely on helping you learn PowerShell through task-based solutions to [...]
Read more…
Employee Recognition Programs
Employee recognition is vital for performance-oriented companies that look for mobilizing all employees and stakeholders, prominently dealers and distributors, in the direction of clear business objectives ascertained by sales, profits, customer satisfaction, and productivity. Such performance driven companies need to regularly communicate and strengthen their dynamic aims. Nevertheless, recognition for such organizations goes beyond the [...]
Read more…
Checking if User is connected to Internet or Not using Win32 API and C#
In application like Messenger or Application that provides automatic update need to check that user is connected to internet or not before proceeding further. so we need to check whether he is connected to internet or not we can check that with use of WIN32 API. we can use Win32 API Wininet.dll ’sInternetGetConnectedState() method to check Internet [...]
Read more…
Programming Entity Framework, Second Edition
O’reilly has released a new book titled Programming Entity Framework authored by well known programmer and author Julia Lerman. The sub title of the book reads as Building Data Centric Apps with the ADO.NET Entity Framework 4 Get a thorough introduction to ADO.NET Entity Framework 4-Microsoft’s core framework for modeling and interacting with data in [...]
Read more…