Hi To all,

I am new to this site, and looking for any support you can give to me about my concern.

I want to know how can I call the java script function of show and hide progress bar image when needed.

I want to display the progress bar image running and doing some server side task like search and save, and then, after the task, i will hide the progress bar image right away.

This is my aspx

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

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Inside Update Panel"
onclick="Button1_Click" />

<script type="text/javascript" language="javascript">
var ModalProgress = '<%= ModalProgress.ClientID %>';
<script src="Script/UpdatePanelProgress.js" type="text/javascript"></script>

<asp:Panel ID="panelUpdateProgress" runat="server" >
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter ="0">
<img src="App_Themes/Themes/progressor.gif" style="vertical-align: middle" alt="Processing" />

<cc1:ModalPopupExtender ID="ModalProgress" runat="server" BackgroundCssClass ="modalBackground"
TargetControlID ="panelUpdateProgress" PopupControlID ="panelUpdateProgress">

Here is the javascript attached on the aspx

function beginReq(sender, args)

function endReq(sender, args)

here is my server side

protected void Button1_Click(object sender, EventArgs e)
I want to call the beginReq js - How?
I will do some searching .net script here
After the search, I want to call the endReq js - How?

Thanks and appreciate your help