Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Couple Of Questions
Message
 
To
06/06/2003 06:29:03
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00797092
Message ID:
00797212
Views:
32
This message has been marked as the solution to the initial question of the thread.
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.asp

Also, 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform