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 7693065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:59:52+00:00 2026-05-31T20:59:52+00:00

Issue is SOLVED: Problem is that it is a pre-compiled web page project and

  • 0

Issue is SOLVED: Problem is that it is a pre-compiled web page project and to update the look/feel of the page it will need to be recompiled from source.

Deployed .Net application on IIS7.5, I only have access to the *.aspx files not the *.cs files or any other files that came with the project. The *.aspx pages start with the following (just one example):

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="blue.cs" Inherits="p9.cblue" %>

From everything I had read I should be able to just insert HTML markup, or insert JS, or follow the advice given in How to add html to an aspx C# codebehind page? @stackoverflow

I tried to remove the Inherits and the markup still wouldn’t render in the browser.

I tried to insert the following JS right after the body tag in the aspx page:

<script type="text/javascript">document.write("TEST");</script>

It didn’t show up.

I tried the suggestion given in the above link:

<script runat="server">
    protected void Page_Load(object sender, EventArgs e) {
        if (!Page.IsPostBack) {
            Controls.Add(new LiteralControl("TEST"));
        }
    }
</script>

<!-- Try this if the above does not work -->
<script runat="server">
        new protected void Page_Load(object sender, EventArgs e) {
        base.Page_Load(sender, e);
            if (!Page.IsPostBack) {
                Controls.Add(new LiteralControl("TEST"));
            }
        }
</script>

and neither of those methods worked either. I did restart the web server between attempts. I did even recycle the app pools between attempts. I did restart the browser to get away from caching issues. No joy.

I have to be missing something. It’s inconceivable that it is so difficult to add some HTML to an aspx page. Seems like folks would need to do this quite frequently.

Once again, I don’t have access to the *.cs files please don’t respond with suggestions that require edits of the *.cs files. I also realize that I could use .Net Reflector to get the *.cs back out of the DLL and rebuild the solution from it. However, I shouldn’t have to do any of this. I should be able to just add whatever markup I need to the *.aspx file and be done with it.

EDIT: One more piece of information which may or may not be relevant (I am not a dev so I am not sure on this). The directory where the app is located contains the *.aspx files. The directory on the file system where the images are located that are pulled into some of the pages the app renders does only contain a Default.aspx file which contains “This is a marker file generated by the precompilation tool, and should not be deleted!”

  • 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-31T20:59:53+00:00Added an answer on May 31, 2026 at 8:59 pm

    Like multiple folks have pointed out in comments, this was a precompiled web application and had thus be rebuild.

    In the future, or for other folks looking at this page, this issue can be avoided by building the solution as a web page and ensuring that during the Publish Web Site step the “Allow this precompiled site to be updatable” checkbox is selected. This will allow you to change the markup and client-side code later without having to recompile the site.

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

Sidebar

Related Questions

PROBLEM SOLVED: I was overlooking a very simple issue, and that is that this
[Update: Problem solved! See bottom of the post] I need to allow python developers
UPDATE The issue is solved, all the code you can see works. Hello! I
I've got an issue that was wondering if could be solved in a particular
Here is my problem, I need to create a javascript function that takes 2
I'm working on a project and have a problem that I believe can be
TLDR version: Most important issue is, that in a TSP problem, instead of finding
Fairly simple issue which is solved in PHP by using a static variable. private
I have a script that somebody from SO kindly provided to solve an issue
The issue I am trying to solve is that I have a folder with

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.