Disabling Client-Side Validation on cancel button's click
< asp: Button id="CancelButton" runat="server" Text="Cancel" EnableClientScript="False" / >
Disabling Client-Side and Server-Side Validation on cancel button's click
< asp :Button id="CancelButton" runat="server" Text="Cancel" CausesValidation="False" / >
Wednesday, April 22, 2009
Saturday, April 11, 2009
Open Model Popup Window In JavaScript
function OpenModelPopupWindow(Path,Height,Width)
{
var ParmA = '';
var MyArgs = new Array(ParmA);
var w = screen.availWidth;
var h = screen.availHeight;
var Wdth = (w-Width);
var Hgt = (h-Height);
var WinSettings = "help:no;center:yes;resizable:no;dialogHeight:" + Hgt +"px;dialogWidth:" + Wdth + "px;status=no;"
window.showModalDialog(Path,MyArgs, WinSettings );
}
{
var ParmA = '';
var MyArgs = new Array(ParmA);
var w = screen.availWidth;
var h = screen.availHeight;
var Wdth = (w-Width);
var Hgt = (h-Height);
var WinSettings = "help:no;center:yes;resizable:no;dialogHeight:" + Hgt +"px;dialogWidth:" + Wdth + "px;status=no;"
window.showModalDialog(Path,MyArgs, WinSettings );
}
Subscribe to:
Posts (Atom)