web stats analysis

Archive for April 4th, 2013

How to use viewbag in @Html.ActionLink

@Html.ActionLink with Viewbag

Viewbag inside @Html.ActionLink

You must need casting check following solution
@Html.ActionLink((string)ViewBag.Name, null)

How to display a viewbag as html?

How to display viewbag html data in View?

How to display html data in View using Viewbag?

Type Following Code in View
@Html.Raw(ViewBag.Description)

how to change date format in jquery ui datepicker

Change date format in jQuery UI DatePicker

Find Following Code
$(“#txtDate“).datepicker();
Replace with Following Code
$(‘#txtDate‘).datepicker({ dateFormat: ‘dd-mm-yy’ }).val();
Note :- txtDate is a id of textbox