MobileSkinLink in LayoutMaster

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/28/2013 4:48:30 AM
Gravatar
Total Posts 21

MobileSkinLink in LayoutMaster

<portal:MobileSkinLink ID="mobileskin" runat="server" RenderAsListItem="true" />

seems to break our site when I put it in the footer of an artisteer skin

https://www.mojoportal.com/mobile-kit-pro-product  says to put it in the Layout.master

.net40

currently not in there but the mobilekitpro is working  http://devel.eurobridge.org

I did NOT put this in the layout.master

<add key="MobilePhoneUserAgents" value="iphone,ipod,android,iemobile" />

2/28/2013 6:14:09 AM
Gravatar
Total Posts 18439

Re: MobileSkinLink in LayoutMaster

What do you mean "break"? An error happens? The design is messed up? What?

If an error happens get the error details.

If you are not putting it inside a ul element then RenderAsListItem needs to be false.

Of course this: <add key="MobilePhoneUserAgents" value="iphone,ipod,android,iemobile" />

should never go in layout.master, its a config setting

3/5/2013 3:43:17 AM
Gravatar
Total Posts 21

Re: MobileSkinLink in LayoutMaster

http://212.110.41.243/  is a test site for getting the mobilekitpro that we purchased installed.  What I mean by break is "blown up real good"

I tried to set the mobile in the footer at  the WBFWeb/Data/Sites/1/skins/my 3 skin names

mobile is installed at /WBFWeb/Data/Sites/1/skins/mobilekit_v1/layout.master

                            <div class="art-footer-text">
                               <p> <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                                    |<portal:MobileSkinLink ID="mobileskin" runat="server" RenderAsListItem="false" />

here is an error on resetting the GUID

 

Server Error in '/' Application.

An error has occurred because a control with id 'ctl00$SiteMenu1$ctl00' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.

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.Web.HttpException: An error has occurred because a control with id 'ctl00$SiteMenu1$ctl00' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[HttpException (0x80004005): An error has occurred because a control with id 'ctl00$SiteMenu1$ctl00' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.] System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +978 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3278


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

3/5/2013 4:16:23 AM
Gravatar
Total Posts 21

Re: MobileSkinLink in LayoutMaster

Turns out the MobilekitPro is working at our test server http://212.110.41.243/  when I dont add the portal:MobileSkinLink

the errors and blowup with the CSS are happening when I try to add

 <portal:MobileSkinLink ID="mobileskin" runat="server" RenderAsListItem="false" /> to the footer

it says to do so in the https://www.mojoportal.com/mobile-kit-pro-product instructions

is it the root skin or the Data/sites/1/skins/myskinname ? skin layout.master

 

3/5/2013 9:52:53 AM
Gravatar
Total Posts 18439

Re: MobileSkinLink in LayoutMaster

Changes in layout.master do not require resetting the skin guid, only css changes require that.

The error you posted is not related to the mobile link it seems to be from SiteMenu and it is the kind of error that happens if you open a page using one skin then in another browser or browser tab you changed the skin, then in the first tab you edit something on postback it does not match because the skin was changed in between when the page was originally loaded and when the postback occurred. ie you clicked the button to reset the skin guid (which was not necessary) without first reloading the page with the new skin that was changed in another browser tab or browser.

3/5/2013 10:53:24 AM
Gravatar
Total Posts 18439

Re: MobileSkinLink in LayoutMaster

Just to see if I could replicate the problem, I added 

<portal:MobileSkinLink ID="mobileskin" runat="server" RenderAsListItem="false" />

to an Artisteer skin and it immediately broke the page

The reason is because it already exists and there cannot be more than one control with the same ID.

So you do not need to add it to skins generated from our Artisteer plugin because it is already included in layout.master of Artisteer skins.  If you want to put it in a different place within layout.master, you can do that but you must move the existing one rather than add a new one.

Note that this link is not part of Mobile Kit Pro it will work with any skin specified as the mobile skin in site settings.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.