Archive for 'Article' Category
How to Blogging?
Exactly what is a “Blog”? A Blog, shortened from “weblog”, is basically an online journal where you can digitally put down your ideas, thoughts, opinions and practically anything that you want people to read. Blogging is very popular all over the world and basically there are no rules when it comes to blogging. Bloggers have [...]
How to connect database in ASP
This is a compiled connection strings reference list on how to connect to SQL Server 2005.
SQL Native Client ODBC Driver
Standard security
Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword;
Are you using SQL Server 2005 Express? Don’t miss the server name syntax Servername\SQLEXPRESS where you substitute Servername with the name of the computer where the SQL Server 2005 Express installation resides.
Trusted [...]
How to get IP address?
Get IP address
By ASP <%= Request.ServerVariables(”REMOTE_ADDR”) %>
By PHP <?php echo $ip=$_SERVER[’REMOTE_ADDR’]; ?>
By JAVA
import java.net.*;
import java.io.*;
import java.applet.*;
public class GetClientIP extends Applet {
public void init() {
try {
InetAddress thisIp =
InetAddress.getLocalHost();
System.out.println(”IP:”+thisIp.getHostAddress());
}
catch(Exception e) {
e.printStackTrace();
}
}
}
//HTML Page
<HTML><HEAD></HEAD><BODY>
<APPLET CODE=”GetClientIP.class”
HEIGHT=10 WIDTH=10>
</APPLET>
Check JAVA console for output
</BODY></HTML>
BY Coldfusion
<cfoutput>#CGI.REMOTE_ADDR#</cfoutput>
BY CGI
import cgi
import os
print “Content-type: text/html”
print “”
print cgi.escape(os.environ[”REMOTE_ADDR”])
Dfference between web 1.0 and web 2.0
“Web” is a fancy catch-all phrase for the Hypertext Transfer Protocol (HTTP, the protocol used for transferring information between a Web server and Web browser) and the Hypertext Markup Language (HTML, the markup language that tells your browser how to display whatever text, graphics, etc is coming through the HTTP). Over at the World Wide [...]
How to connect database in ASP.Net
ADO Database Connection
Create a DSN-less Database Connection
The easiest way to connect to a database is to use a DSN-less connection. A DSN-less connection can be used against any Microsoft Access database on your web site. If you have a database called “northwind.mdb” located in a web directory like “c:/inetpub/wwwroot”, you can connect to the database [...]