Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Need help in asp coding
Old 11-15-2010, 01:56 AM Need help in asp coding
Junior Talker

Posts: 2
Name: M. Ali
Trades: 0
Hello folks..

I need help in asp coding. I want to update size measurement chart for a website let me tell u in details.

**************
Please see this it has four fields for size
montrosefashion.com/leatherjacketdetail.asp?ID=560&CatID=1

Select size:
1: Your Chest: 2: Your Waist:
3: Your Hip: 4: Your Height:

the same four fields i want here. leatherjackets99.com/product_detailByJacket.asp?ID=822&CatID=36

Here i updated fields in access db when i test it on local host it gives error.

Error:

Technical Information (for support personnel)

Error Type:
ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/LJN/product_detailByJacket.asp, line 346

*******

Here then i go to line 346 and delete loop ( rsSize.movefirst ) it works in localhost.

I am giving code which is running on product_detailByJacket.asp file.

*************************
Codes:

<%

sql="select * from SizesDetails where productID="&Request.QueryString("ID")
set list3 = Conn.execute(sql)
%>
<select name="Sizes" class="gray eleven" id="Sizes" style="width:129; height:15" onChange="MM_jumpMenu('parent',this,0)">
<%

if sizeID<>"" then

sql ="select * from sizes where SizeID = "&sizeID
set rssize111 = conn.execute (sql)

%>
<option value="<%=rssize111(0)%>"><%=rssize111(1)%></option>


<%do while not list3.eof

sql ="select * from sizes where SizeID = "&list3("SizeID") &" Order by sizename ASC"
set rssize = conn.execute (sql)
%>
<%do while not rsSize.eof
%>

<option value="Product_DetailByJacket.asp?ID=<%=ID%>&CatID =<%=CatID%>&sizeID=<%=rsSize(0)%>"><%=rsSize(1)%> </option>

<%
rsSize.movenext
loop
rsSize.movefirst
list3.movenext
loop
%>
</select>

<%else%>

<%

sql="select * from SizesDetails where productID="&Request.QueryString("ID")&" order by SizeID ASC"
set rssize111 = conn.execute (sql)
yy=rssize111(1)
sql="select * from Sizes where SizeID="&yy
set rssize1111 = conn.execute (sql)
%>

<option value="<%=rssize1111(0)%>"><%=rssize1111(1)%></option>
<%do while not list3.eof

sql ="select * from sizes where SizeID = "&list3("SizeID") &" Order by sizename ASC"
set rssize = conn.execute (sql)
%>
<%do while not rsSize.eof
%>

<option value="Product_DetailByJacket.asp?ID=<%=ID%>&CatID =<%=CatID%>&sizeID=<%=rsSize(0)%>"><%=rsSize(1)%> </option>

<%
rsSize.movenext
loop
rsSize.movefirst
list3.movenext
loop
%>
</select>
<%end if%>

<%
if sizeID="" then

sql="select * from SizesDetails where productID="&Request.QueryString("ID")&" order by SizeID ASC"

else
sql="select * from SizesDetails where productID="&Request.QueryString("ID")&" and sizeID="&sizeID
end if
set listDetails = Conn.execute(sql)
%> </td>
<td><select name="Colors0" class="gray eleven" id="Colors0" style="width: 95">
<option selected>Default</option>
<option>Tan</option>
<option>Khaki</option>
<option>Black</option>
<option>Blue</option>
<option>Olive</option>
<option>Dark Brown</option>
<option>Red</option>
<option>Silver</option>
</select> </td>
</tr>
<tr>
<td>Skin:</td>
<td>Leather Type:</td>
</tr>
<tr>
<td>
<select name="Leather0" class="gray eleven" id="Leather0" style="width: 128; height:18">
<option>Default</option>
</select></td>
<td><select name="LType0" class="gray eleven" id="LType0" style="width: 100; height:16">
<option selected>Default</option>
<option>Nappa</option>
<option>Semi Aniline</option>
<option>Full Aniline</option>
<option>Washed</option>
<option>Water Proof Nappa</option>
<option>Oily Nappa</option>
<option>Oil Skipper</option>
<option>Glazed</option>
<option>Nubuk</option>
<option>Snuffed</option>
<option>Skipper</option>
<option>Milled Grain</option>
</select></td>
</tr>

*************

The fields i created in access db are named:

1: sizeChest
2: sizeHip
3: sizeWaist
4: sizeHeight

please help me in coding ..Here i want to remove other 3 fields Color, skin and leather type.
malim is offline
Reply With Quote
View Public Profile Visit malim's homepage!
 
 
Register now for full access!
Old 11-15-2010, 02:58 PM Re: Need help in asp coding
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,336
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The error suggest that your query is returning an empty recordset.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Need help in asp coding
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15788 seconds with 12 queries