protected void Application_BeginRequest(Object sender, EventArgs e) { if (/*Condition*/) { if (HttpContext.Current.Request.Url.ToString().Contains("Admin.asmx")) { HttpContext.Current.Response.StatusCode = 404; } } }Genius ain't anything more than elegant common sense.
Josh Billings
Great Article
ReplyDeleteASP.NET MVC Training
Online MVC Training
Online MVC Training India
Dot Net Training in Chennai
.Net Online Training
.net training online
Dot Net Online Training
C# Training
Learn yourself asp.net mvc from articles with example www.dotnettricks.com/learn/mvc
ReplyDelete