Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-23-2011, 10:17 AM   PM User | #1
md99
New to the CF scene

 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
md99 is an unknown quantity at this point
GetCommandLineArgs

hi,
very basic question from a asp net beginner!
I am using GetCommandLineArgs to collect url parameters. The code follows. My problem is that I cannot use the parameters in the code. The variables (eg REIGN) are undefined. using version 2.5
What am I doing wrong?
michael

....................................
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim REIGN As String
....
Dim strStartupArguments() As String, intCount As Integer

strStartupArguments = System.Environment.GetCommandLineArgs
For intCount = 0 To UBound(strStartupArguments)
Select Case strStartupArguments(intCount).ToLower
Case "-r"
If (Request("R") <> "") Then REIGN = Request("R")
......
End Select
Next intCount

End Sub
md99 is offline   Reply With Quote
Reply

Bookmarks

Tags
getcommandlineargs

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:23 AM.


Advertisement
Log in to turn off these ads.