cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
215
Views
5
Helpful
2
Replies

link to extra connection.asp file

jrachut
Level 1
Level 1

hi,

i have some large ip phone services and want to have 1 connection.asp file where all my links, ip addresses etc are stored, because i don't want to change every script if an address changed!

for example:

%@ language="vbscript"%>

<%

Response.Buffer = true

Response.ContentType = "text/xml"

<!-- Abfragen der Server-IP-Adresse -->

sname=request.ServerVariables("SERVER_NAME")

dim link

link = "http://172.16.63.15/wwwroot/ASP/Test3/connection.asp"

%>

<CiscoIPPhoneInput>

<Title>Einloggen</Title>

<URL><%link%></URL>

<InputItem>

<DisplayName>User</DisplayName>

<QueryStringParam>user</QueryStringParam>

<DefaultValue></DefaultValue>

<InputFlags>A</InputFlags>

</InputItem>

<InputItem>

<DisplayName>Passwort</DisplayName>

<QueryStringParam>pwd</QueryStringParam>

<DefaultValue></DefaultValue>

<InputFlags>A</InputFlags>

</InputItem>

</CiscoIPPhoneInput>

in the variable "link" i want to store my link, but it doesen't work! i'm not sure if it's an btxml- or an vbscript mistake? has anyone an idea?

thx in advance, jochen

2 Replies 2

aaronw.ca
Level 5
Level 5

Try changing this line:

<%link%>

to this:

<%=link%>

Note the added = character so that the variable is output.

Try that and see if it works a bit better. Perhaps you could store the links in an include file, and all services could include that file, if that works better.

thx, it works!

that's why i love programming, just little things costs much of time...

jr

i did it also with the include file --> perfect ;-)