An assortment of ASP.NET, VB.NET, web development, and Windows XP tips-n-tricks.
Wednesday, December 15, 2004
VS.NET: Clean Web Form Templates
For a very good article on this, reference Milan Negovan's article, "Remastering Web Form Templates". His article points-out many of the frustrations of the VS.NET web form designer, and provides a link to a tool he created that can help you generate clean web form templates.
However, I find that going to his web site to use his tool wasn't likely going to happen (I'm too lazy!)... I wanted to know if I could modify the default VS.NET template so it always creates exactly what I want. I found the default ASPX web form template (VB) here:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vb7\VBWizards\WebForm\Templates\1033\WebForm.aspx
I removed the default VS.NET specific meta tags and added my own, such as a copyright, author, etc. Need some help coming-up with the default META tags? Try AnyBrowser.com.
Tuesday, December 14, 2004
Sometimes Post-Back Isn't an Option
To solve this problem, I did a little research and found-out a nifty way to post form information from one ASP.NET page to another:
Server.Transfer("WebPostAway2.aspx", true)Although using Server.Transfer isn't new to me, I never knew about the second parameter, preserveForm! Setting preserveForm to True keeps all the post data intact as it's passed to the next ASPX page.
Friday, December 10, 2004
No More Ugly Submit Buttons
[CSS]For details on the original article: WebReference.com: Stylish Buttons
input.btn{
color:#050;
font-family:'trebuchet ms',helvetica,sans-serif;
font-size:84%;
font-weight:bold;
background-color:#fed;
border:1px solid;
border-top-color:#696;
border-left-color:#696;
border-right-color:#363;
border-bottom-color:#363;
filter:progid:DXImageTransform.Microsoft.Gradient
(GradientType=0,StartColorStr='#ffffffff',EndColorStr='#ffeeddaa');}
Thursday, December 09, 2004
Windows XP: Get That Crap Out of My System Tray!
- Install a shortcut in 1,700 places on my PC?
- Run at startup?
- Create a useless app that runs in my PC's system tray with no option to disable this feature?
As of recently, I was able to speed-up the boot-up time of PC a little by removing many of the links to the programs that thought they needed to run at start-up (and I didn't.) The hard way to do this is to go to Start > Run > Type in "MSCONFIG" > Startup Tab. From there, you can try and decifer what it is that is running on your PC when it boots-up. If you find some programs you think should not be run at startup, you can use the RegEdit tool to remove the entry in the Registry that starts that app.
However, there is an easier way (of course!) System Internals offers a free application called AutoRuns that is really easy to use, and makes removing unwanted start-up apps a breeze! Once the app runs, it lists all the applications that choose to run on start-up, and shows you who manufacturered the application. By right-clicking on the application, you can delete it or go directly to the spot in the Registry where the reference is located.
Warning: It is quite easy to remove programs your PC actually needs at start-up using either of the above methods! Do not even bother using this tool if you aren't a geek! ;)
Wednesday, December 08, 2004
Windows XP: No More Error Reporting!
To turn Error Reporting "Off":
- Right-click on the My Computer icon
- Select Properties from the menu
- Select the Advanced tab
- Click the Error Reporting button
- Select the Disable Error Reporting radio button
- Click OK and you're a happy-camper!