Hi, how can i show a WebDialogWindow but the page don't make a Postback, like a show or hide this modal with out a refresh.
Thanks for any help.
Hello Richardo,
You can show and hide the dialogwindow without postback on client side like below:
function Show() {
var dialog =$find("WebDialogWindow1");
dialog.show();
}
function hide() {
dialog.hide();
Please let me know if you have any further questions regarding this matter.
Attached sample demonstrates how you can hide and show Dialogwindow on a button click event.
Hi, thanks for your help, look thats is my code:
In my Page.aspx:
<asp:Button ID="BtnTareas" runat="server" Text="Asignar Tareas" CssClass="btn-primary" Height="40px" Width="168px" OnClientClick="LLamarModal();" />
<script type="text/javascript">
function LLamarModal() { var ventana = $find('<%= WdialogoTareas.ClientID %>');
ventana.show(); }
</script>
Ok,thats was great,, thanks for your help.
Hello Ricardo,
You are using asp.net server side button, that is why page is posting back after dialog is opened. You would have to either use an input button as I did in my sample or return false like <asp:button runat="server".... OnClientClick="myfunction(); return false;" />