is it possible to show an ovelay div with loading image inside , during postbacks not callbacks?
i had an ovelay=OffDiv (modal) div during callbacks and it was working perfectly…
for some reason in one of my page , ajax mode made some problems , so i forced to use postback instead.
now i want to show that Overlay div during postbacks…
plz look at the below code for understanding my meaning:
(but this codes did not prepare my purpose , why?)
protected void radcbImagesGroup_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScriptOffDivOn", "OffDivOn();" , true);
Session["SelectedImageGroup_ID"] = e.Value;
if (e.Value == "0")
{
lblTitleOfImages_Loc.Text = "some stuff";
lblTitleOfImages_LocName.Text = "some stuff";
RadRotator.Items.Clear();
RadRotator.DataBind();
}
else
{
lblTitleOfImages_Loc.Text = "some stuff";
lblTitleOfImages_LocName.Text = e.Text;
RadRotator.Items.Clear();
RadRotator.DataBind();
}
System.Threading.Thread.Sleep(10000);
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScriptOffDivOff", "OffDivOff();" , true);
}
is it possible to this job during postbacks?
thanks for attention
Once the page has begun the postback, the client will not receive any data from the server until the server code is complete. Your commands to OffDivOn() and OffDivOff() are not getting sent to the client. Your options are: