the client side does not work
I am insert values in the data base. the values get inserted in the data base, But the client side doesnot work. When I enter values in three text boxes and hit Save button. The value gets inserted in the data base , but the text boxes disappear and values also disappear. Then I try to run the browser, values are not there, but the values are in database. Also If I hit save say three times, same values gets inserted three times, it should not happen, only once it should be inserted, regardless of how many times the user hits update
if bAdd="1" then 'add the record
rsInsert.AddNew
strDateFromNew = strNull(Request.Form("txtDateFromNew"),false)
strDateToNew = strNull(Request.Form("txtDateToNew"),false)
intHourlyRateNew = strNull(Request.Form("txtHourlyRateNew"),true)
rsInsert.Fields("dtRateFrom").Value = strDateFromNew
rsInsert.Fields("dtRateTo").Value = strDateToNew
rsInsert.Fields("decHourlyRate").Value=intHourlyRa teNew
rsInsert.Update
end if
|