Categories
ASP.NET

Where is ASP.NET 3.5 in IIS?

.NET 3.5 is not a stand alone framework like v2.0 or v1.1 . It is just an extension of the 2.0 framework. See explanation

Categories
Network

PORT NUMBERS & ASSIGNMENTS

The port numbers are divided into three ranges: the Well Known Ports, the Registered Ports, and the Dynamic and/or Private Ports. The range for assigned ports managed by the IANA is 0-1023. Port Assignments can be found here: http://www.iana.org/assignments/port-numbers

Categories
CSS

How to keep footers at the bottom of the page with CSS

http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page This is a site I found that used strictly table-less HTML and CSS to position the footer at the bottom of the page even when there’s littile or no content. I tested it in IE6 & 7, Firefox, and Opera and it worked fine in all 4 browsers.

Categories
ASP.NET SQL Server

Securing .NET application and data

.NET Data Access Architecture Guide Lock Down IIS and SQL Server Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication Planning for Extranet or Internet Deployment Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication

Categories
SQL

Oracle – Start With…Connect By

http://halisway.blogspot.com/2006/04/sql-connect-by.html http://www.java2s.com/Code/Oracle/Hierarchical-Query/HierarchicalQueriesSTARTWITHandCONNECTBYPRIORclauses.htm

Categories
FTP

Calculate Passive FTP Data Port

When communicating over FTP, two ports are used, one for commands and the other for data. Here’s how to calculate the ftp data port: 227 Entering Passive Mode (10,10,1,11,19,15) 10,10,1,11 is the server’s TCP/IP address. 19,15 is the port that the server is telling the client to use during the data transfer. To calculate this […]

Categories
PHP

PHP Class – OOP

A PHP Class can be used for several things, but at the most basic level, you’ll use classes to “organize and deal with like-minded data”. Here’s what I mean by “organizing like-minded data”. First, start with unorganized data. <?php $customer_name; $item_name; $item_price; $customer_address; $item_qty; $item_total; ?> Now to organize the data into PHP classes: <?php […]

Categories
Network

Nbtstat

Nbtstat is designed to help troubleshoot NetBIOS name resolution problems. When a network is functioning normally, NetBIOS over TCP/IP (NetBT) resolves NetBIOS names to IP addresses. It does this through several options for NetBIOS name resolution, including local cache lookup, WINS server query, broadcast, LMHOSTS lookup, Hosts lookup, and DNS server query. The nbtstat – […]

Categories
ASP.NET C#

Ways to validate Phone Numbers in C#

using System; using System.Text.RegularExpressions; class RegexSubstitution { public static void Main() { string text = “124”; if ( !Regex.Match(text,@”^[1-9]\d{2}-[1-9]\d{2}-\d{4}$” ).Success ) { Console.WriteLine( “Invalid phone number”); } } } Validate Phone Number public bool IsValidUSPhone(string number) { return Regex.IsMatch(number, @”\(\d{3}\)\s\d{3}-\d{4}”); } Matching and Grouping Regular Expressions using Regex in C#

Categories
Windows

How to view all shared folders on your Windows PC

Go to the Start menu, then Run, type fsmgmt.msc and then OK.