Websydian v6.1 online documentationOnline documentation - Websydian v6.5

FAQ - How do I integrate ASP pages into Websydian

Product Websydian Web Developer
Version All
Category Development
Question Is there a way I can call an active server page from a normal Websydian application passing a value as input to the active server page.
Answer
The solution is to pass the replacement to the ASP page through the link, and then letting the ASP environment substitute the value itself, e.g.

[Websydian page with link to ASP:]
.
.
.
<form action="/myAspAPP/mypage.asp" method="POST">
<input type="hidden" name="myWebsydianField" value="/(AajA)">
<input type="submit" name="myCallASP" value="Call ASP page">
</form>
.
.

[ASP page:]
.
.
<p>This is the value of myWebsydianField: <% response.write(request.form("myWebsydianField")) %>. </p>
<%
' Store the field value for use later in the page
dim myWebsydianField
myWebsydianField = request.form("myWebsydianField")
%>
<p>This is still the value of the field: <% response.write(myWebsydianField) %>.</p>
.
.
.