<%@ Language=VBScript %> <%Response.Buffer=True%> <% PageTitle = "SiteManager - Edit Part Specification" %> <% PageID=400 %> <% Header %> <% Menu PageID %> <%' Main body of page goes here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <%partspecedit%> <%' End Of Main body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ %> <% Footer %> <% Sub partspecedit SpecID=Request.QueryString("SID") OpenConnection1 If Request.ServerVariables ("REQUEST_METHOD") = "POST" then If TRIM(Request.Form("txtSpecification"))<>"" then txtSpecification=dbReplace(Request.Form("txtSpecification")) nPartID=Request.Form("nPartID") SQL="UPDATE Part_Specs SET txtSpecification='"& txtSpecification & "' WHERE SpecID =" & SpecID DB.Execute(SQL) Response.Redirect("part_details.asp?PID=" & nPartID) Else error="A blank Specification cannot be saved!" End If Else SEL="SELECT nPartID,txtSpecification FROM Part_Specs WHERE SpecID=" & SpecID SET rs=Server.CreateObject("ADODB.Recordset") rs.Open SEL,DB,1,3 txtSpecification=rs("txtSpecification") nPartID=rs("nPartID") rs.Close End If %>

<%= FormatDateTime(Date,1) %>

Edit Specification


Specification:




<% If error<>"" then%>

<%=error%>

<% error="" End If End Sub %>