Posts Tagged "ASP"

Default page name for technology used in Internet

Following are the detault pages for website of technology based : 1) HTML Based default pages : a) index.htm b) index.html c) default.htm 2) PHP Based default pages : a) index.php 3) SHTML Based default pages : a) index.shtml 4) Classic ASP Based default pages : a) index.asp b) default.asp 5) .Net(Framework) Based default pages : a) index.aspx b) default.aspx 6) Coldfusion Based default pages : a) index.cfm 7) CGI/Perl Based default pages : a) index.pl b) default.pl Shashi Dhar…

Read More

How to connect different database in ASP

How to connect database in ASP (Active Server Page)? SQL Server 2005 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 Connection Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Trusted_Connection=yes; Equivalent key-value…

Read More

How to get IP address in different programming language?

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”]) Shashi Dhar KumarShashi…

Read More

ASP-Interview Question

ASP-Interview Questions Question : How are scripts executed? Answer : ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the “< %…. %”. Question : Explain the building blocks of Client/Server? Answer : The client side building block runs the client side of the application. The server side building block runs the server side of the application. Question : Explain the POST & GET Method or Explain the difference between…

Read More

ASP – Interview Question

Question : How are scripts executed? Answer : ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the “< %…. %”. Question : Explain the building blocks of Client/Server? Answer : The client side building block runs the client side of the application. The server side building block runs the server side of the application. Question : Explain the POST & GET Method or Explain the difference between them. Answer…

Read More

ASP – Active Server Page

Active Server Page Active Server Page (ASP) are Web pages that contain server-side scripts in addition to the usual mixture of text and HTML (Hypertext Markup Language) tags. Server-side scripts are special commands you put in Web pages that are processed before the pages are sent from your Personal Web Server to the Web browser of someone who’s visiting your Web site. . When you type a URL in the Address box or click a link on a Web page, you’re…

Read More