Flush problem with IE6

Discussion in 'ASP .Net' started by rocco.padovani@gmail.com, Jul 27, 2007.

  1. Guest

    Hello,
    I have a problem with a Response.Flush code only with some versions
    of
    IE6.
    This is my code:

    private void Page_Load(object sender, System.EventArgs
    e)
    {
    Response.Cache.SetExpires( DateTime.Now );
    Response.CacheControl = "NO-CACHE";
    Response.AddHeader( "PRAGMA", "NO-CACHE" );

    Response.Clear();
    string str ="<center><div id='loadingDiv'
    name='loadingDiv'
    class='loadingDataHidden' style='width:400px'><br/><br/><br/><br/
    ><br/



    ><br/><div style='text-align:center;padding:4 4 4 4;font-family:



    Verdana, Arial, Helvetica, sans-serif;font-size:8pt;font-
    weight:bold;color:#666666;border:none;background-color:#F2F8EA;'><img
    src='animazione_freccia.gif' width='30' height='30' align='absMiddle'
    border='0' /

    >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n­bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Caricamento



    dati&nbsp;in corso, attendere...</div></div></center>";
    Response.Write(str);
    Response.Flush();


    int delatTime;
    try
    {
    delatTime =
    Convert.ToInt32(Request.QueryString["TIME"].ToString());
    }
    catch{
    delatTime = 0;
    }
    System.Threading.Thread.Sleep(delatTime);


    Response.Write("MY DATA.....");

    }

    This code works fine with IE5.5, IE7, IE6 ver
    6.0.2900.2180.xpsp_sp2_gdr.061219-0316 (ITA) but not with IE6 ver
    6.0.2900.2180.xpsp_sp2_gdr.050301-1519 (EN).

    Can somebody help me?
    Thanks
    Rocco
     
    , Jul 27, 2007
    #1
    1. Advertising

  2. We might be able to help but we do not know what kind of problem you have.
    Please be more specific.

    George.


    <> wrote in message
    news:...
    Hello,
    I have a problem with a Response.Flush code only with some versions
    of
    IE6.
    This is my code:

    private void Page_Load(object sender, System.EventArgs
    e)
    {
    Response.Cache.SetExpires( DateTime.Now );
    Response.CacheControl = "NO-CACHE";
    Response.AddHeader( "PRAGMA", "NO-CACHE" );

    Response.Clear();
    string str ="<center><div id='loadingDiv'
    name='loadingDiv'
    class='loadingDataHidden' style='width:400px'><br/><br/><br/><br/
    ><br/



    ><br/><div style='text-align:center;padding:4 4 4 4;font-family:



    Verdana, Arial, Helvetica, sans-serif;font-size:8pt;font-
    weight:bold;color:#666666;border:none;background-color:#F2F8EA;'><img
    src='animazione_freccia.gif' width='30' height='30' align='absMiddle'
    border='0' /

    >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n­bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Caricamento



    dati&nbsp;in corso, attendere...</div></div></center>";
    Response.Write(str);
    Response.Flush();


    int delatTime;
    try
    {
    delatTime =
    Convert.ToInt32(Request.QueryString["TIME"].ToString());
    }
    catch{
    delatTime = 0;
    }
    System.Threading.Thread.Sleep(delatTime);


    Response.Write("MY DATA.....");

    }

    This code works fine with IE5.5, IE7, IE6 ver
    6.0.2900.2180.xpsp_sp2_gdr.061219-0316 (ITA) but not with IE6 ver
    6.0.2900.2180.xpsp_sp2_gdr.050301-1519 (EN).

    Can somebody help me?
    Thanks
    Rocco
     
    George Ter-Saakov, Jul 27, 2007
    #2
    1. Advertising

  3. Guest

    On 27 Lug, 14:21, "George Ter-Saakov" <> wrote:
    > We might be able to help but we do not know what kind of problem you have.
    > Please be more specific.
    >
    > George.
    >
    > <> wrote in message
    >
    > news:...
    > Hello,
    > I have a problem with a Response.Flush code only with some versions
    > of
    > IE6.
    > This is my code:
    >
    > private void Page_Load(object sender, System.EventArgs
    > e)
    > {
    > Response.Cache.SetExpires( DateTime.Now );
    > Response.CacheControl = "NO-CACHE";
    > Response.AddHeader( "PRAGMA", "NO-CACHE" );
    >
    > Response.Clear();
    > string str ="<center><div id='loadingDiv'
    > name='loadingDiv'
    > class='loadingDataHidden' style='width:400px'><br/><br/><br/><br/
    >
    > ><br/
    > ><br/><div style='text-align:center;padding:4 4 4 4;font-family:

    >
    > Verdana, Arial, Helvetica, sans-serif;font-size:8pt;font-
    > weight:bold;color:#666666;border:none;background-color:#F2F8EA;'><img
    > src='animazione_freccia.gif' width='30' height='30' align='absMiddle'
    > border='0' /
    >
    > >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n­­bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Caricamento

    >
    > dati&nbsp;in corso, attendere...</div></div></center>";
    > Response.Write(str);
    > Response.Flush();
    >
    > int delatTime;
    > try
    > {
    > delatTime =
    > Convert.ToInt32(Request.QueryString["TIME"].ToString());
    > }
    > catch{
    > delatTime = 0;
    > }
    > System.Threading.Thread.Sleep(delatTime);
    >
    > Response.Write("MY DATA.....");
    >
    > }
    >
    > This code works fine with IE5.5, IE7, IE6 ver
    > 6.0.2900.2180.xpsp_sp2_gdr.061219-0316 (ITA) but not with IE6 ver
    > 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 (EN).
    >
    > Can somebody help me?
    > Thanks
    > Rocco


    With the code above the borwser (some versions of EXPLORER) correctly
    shows me FIRST the "'loadingDiv'" div with a "please wait.. loading
    data..." message, and THEN shows the data requested..
    With other versions of IE, instead, the server doesn't flush the
    "loadingDiv" and shows the div and the data all together after a long
    time, without doing the flush correctly.
    I don't understand if it's a server or a client problem, or a problem
    of communication between the two..
    If you want, you can test the code and call the page with the url
    "http://your_server/pageName.aspx?TIME=3000".
    Thank you
    Rocco
     
    , Jul 30, 2007
    #3
  4. Guest

    On 27 Lug, 14:21, "George Ter-Saakov" <> wrote:
    > We might be able to help but we do not know what kind of problem you have.
    > Please be more specific.
    >
    > George.
    >
    > <> wrote in message
    >
    > news:...
    > Hello,
    > I have a problem with a Response.Flush code only with some versions
    > of
    > IE6.
    > This is my code:
    >
    > private void Page_Load(object sender, System.EventArgs
    > e)
    > {
    > Response.Cache.SetExpires( DateTime.Now );
    > Response.CacheControl = "NO-CACHE";
    > Response.AddHeader( "PRAGMA", "NO-CACHE" );
    >
    > Response.Clear();
    > string str ="<center><div id='loadingDiv'
    > name='loadingDiv'
    > class='loadingDataHidden' style='width:400px'><br/><br/><br/><br/
    >
    > ><br/
    > ><br/><div style='text-align:center;padding:4 4 4 4;font-family:

    >
    > Verdana, Arial, Helvetica, sans-serif;font-size:8pt;font-
    > weight:bold;color:#666666;border:none;background-color:#F2F8EA;'><img
    > src='animazione_freccia.gif' width='30' height='30' align='absMiddle'
    > border='0' /
    >
    > >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n­­bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Caricamento

    >
    > dati&nbsp;in corso, attendere...</div></div></center>";
    > Response.Write(str);
    > Response.Flush();
    >
    > int delatTime;
    > try
    > {
    > delatTime =
    > Convert.ToInt32(Request.QueryString["TIME"].ToString());
    > }
    > catch{
    > delatTime = 0;
    > }
    > System.Threading.Thread.Sleep(delatTime);
    >
    > Response.Write("MY DATA.....");
    >
    > }
    >
    > This code works fine with IE5.5, IE7, IE6 ver
    > 6.0.2900.2180.xpsp_sp2_gdr.061219-0316 (EN) but not with IE6 ver
    > 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 (ITA).
    >
    > Can somebody help me?
    > Thanks
    > Rocco


    With the code above the borwser (some versions of EXPLORER: IE5.5,IE7.
    IE6 v.6.0.2900.2180.xpsp_sp2_gdr.061219-0316) correctly shows me FIRST
    the "'loadingDiv'" div with a "please wait.. loading
    data..." message, and THEN shows the data requested..
    With other versions of IE (IE 6 v.6.0.2900.2180.xpsp_sp2_rtm.
    040803-2158 ITA), instead, the server doesn't flush the
    "loadingDiv" and shows the div and the data all together after a long
    time, without doing the flush correctly.
    I don't understand if it's a server or a client problem, or a problem
    of communication between the two..
    If you want, you can test the code and call the page with the url
    "http://your_server/pageName.aspx?TIME=3000".
    Thank you
    Rocco
     
    , Jul 30, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ivor O'Connor
    Replies:
    4
    Views:
    858
    Isofarro
    Nov 25, 2003
  2. Peter Mount
    Replies:
    4
    Views:
    966
    Peter Mount
    Jan 31, 2006
  3. Replies:
    3
    Views:
    711
    Andrew Morton
    Jul 31, 2007
  4. Pugi!
    Replies:
    0
    Views:
    243
    Pugi!
    Feb 5, 2007
  5. timothytoe
    Replies:
    4
    Views:
    159
Loading...

Share This Page