//
archives

Archive for

.NET OOP (Shared Class or Member Class)

Shared Variables There is another type of shared member we can create. There are times when it is nice to share a value across all instances of a class – when every object of a given type should share the same variable. This is accomplished through the use of shared variables. A shared variable is … Continue reading

Getting Client IP Address from SQL Server

First you must open blocked xp_cmdshell command sp_configure ‘show advanced options’,1 GO RECONFIGURE GO sp_configure xp_cmdshell,1 GO RECONFIGURE You can try this action to check your reconfigure is active and already use EXEC master.dbo.xp_cmdshell ‘ipconfig’ Second, please copy this procedure to getting IP address after SQL Server resulting client HOST NAME : USE [dbname] GO … Continue reading

First ASP Classic Code : How to Install IIS 6.0 and Create Virtual Directory

A. Installing IIS (IIS 6.0) _____________________ This topic describes 3 methods for installing IIS: • Using the Configure Your Server Wizard. • Using Add or Remove Programs from Control Panel. • Using unattended setup. This topic also lists the directories created on install, describes the IIS initial configuration backup, and briefly describes IIS optional components. … Continue reading

MsSQL Server (Error : Connection Timeout) or (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: )

1. HOST If you have that’s problem first check your host. If you didn’t success made connection using IP addres, try using YOURHOSTNAME/SERVICE_NAME  Example your IP 192.168.1.111, and your host : TheGeek-Area, sqlserver service NETSQLSERVER, then you can write the host is TheGeek-Area/NETSQLSERVER 2. SQL Server should be up and running. Go to All Programs … Continue reading

Unable to Start Debugging on the Web Server (Windows Authentication)

I hate that, and it seems that every time I (or a co-worker) gets the error “Unable to Start Debugging on the Web Server” on a machine when attempting to debug an ASP.NET project, I have to scramble to remember what to look at. Here’s a few things that has worked for me to get things working so … Continue reading

PHP 5 OOP ( php class)

A. CLASS <?php class Item { protected $name, $price, $qty, $total; public function __construct($iName, $iPrice, $iQty) { $this->name = $iName; $this->price = $iPrice; $this->qty = $iQty; $this->calculate(); } protected function calculate() { $this->price = number_format($this->price, 2); $this->total = number_format(($this->price * $this->qty), 2); } public function __toString() { return “You ordered ($this->qty) ‘$this->name'” . ($this->qty == … Continue reading

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 10 other subscribers
December 2011
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives

Web Statistic

Blog Stats

  • 187,136 hits