Author: prasannaprt | Posted on: 3/3/2009 11:50:13 PM | Views : 302

Hi all
Most of the times I'm facing this problem when button click event takes place.

The connection to the server was reset while the page was loading.


The network link was interrupted while negotiating a connection. Please try again.
Below is my code 
public partial class Admin_addmoviesongs : System.Web.UI.Page
{
    OdbcConnection con = new OdbcConnection(ConfigurationManager.ConnectionStrings["connstr"].ConnectionString);
    OdbcCommand cmd, cmd1, cmd2, cmd3;
    OdbcDataAdapter da;
    OdbcDataReader dr, dr1;
    DataSet ds = new DataSet();
   
    string Sid;
    int id;

    protected void Page_Load(object sender, EventArgs e)
    {
        con.Open(); Go to the complete details ...