How to user view model prompt attribute as watermark

MVC5 Display Placeholder using Prompt attribute

While I was building a simple User Interface using ASP.NET MVC5 I came across this issue of displaying placeholder values using view model display prompt attribute is not working strait away. I googled to find solutions was not fruitful. Most of them were suggesting to use the inline text rather taking it from the view model as follows. <div class=”form-group”> @Html.LabelFor(model => model.Email, htmlAttributes: new { @class = “control-label col-md-2” […]

ASP.NET MVC Tips and Tricks

Enable Jquery Ajax calls to Webservice methods in ASP.NET if you want to make Jquery Ajax calls to ASP.NET webservice methods in a asmx file you need to remember two things 1. to add following lines of code into the web.config file <webServices> <protocols> <add name=”HttpGet”/> <add name=”HttpPost”/> </protocols> </webServices> 2. Make sure not place your webservices in a separate folder why? it will cause Cross-domain call error: you […]

_Layout master Header selection city box

Display Dynamic data on the ASP.NET MVC 4 layout master page mvc4 is an evolution of web development. mvc4 offer lot of facilities to developers to build state of the art dynamic websites to cater any platform. In this article shows how to display dynamic data or else data from database into Layout master pages. What are layout master pages? In simple terms layout master pages are the master pages of your ASP.NET MVC website. Master pages are used […]