ASP Errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sujitkar
    New Member
    • Mar 2009
    • 7

    ASP Errors

    Hi guys
    I am having a problem with my ASP Pages in the default_web_sit e. If I try to open a page using the IP, it gives the error message 401.2 and if I use the Localhost or the machine name, it gives the error message "Bad Request(Invalid Host Name)". I am having two more websites in the same server with different IP. But they are showing blank pages.

    Kindly help me out because I am in a real Hurry to complete the project.
    Last edited by debasisdas; Mar 20 '09, 10:05 AM. Reason: Question moved to ASP forum.
  • sujitkar
    New Member
    • Mar 2009
    • 7

    #2
    Blocking Pages from unauthorised access

    Hi guys, I am developing one small web-site for an organisation. The web-site is going to be user-driven. Means only the registered users can enter the site.

    Now that I want to block all the pages (both htm and asp), except the loging page, which is the home page of my site also, in my site, I can use cookies or session variables to do that. But that is going to be a tedious job since there are so many pages.

    Kindly help me out with some easier techniques.

    Comment

    • sujitkar
      New Member
      • Mar 2009
      • 7

      #3
      Hi,
      with continuation to my previous query, here I am geting another problem with my web-site. Mine is a DSN connection to SQL server. I am creating the recordset object as below-

      Set SQLStmt1 = Server.CreateOb ject("ADODB.Com mand")
      Set Rec = Server.CreateOb ject ("ADODB.Records et")

      SQLStmt1.Comman dText = "select field1,date,rea ding from Readings"
      SQLStmt1.Comman dType = 1
      Set SQLStmt1.Active Connection = OBJDBConnection
      Rec.Open SQLStmt1

      This recordset is working nicely for the display purpose. But it is not working for the Updation of the table.

      Kindly Help.

      Comment

      Working...