www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > .NET

    .NET Discussion and technical support for, building, using and deploying .NET sites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 10-22-2009, 04:48 PM
    newin9009 newin9009 is offline
    Registered User
     
    Join Date: Oct 2009
    Posts: 8
    Hard coding credentials in .NET

    I originally thought this was a Javascript question but I'm beginning to think I can do this within .NET.

    I basically have a camera image on an IP camera and I want to display it on a page called test.aspx so I put this in the page:

    <img src="http://192.168.1.30/images/campic.jpg">

    And it works great. But I don't want to leave my camera wide open so I enabled authentication on the camera. Now I get a pop up windows asking me to login when I go to test.aspx. So I changed the URL to this:

    <img src="http://adminassword@192.168.1.30/images/campic.jpg">

    and it does not work in IE7 because Microsoft has taken out the ability to pass credentials in the URL since around IE6. I want the image to be displayed without a pop up box coming up. How can I hard code the user name and password on test.aspx and login automatically when someone hits the page so they can see the camera image immediately?

    Thanks.
    Reply With Quote
      #2  
    Old 11-06-2009, 12:12 PM
    ssystems ssystems is offline
    Registered User
     
    Join Date: Oct 2009
    Posts: 223
    I would use the <asp:Image> object and create an ImageHandler inside the application where the creds are set.
    __________________
    Good Luck

    Santos Systems
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 09:11 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.