kalu singh rao

kalu singh rao

  • 290
  • 6.4k
  • 108.6k

How to post asp.net code in my blog

Mar 31 2014 3:24 AM
I have blog and want to show asp.net programming code in blog but when i post then code color is black but i want to show same as asp.net code programming.  If you don't understand then please checkbelow
 
<!DOCTYPE html>
<html>
<
head>
<title>@ViewBag.Title</title>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
</head>

<body>
<div class="page">

<div id="header">
<div id="title">
<h1>Taxi Cab Automation System</h1>
</div>

<div id="logindisplay">
@Html.Partial("_LogOnPartial")
</div>

<div id="menucontainer">

<ul id="menu">
@* <li>@Html.ActionLink("Home", "Index", "Home")</li>*@
@*<li>@Html.ActionLink("About", "About", "Home")</li>*@
</ul>

</div>
</div>

<div id="main">
@RenderBody()
<div id="footer">
</div>
</div>
</div>
</body>
</
html>
 
 
 
// GET: /Home/
CabDbContext _db = new CabDbContext();
public ActionResult Index()
{
//ViewBag.Message = "Welcome to Login Page";
//var v = ViewData.Model = _db.Employee.ToList();
// return View(v);
return View();
} 
 
 

Answers (2)