Referring Other Parts Of ASP

<%
MyAspString = "HELLO"
%>
<script language=vbscript>
sub RUNCODE()
MyVBScriptString = <%MyAspString%>
msgbox MyVBScriptString
end sub
</script>

Is this possible and if so how can I amend the following line to get it working:

MyVBScriptString = <%MyAspString%>

View Replies


ADVERTISEMENT

Extracting Parts

i want to extract the number 38 from the URL below, using ASP what is the solution?
then store it as a variable.

http://pcol-webtest/default.asp?nc=4098&id=38

View Replies View Related

How Can I Split A Value Of Variable Into Several Parts?

I have a parameter, directory, which has value of "dir1/dir2/dir3". How can I extract the values of dir1, dir2, and dir3 from the directory="dir1/dir2/dir3". ?

View Replies View Related

Removing Parts Of A Sentence

How do I do the following action in asp:

Suppose I have a string of word which I have pulled from my MSSQL database - "Super Fine Quality"

But I don't want to show the entire sentence "Super Fine Quality" in my page. I just want to show the word "Super" only, ie I want to display only the first word of the sentence regardless of it's length.

Without manipulating or doing anything in the MSSQL database, is it possible to remove the words "Fine Quality" and show the first word of the sentence "Super" only with the help of asp code? If yes please let me know how.

View Replies View Related

Splitting A Variable Into Parts

I have a variable named DressCode. The content of this variable is something like N040602
I want to split this variable into four parts:

DressCodea would be the N part
DressCodeb would be the 04 part
DressCodec would be the 06 part
DressCoded would be the 02 part

How do you do this is ASP, so it'll split the variable, no matter what the content is, as long as it is that format (ie 1 letter then 6 numbers).

View Replies View Related

How To Hide Parts Of An ASP Page?

I spend more time with other technologies. Could someone please help me with how to hide sections of content on an ASP page? Please keep it simple. I prefer code examples or at the very least point me to a place on the web that can.

View Replies View Related

Parts Drop Down Search

I'm trying to create a part search for mufflers. I would like to do drop downs ex.

Year
- Make
- Model
- Engine

the end result would bring up the part they are looking for and it would link to that part. Kind of similar to a appsearch.aspx. I'm unsure would would work best with this, so if someone could point me in the right direction, that would be awesome.

View Replies View Related

Referring URL

how to grab the refering URL of a visitor to my site from another site ( I have tried Request.ServerVariables (HTTP_referer) which returns a blank value, although it seems to work fine for pages within my site).

View Replies View Related

Referring Pages

I have a site that has some pages that have sensitive information. Users must login before viewing them and if they try to view it beforehand, they are bounced to the login page. What I want to do, is point the browser back to the page that sent them to the login page once they successfully logged in.

View Replies View Related

Referring Session

If I have a session("variable") created in some asp page, Can I refer or use this session("variable") in some pure html pages(containing only javascripts, no asp scripts) ?

View Replies View Related

Referring A Variable

In my asp page, I have a drop-down list containing dates and sql query that should display details on the same page depending on the date selection.When the user selects a date from the drop-down list, I need to retrive a selected date(variable) and use it in sql query on the same page.How do I refer a variable on same page?

View Replies View Related

Referring Url/link Matches

I've used something like this in the past, can't put my finger
on it, tho...
I need to find out the method/keyword for checking to see if a user is
clicking into one webpage from a certain other webpage or url:

hypothetical example:
<%if referringurl = "http://www.yahoo.com" then

'do a function or task
end if%>

View Replies View Related

Blocking Referring Sites In ASP

How do I block referring sites in ASP using VBScript?Like blocking referrer's from:

192.025.215.001
and
altavista.com

View Replies View Related

Back To Referring Page

if there was an easy way to have a form set up so that when the submit button is pressed, it goes to a confirmation page that contains a back button that goes back to the page that called the form.

Basically, I'm looking at a scenario where 10 pages can call the form, but I want to user to be able to click the back button and be returned to the page they were on when they click on the link to the form. I thought that maybe using javascript:history.go(-2) would work, but if the form is reloaded for any reason, gaing back 2 pages goes back to the form.

View Replies View Related

Back To Referring Page Question.

normally I can redirect to my previous page with referrer. is it possible to go one more previous page is in java script. I mean like,history.go(-1), history.go(-2), etc.

View Replies View Related

Redirect Back To Referring (internal) Page

I want to have a series of links (flags for Italian, English, and German) on the top of every page, each of which when clicked will go to a script and change a session variable called language to the respective language. Once the session variable is changed, I want to send them right back to where they came from.

So, if they enter a page on the site that is optimized for "Local Area" and it is in English, IF they click German or Italian it will go to the script, redirect back to "Local Area" with the Session var being set appropriately.

Keep in mind though that I need to be conscientous of SEO, so I want to keep querystrings to a minimum. Ideally, what it would look like is this AFTER the redirect:

www.mysite.com/local-area.asp for English

www.mysite.com/local-area.asp?l=i for Italian

www.mysite.com/local-area.asp?l=d for German

View Replies View Related

Global.asa An Error Referring To A File That Is In A Different Location

i have two sites on shared NT hosting

aw.neue.co.uk and smh.neue.co.uk

both sites have their own global.asa files and both appear to be throwing up an error referring to a file that is in a different location

anyone know whats happening?

View Replies View Related

An ActiveX Control On This Page Might Be Unsafe To Interact With Other Parts Of The Page ...

I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in my machine), I have no problem, except the page prompted me with "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"

But, when I run the ASP page on another machine (even though the other machine is also a development machine that already has the ActiveX control and I set the Security for Intranet to "Low"), it did not prompt me the above message, and I got an error when accesing any method of the AX control (e.g Object doesn't support this property or method 'myAXControl.method').

Is this because I have to create a CAB file and mark the AX control as safe for scripting ?To create a CAB file for this AX control, do I need to create my own VB AX
Control project that contains this control and then create a cab file for this VB project ?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved