Forum Moderators: open
so say we code Union as codeone and then on insert we say
<%Replace(Request.Form("field"),"Union", "codeone")%>
and then reverse it to display the form data when needed...
<%=Replace(RS("field"), "codeone", "Union")%>
be easier to assign the above to variable names first if you are coding a few words...so
strField = Request.Form("field")
then
strField = Replace(strField, "union", "codeone")
strField = Replace(strField, "insert", "codetwo")
etc...
hope it helps...
Example
public function spGetClientPageList(clientid)
Set cmd = Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = connection
cmd.CommandText = "StoredProcedureName"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("@clientid", adInteger,adParamInput,,clientid)
Set RsRecordset = Server.CreateObject("ADODB.Recordset")
RsRecordset.CursorType = adOpenForwardOnly
RsRecordset.CursorLocation = adUseClient
RsRecordset.Open cmd
set spGetClientPageList = RsRecordset
set cmd = nothing
end function