• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Tash
#1 Posted : Tuesday, October 28, 2008 7:26:23 AM(UTC)
Tash

Rank: Member

Joined: 10/28/2008(UTC)
Posts: 1

I try to use own theme and use one temlpate default.master for all pages.
To resolve images and scripts pathes I use this construction [2]
[/2]
[2]src[/2][2]="[/2][2]/images/image.gif"[/2]

[2]I need appPath becouse now I have to use test version with subdomain name[/2]

[2]Severel pages like checkout/checkout.aspx give ASP.NET Error[/2]
[2]
<H2>The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %&gt;). </H2>
<FONT face=Verdana>Descript<b>ion:
</B>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

<B>[color=#ffffcc>

[tr ][td ]<CODE>
[HttpException] System.Web.UI.ControlCollection.Add(Control child) +2108047
BVSoftware.Bvc5.Core.Utilities.WebForms.MakePageNonCacheable(Page currentPage) +320
BVModules_Checkouts_One_Page_Checkout_Checkout.PageLoad(Object sender, EventArgs e) +30
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
</PRE>[/code][/td][/tr]</TABLE>
[/2][/color]

How I can solve this?
squeakerjg
#2 Posted : Tuesday, October 28, 2008 10:36:16 AM(UTC)
squeakerjg

Rank: Member

Joined: 8/16/2008(UTC)
Posts: 48
Location: United States

Thanks: 3 times
Was thanked: 2 time(s) in 1 post(s)
instead of doing that, just start your path with ~/ and make sure the control is runat=server.

e.g. <img src="~/images/image.gif" runat="server"/>

(I didn't try it but it should work)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012