Thursday, April 29, 2010

Arraylist to String c#.net

public string toDelimitedString(string delimiter)
{

if (intAmvrrayItms > 0)
{

string[] srtArray = arrStringArray.ToArray(Type.GetType("System.String")) as string[];

return string.Join(delimiter, srtArray);
}

return null;


}

Monday, April 12, 2010

Precompiling Your Website

Visual Studio offers ASP.NET developers two different project types: Web Application Projects (WAP) and Web Site Projects (WSP). One of the key differences between these project types is that WAPs require explicit compilation whereas WSPs use automatic compilation, by default. With WAPs, you compile the web application's code into a single assembly, which is created in the website's Bin folder. Deployment entails copying the markup content (the .aspx.ascx, and .masterBin folder; the code-behind class files themselves do not need to be deployed. On the other hand, you deploy WSPs by copying both the markup pages and their corresponding code-behind classes to the production environment. The code-behind classes are compiled on demand on the web server. files) in the project, along with the assembly in the Know More

Downloading any file to the browser, ASP.Net

Click Here