%@ Language=VBScript %> <%Response.Buffer=True%> <% Updated = Request.QueryString("Updated") %> <% PageTitle = "SiteManager - Add Specification" %> <% PageID=256 %> <% Header %> <% Menu PageID %> <%' Main body of page goes here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <%USpecAdd%> <%' End Of Main body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <% Footer %> <% Sub USpecAdd ProdID = Request.QueryString("PID") error = "" OpenConnection1 If Request.Form("hidSave")="true" then If TRIM(Request.Form("txtSpec"))<>"" then txtSpec=dbReplace(Request.Form("txtSpec")) SQL="INSERT UP_Specs (nProductID, txtSpecification) VALUES (" & ProdID & ",'" & TRIM(txtSpec) & "')" DB.Execute(SQL) Response.Redirect("UPSpec_Add.asp?PID="&ProdID) Else error="A blank Specification cannot be saved!" End If End If SEL="SELECT * FROM UP_Specs WHERE nProductID =" & ProdID SET rs=Server.CreateObject("ADODB.Recordset") rs.Open SEL,DB,1,3 %>
<%= FormatDateTime(Date,1) %>
Current Specifications![]()
| | <%=DisPrepText(rs("txtSpecification"))%> | There are no Specifications entered for this product. | <% End If%>
<%=error%>
<% error="" End If %> <%End Sub %>