Creating a "table" for User Edits
Hello,
I have copied some code as an an example of what I am attempting to do. I
have a list of Towns and other information that a user has coverage of.
I have figured out how to populate the page from the records in the database,
but I cannot figure out how to send the record to another page that updates
or deletes that record. I am naming the HTML Input Text control using the
count of each record. Below is an example I am using to populate the page.
Thanks,
<tr>
<% if rsTowns.eof then
Response.Write("No Records found for Towns Covered")
else
cntTowns = 0
do while not rsTowns.eof %>
<td width="210"><input type="text" name="txtTownCovered<%= Cstr(cntTowns)%>"
size="35" maxlength="35" value="<%Response.Write rsTowns("City")%>">
</td>
<td width="45"><input type="text" name="txtStateCovered<%= Cstr(cntTowns)%>"
size="2" maxlength="2" value="<%Response.Write rsTowns("State")%>">
</td>
<td width="81"><input type="text" name="txtZipCovered<%= Cstr(cntTowns)%>"
size="15" maxlength="15" value="<%Response.Write rsTowns("Zip")%>"></td>
<td>
******** Not Sure How to compete section **********************
<A HREF="UpdData.asp?Type=Update&Tn=<%Request.form("txtTownCovered1")%>.value&St=txtStateCovered<%=
Cstr(cntTowns)%>.value&Zp=txtZipCovered<%= Cstr(cntTowns)%>">Update</A>
<A HREF=>Delete</A>
</td>
</tr>
***************************************************************
[1685 byte] By [
Ben] at [2007-11-9 15:35:40]

# 1 Re: Creating a "table" for User Edits
HI,
YOU CAN USE SESSION VARAIBLE TO SET THE VALUE AND CAN USE LATER BUT STILL
I AM NOT GETTING YOUR UPDATE AND DELETE CONCEPT.CAN YOU ELOBRATE AND WRITE.
"Ben" <bcummins@snsc.com> wrote:
>
>Hello,
>
>I have copied some code as an an example of what I am attempting to do.
I
>have a list of Towns and other information that a user has coverage of.
>I have figured out how to populate the page from the records in the database,
>but I cannot figure out how to send the record to another page that updates
>or deletes that record. I am naming the HTML Input Text control using the
>count of each record. Below is an example I am using to populate the page.
>
>Thanks,
>
><tr>
> <% if rsTowns.eof then
> Response.Write("No Records found for Towns Covered")
> else
> cntTowns = 0
> do while not rsTowns.eof %>
> <td width="210"><input type="text" name="txtTownCovered<%= Cstr(cntTowns)%>"
>size="35" maxlength="35" value="<%Response.Write rsTowns("City")%>">
> </td>
> <td width="45"><input type="text" name="txtStateCovered<%= Cstr(cntTowns)%>"
>size="2" maxlength="2" value="<%Response.Write rsTowns("State")%>">
></td>
> <td width="81"><input type="text" name="txtZipCovered<%= Cstr(cntTowns)%>"
>size="15" maxlength="15" value="<%Response.Write rsTowns("Zip")%>"></td>
> <td>
>
>******** Not Sure How to compete section **********************
> <A HREF="UpdData.asp?Type=Update&Tn=<%Request.form("txtTownCovered1")%>.value&St=txtStateCovered<%=
>Cstr(cntTowns)%>.value&Zp=txtZipCovered<%= Cstr(cntTowns)%>">Update</A>
> <A HREF=>Delete</A>
> </td>
> </tr>
>
>***************************************************************
PIN2 at 2007-11-11 23:41:24 >
