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” […]

load mvc razor view into jquery dialog box

load Razor view into modal dialog in ASP.NET MVC3

In this tutorial we are going to find out how to load a ASP.NET MVC3 Razor view into Jquery modal dialog. Why use JQuery modal dialog load a ASP.NET MVC3 Razor view? There are situations where you want to display certain information on the web to the user without disturbing the existing view. Such cases are if the user is not logged in to system with out navigating back to […]

Jquery modal popup

Add Jquery modal dialogs to ASP.NET MVC Views

Setup ASP.NET MVC environment Let’s find out how to add JQuery popup dialog box to ASP.NET MVC Razor view. We assume you have setup necessary MVC3 environment. If not visit ASP.NET official website and download necessary components for your development environment. For this article I’ve used Visual Studio 2010. Open your developer environment and create a new ASP.NET MVC application. You can create an empty application. Once you create the […]