This topic is locked

hyperlink in _LIST.ASP

9/20/2004 12:39:08 PM
ASPRunnerPro General questions
Sarjent author

I had the following code working in the previous version of ASPRunner pro. After creating my pages with the beta version I can't seem to get the hyperlink to work correctly.
The list displays a servername and that servername should be a hyperlink to another web site for details on that servername.
What I had:

<%

Response.Write "<a href=""http://usg1-1/sms_svc/report.asp?txtValue=" & GetData(rsData.Fields("SRVNAME"), "") & "&txtSQL=0&txtReportID=7300" & """ target=_blank>" & GetData(rsData.Fields("SRVNAME"), "") & "</a>"

%>


What happens is the list page loads partially. Displaying all columns up to the name and everything then is blank with nothing to click on.

Sergey Kornilov admin 9/20/2004

Hi,
there is no difference what version of ASPRunner do you use since you build hyperlink code manually.
Please post exact HTML code that this ASP code generates. For this purpose you can right click somewhere on the webpage and choose "View source".

Sarjent author 9/24/2004

As you can see from the code it cuts it off rather than displaying all of the table.

 <td align=center>

   <a href="DSMSC_Query_view.asp"

       onClick="javascript: document.forms.editform.action='DSMSC_Query_view.asp';

   document.forms.editform.TargetPageNumber.value=1;

   document.forms.editform.editid.value = '10.20.100.60';

   

   document.forms.editform.todo.value = 'readonly';document.forms.editform.submit();

   return false;" >View</a>

   &nbsp;</td>

                     

           

   <td align=center valign=middle>

   

   

   <input type=checkbox name=mdelete value=1>
   <input type=hidden name=mdelete1 value="10.20.100.60">

   

   

   

           &nbsp;

   

   </td>

                         

           

           



<TD>
 
</table>

</form>
<script language="JavaScript">WritePagination(1,1);</script>
</body></html>
Sergey Kornilov admin 9/27/2004

Sarjent,
as far as I can this page just doesn't work due to some ASP error.
To see exact error message open ..._list.asp file in any text editor

and change the following line:
On Error Resume Next
to
'On Error Resume Next
After that you can run this page again and see error message which you can post here.

Sarjent author 10/14/2004

I fixed what was happening so I thought I would update this thread:

where the code lists rsdata.fields it should read rs.fields instead.