 |
TAB inside input boxes
Barrington Haynes (5031 views)
TAB inside input boxes
When you want to insert a TAB character inside a textarea (or a textbox) in a web page, you press TAB key and the focus moves to another field in the page instead of a TAB character being inserted into the textarea. The problem is that TAB key is reserved for web pages to
|
 |
Resize VMware virtual disk
Barrington Haynes (4181 views)
Resize VMWare virtual disk
Here's a handy tip to resize your VMware virtual disk once it's run out of disk space.
Open up the run dialogue from the start menu (Start -> Run) or hold down the Windows key and press R. Type cmd and hit enter to open up the Command Prompt.
Assuming that your
|
 |
Referencing ConfigurationManager
Barrington Haynes (3246 views)
Referencing ConfigurationManager
When I started working in VS2005, I assumed that accessing your AppSettings would be the same as it was in VS2003. On compiling, the IDE served up the following warning.
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is ob
|
 |
Unsupported resolutions
Barrington Haynes (3246 views)
Unsupported resolutions
To add a resolution such as 1440x900 to your VMWare machine, edit its .vmx file and add the following lines to it.
svga.maxHeight = 900
svga.maxWidth = 1440
This helped solve a problem on our widescreen Dell laptops that we use for our development work.
|
 |
Date and Time Functions
Barrington Haynes (3221 views)
Date and Time Functions
Here's a handy reference for all of your JavaScript date/time needs.
||'''Function'''||'''Description'''||'''Returned Values'''||
||getDate(), getUTCDate()||Day of the month||1-31||
||getDay(), getUTCDay()||Day of the week (integer)||0-6||
||getFullYear(), getUTCFu
|
 |
SQL Server 2005 mdf file Query String
Barrington Haynes (3136 views)
SQL Server 2005 mdf file Query String
To add a SQL Server 2005 local database to one of your projects, create the connection as follows.
#c#conn = new SqlConnection(@"server=(local)\SQLExpress; AttachDbFileName=|DataDirectory|MyDatabase.mdf; Integrated Security=false; User Instance=false");
|
 |
Enabling HttpGet and HttpPost for web services
Barrington Haynes (2907 views)
Enabling HttpGet and HttpPost for web services
If your web application needs to accept incoming webservice method requests based on the '''GET''' and '''POST''' protocols then add the following lines to your ''web.config'' file.
#h#<configuration>
#h# <system.web>
#h# <webServices>
#h
|
 |
EasyHTTP
Barrington Haynes (2891 views)
EasyHTTP
EasyHTTP is a simple class which exposes the HTTP functionality of .NET as a number of simpler methods.
#c#using System;
#c#using System.Data;
#c#using System.Configuration;
#c#using System.Web;
#c#using System.Web.Security;
#c#using System.Web.UI;
#c#using System.Web.UI.WebCo
|
 |
Missing VS2005 Templates
Barrington Haynes (2435 views)
Missing VS2005 Templates
If you are having problems with missing VS2005 templates, then the following command run from the VS2005 command prompt may resolve your problems.
devenv /installvstemplates
|
 |
Prompting the user
Barrington Haynes (1569 views)
Prompting the user
There are three functions you can call which will force the user to acknowledge them. These are
* alert()
* confirm()
* prompt()
alert()
If you would like to present the user with a notice before allowing them to continue using your web page, you can display a
|
 |
CAPTCHA Server Control
Barrington Haynes (1079 views)
CAPTCHA Server Control
I have been searching Google for a way to quickly implement CAPTCHA on one of my web sites and came across this article at The Code Project.
http://www.codeproject.com/aspnet/CaptchaControl.asp
http://www.codeproject.com/aspnet/CaptchaControl/captcha-control.png
|