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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:36:25+00:00 2026-05-25T15:36:25+00:00

In a nopCommerce solution, we needed to replace an existing ASP.NET page with a

  • 0

In a nopCommerce solution, we needed to replace an existing ASP.NET page with a very simple new one that just shows a message. Our new ASP.NET page has no reference at all to anything nopCommerce-related, no code behind, nothing that gives me a hint why the following happens:

Automatically, a line of code gets inserted into the rendered HTML (in this case, a link to a default theme css file).

This is the code of the new ASP.NET file:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CheckoutCompleted.aspx.cs" Inherits="CheckoutCompleted" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Shop</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>Your order has now been completed.</div>
    </form>
</body>
</html>

And this is rendered to the browser:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Shop</title>
    <link href="App_Themes/DarkOrange/styles.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form name="form1" method="post" action="CheckoutCompleted.aspx" id="form1">
    <div><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTQwMDkzNTAzN2Rk4txlLxJclpkuKfo1dNvs77An124dQqbJKyMfrIgvgaY=" /></div>
    <div>Your order has now been completed.</div>
</form>
</body>
</html>

The code behind CheckoutCompleted.cs (our own, new one) looks like this:

public partial class CheckoutCompleted : System.Web.UI.Page
{
}

The execution stops at a breakpoint set in Page_Load, so the correct .cs is referenced.

So some mechanism adds a new line. I checked web.config for hints, but I guess I’m ignorant of some cool ASP.NET feature (independent of nopCommerce – I think they just used it).

What can it possibly be?

  • 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-25T15:36:26+00:00Added an answer on May 25, 2026 at 3:36 pm

    There is a default theme setting in the web.config file and the app sort of checks each page for a theme and if that page does not have a theme set it will use the default theme. The default theme is DarkOrange. The line is:

    <pages theme="DarkOrange" validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">

    Should be around line 59…

    You can either delete this line (just the theme property, not the whole line) and that should prevent it from using that on pages with no theme set or… I’m not sure what theme you’re using… or wrap that new page you created in the master page so it looks like the rest of your site. I think there is also a way to set the theme for the page in the code-behind, but not sure what you’re wanting to do.

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

Sidebar

Related Questions

i am very much new to Entity Framework and i just used this in
I am very new to ADo.net entity framework and i am getting the following
I've got a NopCommerce site ( ASP.NET MVC ) and I'm trying to add
I'm trying to create a plugin for nopCommerce v2.20 that allows the user to
Can someone please explain what the following function does. I am learning Asp.net MVC
I have been looking around for hours trying to find a clear simple solution
I have just installed nopcommerce 1.9 and now configuring it. Inputed all the correct
I'm new to ModX and have Experirnce with MVC3. I have a PSD that
I uploaded nopcommerce solution to appharbor (using this method Can't build notcommerce project under
I am adding an ecommerce section to an existing web application using NopCommerce (open

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.