<% strId = request("Id") 'Response.Write strId ' Create a recordset object to store specific table information Set conn = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblCountries where Country_Id = '" + strId + "'" 'Set the recordset object equal to the SQL query string conn.Open SQL, objADO, 1, 3 strCountry = conn("country") strCountry2 = request("txtCountry") If Request.form <> "" Then if strCountry2 = "" then strWarningErrMsg = "
All fields are required." end if if strWarningErrMsg = "" then conn("Country") = strCountry2 'conn("Sizeof1") = strSizeOf1 'conn("Sizeof2") = strSizeOf2 'conn("TextUnder") = strTextUnder Conn.update Response.Redirect "ManageCountries.asp" end if end if %> <% if strWarningErrMsg <> "" then %> <% end if %>
EDIT COUNTRY
Error(s):<%= strwarningErrMsg %>


Edit the country below.
Country: <% if request.form <> "" then %> <% else %> <% end if %>