Tarran,
>How would I do the below functions In ASP.NET(C#) that I could do in ASP(VB)?
>1. Request.ServerVariables("SCRIPT_NAME")
Microsoft has kept a number of things the same including objects such as Request, Response, Session, and so on. To retrieve server variables for a script that is executing, you do it the same way (except you use square brackets in C# rather than parentheses as in VB/VB.NET):
string ServerVars = Request.ServerVariables["SCRIPT_NAME"];
>2. Trim(String)
To trim a string, such as ServerVars shown above:
ServerVars.Trim();
Just remember that in C#, everything is a class. That includes basic data types, including String.
>Also does anyone know where I can download C# Documentation like the VBScript V5.5 Documentation.
Check out this resource for a CHM file of the C# spec:
http://www.eggheadcafe.com/articles/20020528.aspAlso, check out the C# team page at:
http://www.gotdotnet.com/team/csharp/Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com