Results 1 to 2 of 2

Thread: getting error in my code

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    88

    getting error in my code

    Hi all
    I have a textbox in which data is coming from database.
    now i want the data to dispaly some other field according to condition is true.
    i have done the same in my asp page .
    i m not getting any kind of error but it showing nothimg.
    please help me to solve the problem.
    my code is below:

    ////
    <%
    set rs2=server.CreateObject("ADODB.recordset")
    ssql2="select * from leave_master where mid='"&eid&"'"
    rs2.open ssql2,con,1,3
    %>

    <tr>
    <td class="normal">Leave applied for,with the application</td>
    <%if (request.Form("txtleave")="AL") then%>
    <td class="normal"><%=(request.Form("txtday")%></td>
    <%end if%>

    <%if (request.Form("txtleave")="CL") then%>
    <td class="normal"><%=(request.Form("txtday")%></td>
    <%end if%>
    <%if (request.Form("txtleave")="LWOP") then%>
    <td class="normal"><%=(request.Form("txtday")%></td>
    <%end if%>
    </tr>
    ////

  2. #2
    Hyperactive Member gtilles's Avatar
    Join Date
    Dec 2004
    Location
    Planet Earth
    Posts
    394

    Re: getting error in my code

    Your not doing anything with the recordset.
    You are using the request object in your if statements.
    You probably want to use rs2("txtLeave")
    Where is the relationship?
    Truly, you have a dizzying intellect.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width