I am working on a Sharepoint application Page to Uplaod a File to a document libary. The Upload can take a bit of time so I want to display the waiting for it Dialog. I check if all requiered fields are filled in my Upload Button Click Method and then i want show the Dialog. I just need a way to call a javascript fucntion within my Code behind. I tried a :
<input type="hidden" id="hidden" runat="server" value="" onchange="ManageWaitingDialog()" />
and
if (fieldsfilled)
{
hidden.Value = "SHOW";
}
The event does not fire when I change the value of my input. Any Help is Welcome thanks.
SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15);
function is a javascript function the Button Click event is Server Side C# CodeOnClientClick
event which will let you run JavaScript.