PDA

Click to See Complete Forum and Search --> : mobjIIS.response.write "<p align=center>;<a href=index.asp?lIndex=" & myIndex


farah
Sep 13th, 2000, 05:59 AM
Hi,

I am having problem in displaying the link inside index.asp
I think it is something with <a href=index.asp?lIndex=" & myIndex & ">

Can someone help me? Thanks in advance

''''' This code is inside vb6 using internet object as reference for for mobjIIS.response.write '''''''

dim strpath as string
dim lIndex as long
dim myIndex as long

strpath = "images\myimg.gif"
lIndex = 1
mobjIIS.response.write "<p align=center>;<a href=index.asp?lIndex=" & myIndex & "><Img align=center src=" & "'" &strpath & "'" & "</p>"

''''' This code is inside vbscript inside index.asp '''''''
dim lngIndex

I can not pass the following:
lngIndex = request("lIndex")

artsapimp
Sep 13th, 2000, 11:49 PM
I'm not sure if I'm understanding correctly but I'll give it a shot.

It looks like you are using a QueryString in the passing URL named IIndex. The next page should be requesting the Querystring like this...

<%
Dim LngIndex
LngIndex = Request.QueryString("IIndex")
%>