ASP.NET - in asp.net how i use giff image ..when i uplod image in ajex panel giff image is show...

Asked By Sohaib Jamil on 24-Sep-12 12:27 PM
in asp.net how i use giff image ..when i upload image in file uploader then in ajex panel giff image is show for a moment and then redirect to default.aspx. thanks ...
Jitendra Faye replied to Sohaib Jamil on 25-Sep-12 12:16 AM
For this you can use UpdateProgress.

Use UpdateProgress like this-

<body>

    <form id="form1" runat="server">

      <asp:ScriptManager ID="ScriptManager1" runat="server" />

      <asp:UpdateProgress runat="server" id="PageUpdateProgress">

        <ProgressTemplate>

          Loading...

        </ProgressTemplate>

      </asp:UpdateProgress>

      <asp:UpdatePanel runat="server" id="Panel">

        <ContentTemplate>

          <asp:Button runat="server" id="UpdateButton" onclick="UpdateButton_Click" text="Update" />

        </ContentTemplate>

      </asp:UpdatePanel>

    </form>

</body>

The following method should be added to your CodeBehind file:

protected void UpdateButton_Click(object sender, EventArgs e)

{

    System.Threading.Thread.Sleep(5000);

}

 
Hope this will help you.