How to parse the files/folders in the client’s file system?
Here is a technique usable in IE Only var fso=new ActiveXObject('Scripting.FileSystemObject'); function ShowFilesIn(path) // path could be 'C:\Test' for example. { if(fso.FolderExists(path)) { ShowFiles(fso.GetFolder(path)); } } function ShowFiles(folderpath) { var objFso = new Enumerator(folderpath.Files); for(i=0;!objFso.atEnd();objFso.moveNext()) { alert(objFso.item().name); } }
How to create files on the client m/c using JavaScript?
Here is a technique usable in IE Only. var fso=new ActiveXObject('Scripting.FileSystemObject'); function WriteToFile() { var writeStream=fso.CreateTextFile('C:\TestFile.txt',true); writeStream.writeLine('This is a test file'); writeStream.close(); }
How to show Modal and Modeless dialog windows in Javascript?
When you show a modal dialog the window remains on top of other windows until the user explicitly closes it. window.showModalDialog('Test.html','dialogWidth:400px; dialogHeight:225px; status:no; center:yes'); When you show a modeless dialog the window remains on top of other windows, but you can still access the other windows. window.showModelessDialog('Test.html','dialogWidth:400px; dialogHeight:225px; status:no; center:yes');
Why do I get the error message ‘System.InvalidOperationException: It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a ….’
You can’t use MsgBox or MessageBox.Show in ASP.NET WebForm. You may use: VB.NET Response.Write('<script>alert(’Hello’);</script>') C# Response.Write('<script>alert(’Hello’);</script>') ;
Where can we download IIS
This is 1 of the most commonly asked question & since the release of Windows 2000, IIS is no longer available for download as it is part of the OS. IIS 4 was the last version of IIS that was available for download. Since the advent of Windows 2000, IIS has been part of the OS & is NOT available for download. OS Version – IIS Version Windows 2000 – IIS 5 WindowsXP Pro – IIS 5.1 Windows Server 2003 – IIS 6