Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 29th, 2005, 12:55 AM
Registered User
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP give blank page after run


I have problem with my asp. It always give me blank page when run. the rest ASP page is ok only this one...

Here I attach the code :


Dim strUserID
if strUserID <> "" then

Dim rstraining
Dim rstraining_numRows

Set rstraining = Server.CreateObject("ADODB.Recordset")
rstraining.ActiveConnection = MM_sqlconn_STRING
rstraining.Source = "select * from dbo.TrainingForm WHERE UserID LIKE '%" & strUserID & "%'"
rstraining.CursorType = 0
rstraining.CursorLocation = 2
rstraining.LockType = 1

rstraining_numRows = 0

Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
rstraining_numRows = rstraining_numRows + Repeat1__numRows
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Approval /title>
<style type="text/css">
.style1 {
    font-family: Verdana;
    font-size: 10px;
    font-weight: bold;

<p><img src="186kbr.gif" width="165" height="40"></p>
<form name="form1" method="get" action="approvalact.asp">
  <table width="80%" border="1" cellpadding="1">
      <td class="style1">Check Here </td>
      <td class="style1">Full Name </td>
      <td class="style1">Job Title </td>
      <td class="style1">Line Manager </td>
      <td class="style1">Course Name </td>
      <td class="style1">Start Date </td>
      <td class="style1">End Date </td>
      <td class="style1">Total Hour </td>
      <td class="style1">Currency</td>
      <td class="style1">Cost</td>
      <td class="style1">Provider</td>
      <td class="style1">Location</td>
While ((Repeat1__numRows <> 0) AND (NOT rstraining.EOF))
      <td class="style1">
        <input type="checkbox" name="update_training" id="update_training" value="<%=(rstraining.fields.item("SysTrainingID") .Value)%>" >
      <td class="style1"><%=rstraining("FullName")%></td>
      <td class="style1"><%=rstraining("JobTitle")%></td>
      <td class="style1"><%=rstraining("LineManager")%></td>
      <td class="style1"><%=rstraining("CourseName")%></td>
      <td class="style1"><%=rstraining("StartDate")%></td>
      <td class="style1"><%=rstraining("EndDate")%></td>
      <td class="style1"><%=rstraining("TotalTrainingHour")% ></td>
      <td class="style1"><%=rstraining("Currency")%></td>
      <td class="style1"><%=rstraining("Cost")%></td>
      <td class="style1"><%=rstraining("TrainingProvider")%> </td>
      <td class="style1"><%=rstraining("Location")%></td>
  <p> </p>
  <table width="60%" border="1">
      <td width="25%" class="style1">Approval</td>
      <td width="75%"><select name="Approval" size="1" class="style1" id="Approval">
        <option value="Approve">Approve</option>
        <option value="Reject">Reject</option>
  <p> </p>
  <span class="style1">
    <input name="Submit" type="submit" class="style1" value="Submit">
  <p> </p>
  <p> </p>

end if
Set rstraining = Nothing

i dont know what is wrong with that...:(. I already try so many ways but still cannot, always give me the blank page

Any suggestions will be helpfull



Old July 29th, 2005, 03:14 AM
Friend of Wrox
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post

Hi Avryl,

Your </title> tag is incomplete - it's missing the initial '<'.


Old July 29th, 2005, 04:19 AM
Registered User
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Chris,

yes it works. oh my god , my stupid eyes


Similar Threads
Thread Thread Starter Forum Replies Last Post
want to run Media player from ASP.net page ?? jay4ever_2000 ASP.NET 1.0 and 1.1 Professional 10 June 2nd, 2010 02:58 AM
urgent doubt to run calc.exe from asp.net page geetha ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 07:35 AM
how to run MS Access Marcos from ASP page Dean Hewitt Classic ASP Databases 1 April 10th, 2005 08:19 AM
How to run application from ASP page zabedin Classic ASP Basics 2 July 15th, 2003 09:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.