link to record |
6/9/2003 1:15:17 PM |
ASPRunnerPro General questions | |
author
Is there any way to link to the edit page and pull up the specific record from the hyperlink I use instead of having the list page pass the var. I want somehting to the effect of. www.myserver.com/edit.asp?ID=1 to pull up the page for editing. |
|
![]() |
Sergey Kornilov admin 6/9/2003 |
Hi, |
|
500038 6/9/2003 |
i tried using this |
![]() |
Sergey Kornilov admin 6/9/2003 |
Hi, if Request.form("action")="add" or Request.form("action")="added" then strSQL="select * from " & strTableName & " where 1<0" Response.Write "<h1>Add new record</h1>" else strSQL="select " & AddWrappers(strKeyField) & ... & " from " & strTableName & " where " & AddWrappers(strKeyField) & "=" & strQuote & Replace(request.form("editid") ,"'","''") & strQuote Response.Write "<h1>Edit record [" & strKeyField & ": " & request.form("editid") & "]</h1>" end if
if Request.QueryString("EditID")<>"" then strEditID = Request.QueryString("EditID") else strEditID = Request.Form("EditID") end if if Request.form("action")="add" or Request.form("action")="added" then strSQL="select * from " & strTableName & " where 1<0" Response.Write "<h1>Add new record</h1>" else strSQL="select " & AddWrappers(strKeyField) & ... & " from " & strTableName & " where " & AddWrappers(strKeyField) & "=" & strQuote & Replace(strEditID,"'","''") & strQuote Response.Write "<h1>Edit record [" & strKeyField & ": " & strEditID & "]</h1>" end if
|
J
|
JAGwebdev 6/10/2003 |
ok made all the nec. changes and now it pulls up the record just fine but when I press the submit button to make the changes I get the error: |
![]() |
Sergey Kornilov admin 6/10/2003 |
Hi, <%
|
J
|
JAGwebdev 6/25/2003 |
Now it does not save the record after I have entered the data. It just refreshes the edit page and does not give me a confirmation of this record has been saved. |