We can detect if an ASP.Net form is valid from Javascript by using the following: if (typeof (Page_ClientValidate) == 'function') { Page_ClientValidate(); } if (Page_IsValid) { //form valid }
This post describes how detect for ASP.Net page postback from Javascript. I needed to know if it was the first launch of the page or a postback from Javascript. I did this by adding a hidden field to the page:...
This post describes how to prevent submitting an ASP.Net form twice. I stumbled across a rather neat and handy way to achieve this by the following: public void PreventMultipleClicks(Button button, Page page) { button.Attributes.Add("onclick", "if(Page_ClientValidate()){this.disabled=true;this.value='Processing Request...';" + page.ClientScript.GetPostBackEventReference(button, String.Empty).ToString() +...
I had an ASP.Net form whereby when a dropdown list entry was changed, it would cause a post back and different form elements would show or hide depending upon the value. What I noticed is that when a user had...
Description: The Filesystem Object cannot create a nested folder structure in a single invocation of the CreateFolder method. For example, if we tried executing the following code it would return a ‘Path Not Found’ error unless c:\alkanesolutions\ already exists: objFSO.CreateFolder “c:\alkanesolutions\test\” The function below resolves...
This is some VBScript code which generates a random GUID and copies it to the clipboard. It doesn’t copy the brackets intentionally, so that pasting the GUID can be used for multiple scenario’s such as MSI (ProductCodes and PackageCode etc,...
The following posts contains common App-V 5 Powershell commands. Assuming a package consisting of the following: Package Name: AlkaneSolutions AlkaneSolutions.appv AlkaneSolutions_DeploymentConfig.xml AlkaneSolutions_UserConfig.xml and a connection group consisting of: Package Name: AlkaneSolutions_ConnectionGroup AlkaneSolutions_ConnectionGroup.xml General Commands Import the App-V 5 module (so...
I was working on a package recently called Mead Co ScriptX 7.0.2, and was trying to make it work on Windows 7 x64. By default when you clicked the shortcut on the Start Menu it did nothing. However if I...