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

  • Home
  • SEARCH
  • 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 8929761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:44:41+00:00 2026-06-15T08:44:41+00:00

I have an aspx document (I know nothing about asp , .net , aspx

  • 0

I have an aspx document (I know nothing about asp, .net, aspx, nada). It is a normal html table structure for the most part, but there are strings of asp that seem to be inserting some sort of dynamic content. They are in the form:

<asp:Image ID="imgTopImage" runat="server" ImageUrl="~/Images/topbar.jpg" />    
<asp:Label ID="lblStyleCaption" runat="server" CssClass="label_caption" Text="Theme: " Visible="false" />
<asp:DropDownList ID="dropStyles"  Width="150" runat="server" AutoPostBack="true" />

It seems that whenever I delete one of these——something as innocuous as, say, the line with the asp:Image tag, which I would think should just remove the image, when I load the page I get run-time errors. It’s very particular. My question is, is this compiled somehow, which is making it so fragile. Even just changing the topbar.jpg to something.png gives me an error. Do I need to track down the original files this was compiled from, or is this normal server-side asp(x?) that I’m just somehow else goofing up my changes to?

  • 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-06-15T08:44:42+00:00Added an answer on June 15, 2026 at 8:44 am

    ASPX pages are compiled, and those tags refer to objects that are known to the server, so removing them could cause errors.

    First, some basics in layman’s terms

    Tags that begin with ASP: (Example, <ASP:Button id="btnSubmit" runat="Server" Text="Click Me" />)

    are not standard html buttons. They are server controls. When generating the html that goes out to the browser, the ASP.NET runtime looks at the server controls and creates the appropriate content depending on the browser visiting the page.

    In the case of the Button control, it’s usually a standard html button, but the runtime also generates the JavaScript and such to handle the button’s server-side click event.

    Why you’re probably seeing errors when you remove a control:

    Quite often, there’s server-side code that’s written that accesses these controls. For example, the developer may have decided to change the Text or the Visible property due to some event.

    If this is the case, and you remove the <asp:Button> tag, then there will be server-side code that references an object that no longer exists in the aspx page, hence the errors.

    More at these links on Server Controls:

    • http://www.w3schools.com/aspnet/aspnet_controls.asp
    • (Actually, this older one is better for a new-to-asp.net developer: http://msdn.microsoft.com/en-us/library/zsyt68f1(VS.71).aspx
    • http://support.microsoft.com/kb/306459

    I’d also recommend taking some time watching basic videos or going through the tutorials at http://www.asp.net/get-started


    I just noticed this in your question:

    Even just changing the topbar.jpg to something.png gives me an error.

    That is a bit odd, but I know of at least one way it could happen…

    Generally, Visual Studio will give you a warning (and not an error) if you include a relative URL to an image or a linked page that doesn’t exist. The warning shouldn’t block you from compiling. However, Visual Studio does have a setting that tells it to treat warnings as errors. That will block it from compiling. Here’s how that would be set up:

    from Project Settings> Configuration Properties select the build
    setting and change the “treat warnings as errors” settings to true.

    If you wish to NOT treat warnings as errors, simply change the setting to false.

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

Sidebar

Related Questions

I have an aspx document that returns a list of incoming flights from a
I have a aspx page that has a UpdatePanel and a asp timer. the
Good Afternoon, I have a html aspx page that has many many div elements.
I have an ASP.Net user control that contains some checkboxes, and I want to
I have an ASP.NET 3.5 web application written in VS 2010. I have an
I have been building an asp.net control to generate a google map based on
I have encountered many half-solutions to the task of returning XML in ASP.NET. I
Suppose I have this label in my aspx page: <asp:Label ID=savings runat=server Text='<%# Eval(savings)%>'
I have a dictionary variable in C# (ASP.NET). I want to send this data
I have aspx website in which I have multiple user controls. I want to

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.