Posts

Showing posts from January, 2013

Master Page & Registering scripts, css in MVC 4 Razor view engine

Image
Hi folks,          For the past couple of months my team were discussing about using MVC 4 RAZOR view engine. We had couple of go thorough with it. But, Finally a doubt arose on my mind just before the day to kick off.         So I woke up mind and started to have a look and I found about adding master page,and two more thinks with it. (CSS & Script registering). MasterPage? Where is it???         With the MVC 4 Razor view template you can find several cshtml pages under Views/Shared. I bet you not all off them are master pages.        By default you can find _Layout.cshtml (considerably the default master page).(See Image) How it is refereed to a view(page)?        If you choose to keep the default master page while you creating a view, then you can find the reference under Views/_ViewStart.cshtml    Else, It will be mention...

WCF Restful Service with Jquery Step by Step procedure

1.Create a Wcf Service Application           -VS2008 ->New Project->Web->WCF Service Application->ProjectName 2.By Default you will get Iservice, Service and Service.svc file           -Iservice                    -Its is an Interface add some methods                    -EX           [ OperationContract ] [ WebInvoke (Method = "GET" , BodyStyle = WebMessageBodyStyle .Wrapped, UriTemplate = "GetData?value={value}" , ResponseFormat = WebMessageFormat .Json)]         string GetData( string value);         [ OperationContract ]   [ WebGet (UriTemplate = "/Result" , ResponseFo...