Thursday, April 12, 2007

DataBinding to a Web Service in ASP.NET 2.0

DataBinding to a Web Service in ASP.NET 2.0

This video shows you how to bind a datagrid to a web service. The web service returns an object of a predefined dataset type, along with the relevant table adaptors.This is pretty good, and would work well for static tables. My biggest report, however, is dynamic, and I don't know of a way to make a typed dataset for a dynamically generated set of data where the column names change depending on the criteria.

Wednesday, April 11, 2007

Creating a password protected ZIP file using Windows XP functionality

Today I had to show someone how to create a password protected .zip file, and they didn't have WinZip... So I thought I'd see if you could do it with basic XP functionality, and sure enough, you can. Here are the instructions.

1. Move all of the files you want to put into the Zip file to a single folder.

2. Select the files you want to zip. You can use CTRL-A to select all files or individually select them by holding down the CTRL key while you click on them.

3. Right click on one of the selected files and then left click “Send To” and then “Compressed (zipped) folder”

4. This will create a .zip file with the files you created. The file will take on the name of the first file in the zip file.

5. You can rename the file by right clicking on it and then left clicking “Rename.” Change the name, making sure to keep the “.zip” at the end if you see it there when you start.

6. To password protect the file, double click the zip file. This will show you the files it contains.

7. Click the File menu, and then click Add a Password.

8. Type in the password you want to use, paying attention to the setting of your CAPS-Lock key. The password is case sensitive. Click OK.

9. That’s it! Your zip file is complete. To email the zip file, go back/up one level so that you can see the zipped file. Right click on it’s icon, click Send To and then click E-Mail Recipient.

10. Your password protected zip file will now be added as an attachment to an email that you can send out over the Internet.