%@ Language=VBScript %> <%Response.Buffer=True%> <% Updated = Request.QueryString("Updated") %> <% PageTitle = "SiteManager - Add Specification" %> <% PageID=401 %> <% Header %> <% Menu PageID %> <%' Main body of page goes here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <%partspecadd%> <%' End Of Main body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <% Footer %> <% Sub partspecadd PartID = Request.QueryString("PID") error = "" OpenConnection1 If Request.Form("hidSave")="true" then If TRIM(Request.Form("txtSpec"))<>"" then txtSpec=dbReplace(Request.Form("txtSpec")) SQL="INSERT Part_Specs (nPartID, txtSpecification) VALUES (" & PartID & ",'" & TRIM(txtSpec) & "')" DB.Execute(SQL) Response.Redirect("partspec_add.asp?PID=" & PartID) Else error="A blank Specification cannot be saved!" End If End If SEL="SELECT * FROM Part_Specs WHERE nPartID =" & PartID 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 Part. | <% End If%>
<%=error%>
<% error="" End If %> <%End Sub %>