Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i am redirect to another page,the connection get time out,this is happening for some pages,not for all,and also this is happning only on live,

and that pages are working properly on localhost..means it is not getting time out,
please help me,


C#
protected void Page_Load(object sender, EventArgs e)
       {
           cbdiadtes.InputAttributes.Add("disabled", "disabled");
           if (cbdiadtes.Checked)
           {
               TabPanelTreatmentScheduled.Enabled = true;
           }
           else
               TabPanelTreatmentScheduled.Enabled = false;
           imgbtnaddmedicine.Visible = true;
           BtnUpdate.Visible = false;
           ddlmedicinename.Attributes.Add("style", "display:block");
           txtmediciname.Attributes.Add("style", "display:none");
           Biomade.Visible = false;
           ImgAdd.Visible = false;
           witheditortable.Visible = false;
         //  StockAlertGrid.Visible = false;
           btnmedicines.Enabled = false;
           if (!IsPostBack)
           {

              // BindMedicine();

               bindgrddoctdashbord();
               bindalertgrid();
               bindstockgrid();

              // clearall();

           }

           panelbloodsugar.Visible = false;
           panelbloodpressure.Visible = false;
           panelweight.Visible = false;
           defaultcss();
           chartformating();
           AddRow();
          // rb_WithEditor.Attributes.Add("onclick", "javascript:return visible()");
          // rb_WithoutEditor.Attributes.Add("onclick", "javascript:return visible()");


       }




C#
protected void Page_Load(object sender, EventArgs e)
      {
          if (!IsPostBack)
          {
              lbtnprivs.Enabled = false;
              bindgrid();
              GetRecords();
              fillpatientdetails();
              bindalertgrid();
              bindstockgrid();
          }
          else
          {
              PatientRecordTable.Rows.Clear();
              ShowRecord();
          }


      }



this are the page load of 2 aspx files where this problems occurs.
Posted
Updated 12-Mar-13 1:36am
v2
Comments
Manfred Rudolf Bihy 12-Mar-13 7:14am    
What connection are you talking about?
Is it the database connection?

Please elaborate!
AshishChaudha 12-Mar-13 7:19am    
What code you have written in page load???
ZurdoDev 12-Mar-13 7:19am    
There are many types of timeouts in the web. HTML, database, Session, etc. Can you be more clear?
Kolli Hari Chowdary 12-Mar-13 7:23am    
hi ryanb31
Session time out?
ujali 12-Mar-13 7:25am    
yes it is session time out

1 solution

If you are using web.config to set the session timeout
use below code(means 9*60)
XML
<system.web>
        <sessionstate timeout="540" /></system.web>

If you are using IIS set the above value in that.
 
Share this answer
 
Comments
fjdiewornncalwe 12-Mar-13 9:18am    
My 1. OP says nothing about session here. It is a connection that is timing out.
ujali 12-Mar-13 9:59am    
still the problem is not solved

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900