View Single Post
Old 26-04-2005, 12:25 PM   #5 (permalink)
naeems
Registered User
 
naeems's Avatar
 
Join Date: Apr 2005
Posts: 4
OK, so I replaced the original code with the following:

Code:
OdbcConnection connection = new OdbcConnection(AppSettings.DbConn);
OdbcCommand command = connection.CreateCommand();
command.CommandText = "INSERT INTO Visitor(Referer, Browser) VALUES('";
command.CommandText += (Request.UrlReferrer == null ? "none" : Request.UrlReferrer.ToString());
command.CommandText += "', '" + Request.UserAgent + "');";
command.CommandType = CommandType.Text;
Now i'm getting "Operation must use an updateable query".
naeems is offline   Reply With Quote