<% ' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit. On Error Resume Next Session("FP_OldCodePage") = Session.CodePage Session("FP_OldLCID") = Session.LCID Session.CodePage = 1253 Err.Clear strErrorUrl = "" If Request.ServerVariables("REQUEST_METHOD") = "POST" Then If Request.Form("VTI-GROUP") = "2" Then Err.Clear Set fp_conn = Server.CreateObject("ADODB.Connection") FP_DumpError strErrorUrl, "Cannot create connection" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "Cannot create record set" fp_conn.Open Application("Sample_ConnectionString") FP_DumpError strErrorUrl, "Cannot open database" fp_rs.Open "Categories", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "Cannot open record set" fp_rs.AddNew FP_DumpError strErrorUrl, "Cannot add new record set to the database" Dim arFormFields2(1) Dim arFormDBFields2(1) Dim arFormValues2(1) arFormFields2(0) = "S1" arFormDBFields2(0) = "Description" arFormValues2(0) = Request("S1") FP_SaveFormFields fp_rs, arFormFields2, arFormDBFields2 fp_rs.Update FP_DumpError strErrorUrl, "Cannot update the database" fp_rs.Close fp_conn.Close FP_FormConfirmation "text/html; charset=windows-1253",_ "Form Confirmation",_ "Thank you for submitting the following information:",_ "categoryid.htm",_ "Return to the form." End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %> CategoryID
Make your own free website on Tripod.com
[an error occurred while processing this directive] <% if 0 then %> <% end if %> <% fp_sQry="SELECT * FROM Categories" fp_sDefault="" fp_sNoRecords="" fp_sDataConn="Sample" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=5 fp_fTableFormat=True fp_fMenuFormat=False fp_sMenuChoice="" fp_sMenuValue="" fp_iDisplayCols=3 fp_fCustomQuery=True BOTID=0 fp_iRegion=BOTID %> [an error occurred while processing this directive] [an error occurred while processing this directive]
CategoryID CategoryName Description
No records returned.
<%=FP_FieldVal(fp_rs,"CategoryID")%> <%=FP_FieldVal(fp_rs,"CategoryName")%> <%=FP_FieldVal(fp_rs,"Description")%>

[FrontPage vinavbar Component]

[an error occurred while processing this directive]