Posts Tagged ‘ASP.Net’


The below method fetches the path for all the files present in a Directory or Sub Directory under the parent Directory.
The file path are fetched in a list of string to be used for any implementation as and when required.


private List DirSearch(string sDir)
{
List files = new List();
try
{
foreach (string f in Directory.GetFiles(sDir))
{
files.Add(f);
}
foreach (string d in Directory.GetDirectories(sDir))
{
files.AddRange(DirSearch(d));
}
}
catch (System.Exception excpt)
{
//throw ex
}

return files;
}


In this article I will provide you with a quick reference in order to create proxy file in ASP.Net.

Here we will be using svcutil.exe provided by .Net framework to create proxy file at the specified location.

(more…)


This is a simple method that I created to build a string out of any object that is provided in the input in C#
This method is useful in order to log input and output object of any methods.
My requirement was to log the input object and output object for every method in the application. I created a generic method which enables the object properties and values to be builded as string and used to log in the log files.

The code for the same is provided below:
(more…)


This article will explain you how to convert a MVC3 application to MVC4 application in Visual Studio.

asp-dot-net-logo

On high level the changes mostly are with respect to web.config and the dll that are included in our project.

ASP.NET MVC 4 can be installed side by side with ASP.NET MVC 3 on the same computer, which gives you flexibility in choosing when to upgrade an ASP.NET MVC 3 application to ASP.NET MVC 4.

(more…)


More questions on ASP.Net

(more…)


Here are some questions on ASP.Net.
(more…)