Object cannot be cast from DBNull to other types.mscorlib at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) at MySql.Data.MySqlClient.Driver.LoadCharacterSets(MySqlConnection connection) at MySql.Data.MySqlClient.Driver.Configure(MySqlConnection connection) at MySql.Data.MySqlClient.MySqlConnection.Open() at Webitsolution.offers.Page_Load(Object sender, EventArgs e) in d:\Inetpub\vhosts\webitsolution.in\httpdocs\offers.aspx.cs:line 43Object cannot be cast from DBNull to other types.