Web Hosting & Ecommerce Puerto Rico

 


 

  Preguntas y Respuestas 




MAY 1

 How do I enable detailed errors in classic ASP?

  Colocado por Webmaster PRMWD on May 01, 2010 12:00 AM as MS SQL




How do I enable detailed errors in classic ASP?

 

You can enable detailed error messages for your classic ASP site defaulted to Windows/IIS by using a web.config file with the following code. This is useful in diagnosing issues with a site but for security reasons should be turned off once the site is in production:

<configuration>
  <system.webServer>
    <httpErrors errorMode="Detailed" />
  </system.webServer>
</configuration>

For more information regarding the syntax and use of <httpErrors>, please see this article from iis.net


comentario (0)



MAY 1

 How do I enable detailed errors in ASP.NET?

  Colocado por Webmaster PRMWD on May 01, 2010 12:00 AM as Hosting a site in PRMWD




How do I enable detailed errors in ASP.NET?

 

You can enable detailed error messages for your classic ASP site defaulted to Windows/IIS by using a web.config file with the following:

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
   <system.web>
       <customErrors mode="Off" />
   </system.web>
 </configuration>


For more information refer to http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx


comentario (0)



MAY 1

 How do I enable directory listing in ASP.NET?

  Colocado por Webmaster PRMWD on May 01, 2010 12:00 AM as Hosting a site in PRMWD




How do I enable directory listing in ASP.NET?

 

Directory listing can be added by using an asp page. Instructions to do this can be found on Microsoft's Support Site by following this link:

http://support.microsoft.com/kb/224364

You can also do directory listing via the web.config with the below code. You will specify the folder name based on the /web/content directory being the root. So if you have /web/content/mynewfolder the lines will look like below:

<configuration>

<location path="mynewfolder">
   <system.webServer>
    <directoryBrowse enabled="true" />
   </system.webServer>

</location>
</configuration>

comentario (0)



MAY 1

 How to redirect a subdomain to a subdirectory?

  Colocado por Webmaster PRMWD on May 01, 2010 12:00 AM as Hosting a site in PRMWD




How to redirect a subdomain to a subdirectory?

 

You can redirect a subdomain to a subdirectory by using ASP or ASP.net code.

When the requests are redirected using an ASP file, the URL in browser for redirected domains will show the correct domain name and the directory name where the request is being redirected. You can also redirect the requests to a specific file.

For example:

http://subdomain1.YourHostedDomainName.com --> http://subdomain1.YourHostedDomainName.com/subdomain1

http://subdomain2.YourHostedDomainName.com --> http://subdomain2.YourHostedDomainName.com/subdomain2

http://subdomain3.YourHostedDomainName.com --> http://subdomain3.YourHostedDomainName.com/subdomain3/home.asp

The following is a sample script that you can use to redirect a subdomain. You will need to place it as default document on your document root.

<%
 If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain1.YourHostedDomainName.com") ) > 0 Then
 Response.Redirect("/subdomain1")
 ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain2.YourHostedDomainName.com") ) > 0 Then
 Response.Redirect("/subdomain2")
 ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain3.YourHostedDomainName.com") ) > 0 Then
 Response.Redirect("/subdomain3/home.asp")
 End If
 %>
 

>> full

comentario (0)



MAY 1

 What are some sample Connection Strings from ASP and ASP.NET?

  Colocado por Webmaster PRMWD on May 01, 2010 12:00 AM as Hosting a site in PRMWD




What are some sample Connection Strings from ASP and ASP.NET?

 

These are sample connection strings for MSSQL Server 2005, MSSQL Server 2008, and MySQL from ASP or ASP.NET.

 

The following details will need to be replaced for each of the following examples with your database details:

  • myServerAddress
  • myDataBase
  • myUsername
  • myPassword

Microsoft SQL 2005 & 2008

SQL Native Client

Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

SQLNCLI

Provider=SQLNCLI;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

SQLOLEDB

Provider=SQLOLEDB;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

MySQL

ODBC

Driver={MySQL ODBC 3.51 Driver};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;OPTION=3
 
 

comentario (0)




[FIRST]  [PREV]  ... 3 4 [5] 6 7 8 ...  [NEXT]  [LAST]
21 - 25 of 40








 


Temas Recientes


 Instalar el certificado SSL en servidor 

 Generate a CSR 

 Prerequistos de Instalacion SSL 

 Quiero denuciarlo me robo mi dominio 

 Tips para que no caiga de tonto 


Temas


 Dominio (3)

 Hosting a site in PRMWD (18)

 MS SQL (4)

 php (1)

 RedHat (1)

 Servcio Garantia Servidores PRMWD (2)

 Servers (5)

 Servers for Windows (2)

  SSL (Certificados Seguridad) (4)


Buscador




Archivo


 august 2010

 july 2010

 may 2010

 february 2010

 january 2010





admin*