An interesting problem I've run into... I'm getting an AccessViolation Exception on a webpage, but I'm only getting this error when I click the Refresh button on the web browser. The page loads fine the first time around, and clicking Refresh technically isn't a PostBack. The code is relatively simple. It's just a method call that makes an ODBC connection to a MySQL database, and binds the data to a repeater...
Page_Load(...)
{
this.BindProfileDetails();
}
private void BindProfileDetails()
{
// create ODBC command, command text, DB connection etc....
// the sql is simple
myCommandText.Text = " SELECT * FROM UserProfiles WHERE UserID = ? LIMIT 0,1 ";
myCommand.ExecuteQuery();
// bind to repeater...
}
So, the page lo ...
Go to the complete details ...