Solved

request.servervariables("SCRIPT_NAME") asp.net version

Posted on 2007-11-20
11
1,348 Views
Last Modified: 2008-02-01
Please show me how to retrieve the vb asp.net version of this from asp classic:

request.servervariables("SCRIPT_NAME")

thanks!
0
Comment
Question by:Starr Duskk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
11 Comments
 
LVL 11

Expert Comment

by:DotNetThinker
ID: 20323528
C#: Request.ServerVariables["Name"]
VB: Request.ServerVariables("Name")
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323546
That's exactly what I already have and asked how to define/retrieve:

request.servervariables("SCRIPT_NAME")
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323549
I want to know how to define it, assign it, use it please.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:DotNetThinker
ID: 20323565
my bad,

Request.ServerVariables.Add("Name", "Value")
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323623
You're not answering my question.

How do I dim and find the value of the "SCRIPT_NAME"

I don't know how many other ways I can ask the same question.


0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323630
Here is an example that doesn't work. I need to know how to dim it (define it), and retrieve it.

dim scriptname as request.servervariables("SCRIPT_NAME")
0
 
LVL 11

Expert Comment

by:DotNetThinker
ID: 20323642
try to take it easy, you asked how to get the value so I told you, you asked how to assign the value so I told you. If you want to assign the value to a variable you can just ask.




Dim Value as String = Request.ServerVariables("SCRIPT_NAME")

Open in new window

0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323696
I've tried that. That's why I'm asking here. That doesn't work.

The word "Request" is squiggly underlined.
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323703
I am trying to add this to my class and it is saying "Name 'Request' is not declared."
0
 
LVL 11

Accepted Solution

by:
DotNetThinker earned 500 total points
ID: 20323718
Does the class inherit from System.Web.UI.Page?
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20323838
It does now. and it now works.

Thanks!


0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question