am unable to write into the table of MS access file in godaddy(works in localhost).....is their any settings that needs to be changed???
Dim MySQL As String = "Insert into mainregistration (name,usernamee,passwordd,college,department,yearr,emailid,contactno) " & _
"Values (@name,@usernamee,@passwordd,@college,@department,@yearr,@emailid,@contactno)"
Dim MyConn As New OleDbConnection(strConn)
Dim Cmd As New OleDbCommand(MySQL, MyConn)
With Cmd.Parameters
.Add(New OleDbParameter("@name", name.Text))
.Add(New OleDbParameter("@usernamee", username.Text))
.Add(New OleDbParameter("@passwordd", password.Text))
.Add(New OleDbParameter("@college", college.SelectedValue))
.Add(New OleDbParameter("@department", department.SelectedValue))
.Add(New OleDbParameter("@yearr", year.SelectedValue))
.Add(New OleDbParameter("@emailid", emailid.Text))
.Add(New OleDbParameter("@contactno", contactno.Text))
End With
MyConn.Open()
Cmd.ExecuteNonQuery()
MyConn.Close()
Operation must use an updateable query.
Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
Source Error:
Line 34: Line 35: MyConn.Open() Line 36: Cmd.ExecuteNonQuery() Line 37: MyConn.Close() Line 38: |
This is the error i get....need help....thanx