Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1648)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )

Using out-process components under IIS4
Total Hit (2749) By default IIS 4 doesn't permit to use the Server.CreateObject command with an out-process ActiveX EXE component. To do so, you must manually create the AllowOutOfProcCmpts registry value under the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ASP\Parameters, and set its value to 1 ....Read More
Rating
A better way to query for a single node
Total Hit (2515) In the XmlNode class, that is the class that provides node functionality in an XMLDOM representation of an XML document, the SelectNodes (and the ancillary SelectSingleNode) method exploits the XPath query language to let you extract nodes based on logical conditions. The SelectNodes methods return ....Read More
Rating
Handle child XML nodes with care
Total Hit (2636) When you work with XML documents loaded into an XmlDocument class, you often need to examine the contents of child nodes. The XMLDOM programming interface purposedly provides the ChildNodes property. In the .NET XmlDocument class, ChildNodes returns an internal object of type XmlChildNodes. (The obj ....Read More
Rating
Formatting dates with VB.NET and ASP.NET
Total Hit (3192) «B»This tutorial covers formatting dates. To follow this tutorial, there are some basic requirements:«/B» A text editor or a visual web design program with HTML editing capabilities installed on your computer since this exercise will require hand coding. Examples include Notepad, Homesite, or ....Read More
Rating
Windows Installer Appears Every Time I Start an Application
Total Hit (4586) Intended For Windows XP Windows 2000 The Windows Installer is a global application used to install many Microsoft products, including Office 2000 and Office XP, and is even available to third-party developers to include with their programs. Unfortunately, it's fraught with bugs, one of ....Read More
Rating
Working with Text dtatype (using READTEXT, WRITETEXT and TEXTPTR functions)
Total Hit (3713) «B»A. Use TEXTPTR«/B» This example uses the TEXTPTR function to locate the image column logo associated with New Moon Books in the pub_info table of the pubs database. The text pointer is put into a local variable @ptrval. «Code LangId=6» USE pubs GO DECLARE @ptrval varbinary(16) SELECT @p ....Read More
Rating
CompareList - Compare an argument with a list of values
Total Hit (2374) «Code LangId=1» ' Return the position of the argument in a list of values ' or zero if the argument isn't included in the list ' It works for both regular values and for objects ' ' This handy function can often save you a lengthy Select Case ' statement or a complex series of If...ElseIf blo ....Read More
Rating
CompareValue - Check whether a value is in a list of values
Total Hit (1839) «Code LangId=1»' Compares a numeric or string value with a list of other values. ' Returns the 1-based index of the matching value, or zero if the ' value doesn't appear in the list. ' String comparisons are case-sensitive. ' ' This function can conveniently replace a Select Case or a list ' ....Read More
Rating
IsValidEmail - Validate an email address
Total Hit (2838) «Code LangId=1»' Validates an email address ' Returns True if valid, False if invalid ' ' Example: ' If IsValidEmail(Value:="x@y.com", MaxLength:=255, IsRequired:=True) then ... Function IsValidEmail(ByRef Value As String, Optional ByVal MaxLength As Long = _ 255, Optional ByVal IsRequi ....Read More
Rating
IsValidSSN - Check a Social Security Number value
Total Hit (3099) «Code LangId=1»' Validates attributes of the SSN ' Returns True if valid, False if invalid ' 'Example: ' If IsValidSSN(Value:="333-44-3333", IsRequired:=True) then ... Function IsValidSSN(ByRef Value As String, Optional ByVal IsRequired As Boolean _ = True) As Boolean On Error ....Read More
Rating
KeepInRange - Ensure that a value is in a given range
Total Hit (1560) «Code LangId=1»' Keep the first argument in the range [lowLimit, highLimit] ' If the value is adjusted, the fourth (optional) argument is set to True ' ' Note that value and limit arguments are variant, so you can use ' this routine with any type of data. Function KeepInRange(value As Varian ....Read More
Rating
NZ - Check whether a value is Null
Total Hit (1693) «Code LangId=1»' Check if a value is Null. If not it returns the value, ' otherwise it returns the ValIfNull argument, or zero/null string ' if the second argument is omitted ' ' This function is patterned after the Access function with the same name. Public Function NZ(CheckVar As Varian ....Read More
Rating
ProjectName - The name of the current project
Total Hit (1840) «Code LangId=1»' Returns the name of the current project ' The first time it's called it clears the error code ' Function ProjectName() As String Static result As String If Len(result) = 0 Then On Error Resume Next ' cause a dummy, harmless error Err.Raise 9 ....Read More
Rating
RunningAsExe - Determine whether the code is running in an EXE or DLL
Total Hit (1947) «Code LangId=1»Private Declare Function GetModuleFileName Lib "kernel32" Alias _ "GetModuleFileNameA" (ByVal hModule As Long, ByVal lpFileName As String, _ ByVal nSize As Long) As Long Function RunningAsEXE() As Boolean Dim filePath As String ' get the name of the curre ....Read More
Rating
Ask a Yes/no question and return a Boolean
Total Hit (2828) «Code LangId=2» ' Ask a Yes/no question ' returns True if the user replies "Yes" ' Example: MessageBox.Show(AskYesOrNo("Do you like me?", "ME", True)) Function AskYesOrNo(ByVal text As String, ByVal title As String, _ ByVal defaultAnswer As Boolean) As Boolean Dim defButton As Messa ....Read More
Rating
CompareList - Compare an argument with a list of values
Total Hit (2562) «Code LangId=2»' Return the position of the argument in a list of values ' or zero if the argument isn't included in the list ' It works for both regular values and for objects ' ' This handy function can often save you a lengthy Select Case ' statement or a complex series of If...ElseIf block ....Read More
Rating
Large or nested include files can affect ASP performance
Total Hit (5405) All include files appear to the ASP processor as belonging to the main ASP file, therefore they are read in memory and parsed as if they were physically pasted into the main ASP file. Therefore, while you should use include files for holding commonly used routines, you should be aware that the longe ....Read More
Rating
Let ASP determine whether cookies are enabled
Total Hit (3030) Most web sites heavily rely on client-side cookies. For example, ASP Sessions can work correctly only if the browser allows temporary cookies (that are not stored on disk). ASP doesn't provide any native method to understand whether cookies are enabled or not, but you can use the following code: ....Read More
Rating
Miscellaneous tips for improving ASP performance and robustness
Total Hit (5916) Here's a collection of quick-and-dirty tips for improve the performance and the robustness of your ASP applications: Use the Option Explicit directive to ensure that all variables are correctly declared and scoped. Mistyping a variable name is one of the most frequent causes of bugs inside ASP ....Read More
Rating
Ensure that server-side debugging is disabled in production sites
Total Hit (5152) Before going to production, you should ensure that the server-side script debugging is off for your ASP application. In fact, not only does server-side debugging slow down your application, it also forces all ASP request to be served by the same thread. In other words, you don't take advantage of II ....Read More
Rating
Quickly create HTML tables from an ADO Recordset
Total Hit (5763) The ADO Recordset object exposes the GetString method, which returns the values in the Recordset into a formatted string. Here's its syntax: res = GetString([StringFormat As StringFormatEnum = adClipString], _ [NumRows As Long = -1], [ColumnDelimeter As String], _ [RowDelimeter As Str ....Read More
Rating
Redirect the browser when the output has already been sent
Total Hit (3567) If from an ASP page you try to use Response.Redirect after having written anything to the browser, you'll get an error saying that the page's headers have already been written. To avoid this you should put the code that checks if the browser needs to be redirected to another page at the very beginni ....Read More
Rating
Split large HTML tables in smaller ones
Total Hit (2843) In general, a browser can't render an HTML table before the closing &/TABLE> tag is received. This means that the end user might wait for several seconds before a table result is displayed. The easiest way to have results appear as soon as they are available is subdivide a large HTML table into many ....Read More
Rating
The MapPath method slows down execution
Total Hit (5079) The Server.MapPath method slightly shows down the execution of your ASP scripts, because IIS has to access some internal variables. For this reason you should try to avoid it if possible. In other words, you should code absolute physical paths in your ASP code, instead of using virtual paths that yo ....Read More
Rating
Tricks with Server.MapPath
Total Hit (2929) The Server.MapPath method can be used to retrieve several interesting properties about the running ASP application, for example: «Code LangId=5» ' the current directory currDir = Server.MapPath(".") ' the parent directory parentDir = Server.MapPath("..") ' the application's root director ....Read More
Rating
Two ways to access ASP objects from within a component
Total Hit (8683) You can write ASP components that work under any version of IIS by adding a special public method, named OnStartPage, to the public class module of the ActiveX DLL project. This method is then called by IIS whenever a script instantiates an object through the Server.CreateObject command. This is the ....Read More
Rating
Understanding IIS Isolation Levels
Total Hit (3121) Internet Information Server introduced the notion "Isolation Level", which is also present in IIS4 under a different name. IIS5 supports three isolation levels, that you can set from the Home Directory tab of the site's Properties dialog: Low (IIS Process): ASP pages run in INetInfo.Exe, the mai ....Read More
Rating
Use Global.asa Metadata directive to access type libraries
Total Hit (2840) Most ADO statements require special constants to be passed as arguments to method calls, as in: «Code LangId=5» rs.Open "Authors", cn, adOpenForwardOnly, adLockReadOnly, adCmdTable The above line is surely more readable than: rs.Open "Authors", cn, 0, 1, 1 «/Code» but for the fir ....Read More
Rating
Use Response.IsClientConnected after long queries
Total Hit (2930) When you perform a complex and time-consuming query in your ASP program, you should periodically test whether the client is still connected, using the IsClientConnected method of the Response object, as in : «Code LangId=5» ' a lenghty query here ' ... ' check whether the client is connected be ....Read More
Rating
Use Server.HTMLEncode for strings stored in a database
Total Hit (2775) If your ASP pages display strings stored in database fields, you should always process the strings with the Server.HTMLEncode method, otherwise the string won't be displayed correctly in the user's browser if it contains characters that have a special meaning to HTML, such as the quote ("), the less ....Read More
Rating


(Page 111 of 133) 3968 Result(s) found  ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 ...

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.