Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7027355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:14:11+00:00 2026-05-28T00:14:11+00:00

Okay so I have a simple HTML Input fragment: <input id=txtFirstName type=text class=txtBox runat=server

  • 0

Okay so I have a simple HTML Input fragment:

<input id="txtFirstName" type="text" class="txtBox" runat="server" />

Which is hooked up to this CSS property:

.txtBox
{

    background: url("/Images/lu/input_bg.png") repeat-x scroll left bottom transparent;
    border: 1px solid #E0E6EF;
    padding: 3px;
    width: 275px;

}

The image shows up in Visual Studios design window, but not when I view it in a browser. What gives?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:14:12+00:00Added an answer on May 28, 2026 at 12:14 am

    Often, when you develop locally, Visual Studio will host the site at http://localhost:port – this is the default when using the inbuilt web server for web application and web site projects.

    When you deploy to your remote site, it may be in a virtual directory that is not the root site; so, in fact, your remote application URL will be something like http://yourdomain.ext/your_site/ which changes the paths for images. The solution is to either include the virtual directory name in your path (/your_site/images/image.jpg) or use relative paths.

    I prefer the former as it keeps all paths consistent, and it is possible to simulate this locally in Visual Studio.

    For Web Application Projects see Solution Properties (Right click the solution node in the Solution Explorer and choose properties) – Web (tab on the left) – and look for the Virtual Path text box and change as appropriate (e.g. from ‘/’ to ‘/your_site’)

    For Web Site Projects, click the Solution node in the Solution Explorer and look at the Properties dialog. The last option is a Virtual Path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay I have a series of objects based on a base class which are
Okay, I have a simple test server set up using socket.io in node.js. My
I have a simple div on html, something like: <div class=warning> <h3>Please make sure:</h3>
Okay this may be a simple question but I have yet to come with
Okay I have this RewriteRule which is supposed to redirect any request for the
Okay so I have the following Code which appends a string to another in
Okay, I have what I think is a simple question.. or just a case
Okay, here is a very simple and fundamental question. If I have an application
Okay, this should be really simple, but I have searched all over for the
Okay, I feel like I am missing something really simple here. I have an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.