an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Site Background image not been used for Picture...
Last Post 12/7/2011 10:47:31 AM By Bahram. 3 replies.
12/6/2011 1:07:14 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Site Background image not been used for Picture View Popup
Hi Luke,
 
We have changes the background Image of website to pure black. but the popup windows also get this backround.
How we can set another background for popup windows like Image Viewers.
 
 
Thanks,
12/7/2011 9:25:50 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Site Background image not been used for Picture View Popup
I believe Popupwindows inherit from the default theme. Take a look at web\PopupWindow.master.* if you want to change the theme.
DotShoppingCart Staff
12/7/2011 9:52:45 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Site Background image not been used for Picture View Popup
I explicitly set a body attribute image for masterpopoup but it does not worked.
 
When I view the code I see ProductImage source inherits the Default.css but I can not see this  in design code.
<head><title>   Product Image: 01-0026   </title><link href="../App_Themes/dsc/Default.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/dsc/Old/Default.css" type="text/css" rel="stylesheet" /></head>
 
12/7/2011 10:47:31 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Site Background image not been used for Picture View Popup
I got this error when setting form bacground of popupMaster to WHITE, I compiled the App and refreshed the pool and website too.
 
 
Server Error in '/' Application.
--------------------------------------------------------------------------------
 
[A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. 
Description: 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. 
 
Exception Details: System.InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.
 
Source Error: 
 
 
Line 68:                     Cache.NoAbsoluteExpiration, new TimeSpan(1, 0, 0));
Line 69:             } else {
Line 70:                 pageConfigurations = (Dictionary<string, PageConfig>)o;
Line 71:             }
Line 72: 
 
 
Source File: c:\AcrEStore_4.0\Web\Dynamic.aspx.cs    Line: 70 
 
Stack Trace: 
 
 
[InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.]
   Dynamic.get_PageConfigurations() in c:\AcrEStore_4.0\Web\Dynamic.aspx.cs:70
   Dynamic.Page_PreInit(Object sender, EventArgs e) in c:\AcrEStore_4.0\Web\Dynamic.aspx.cs:85
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Page.OnPreInit(EventArgs e) +8702878
   DotShoppingCart.Commercial.Base.BasePage.OnPreInit(EventArgs e) +15
   System.Web.UI.Page.PerformPreInit() +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282