Tuesday, February 24, 2015

Access Model State Property within the View of ASP.NET MVC 4 Hi Folks,   If you want to access the ModelState property in the View , you can use the ModelState in your Razor View as depicted below in image:   This is the source code as shown below:  1: @model IEnumerable<MVCSample.Models.EmpRegistration> 2: @{ 3: ...
Why Constructor can't be declared Virtually? Why Destructor can't be Overloaded? A ChildAction method is an action method thought its accessible from the View only, if you invoked this action via an URL then it prompts This is what i found something very interesting about Constructor and Destructor. Constructor can't be virtual, because constructor...

Monday, February 16, 2015

WebApi Hosting in Internet Information Server (IIS 7.5) The Web API is a platform to develop HTTP / HTTPS based services that can be used by native applications like on smartphones, tablets and browsers. The WebApi is a core part of ASP.NET and provides ways to create Restful services and can be used by any application that can understand HTTP communications.Implementation...
Unrecognized attribute 'targetframework'. Note that attribute names are case-sensitive IIS7 Scenario: I added a WebAPI application in IIS and tried to browse ,it prompt me a yellow error window as shown below. Error is => unrecognized attribute 'targetframework'. Note that attribute names are case-sensitive IIS7.   To sort this issue please...

Tuesday, February 3, 2015

WebAPI: Restful CRUD Operations in WebAPI Using ADO.NET Objects and SQL Server 2008 The Web API is a platform to develop HTTP / HTTPS based services that can be used by native applications like on smart phones, tablets and any browsers. The WebAPI is a core part of ASP.NET and provides ways to create Restful services and can be used by any applications...
Count Number of Columns in a Table and Delay in Sql server Hi Geeks, A simple query to find the number of columns in a table . Here in example i have used Northwind  database table named as 'Categories' which returns the no of columns. 1: use Northwind 2: 3: select count('c') 'Columns Count' from sys.syscolumns where id=object_id('Categories')...

Monday, February 2, 2015

How to Create a Simple Bubble Popup! in jQuery

How to Create a Simple Bubble Popup! in jQuery Let's create a simple BubblePopup! As I learn more about the jQuery function every day, I have researched a feature that helps to perform some operation in the runtime called "CreateBubblePopup()".It may do the following: Attach popups to any DOM element! Mouseover/mouseout events automatically managed!...