|
-
Nov 29th, 2006, 04:30 AM
#1
Thread Starter
Lively Member
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>
////
-
Nov 29th, 2006, 11:36 AM
#2
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|