1 Replies - 2893 Views - Last Post: 29 March 2012 - 09:10 AM Rate Topic: -----

#1 DevelopSean  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 07-February 12

Content changing based on mobile device

Posted 29 March 2012 - 09:06 AM

I am looking to change the content that is served to the .master file based on whether or not the device being used is a mobile device. The problem I am having is changing the webpart inside the <asp:Content>


<asp:Content runat="server" ContentPlaceHolderID="PageContent">
   
     <cb:ScriptletPart ID="HomePage" runat="server" Layout="Three Column" Content="Home Page" LeftSidebar="Standard Sidebar 1" RightSidebar="Standard Sidebar 2" Header="Standard Header" Footer="Standard Footer" Title="Home Page" AllowClose="False" AllowMinimize="false"/>
   
</asp:Content>




I can not simply change the values for the webpart properties because it is stores custom values in another location. With that, I would like to try hiding that webpart if a mobile content is specified. But it seems I can not set an ID for the asp:Content tag and call it from the load or prerender methods. Is their a way to identify and change the content inside a asp:Content tag?

I am using C# in .NET 4.0

Is This A Good Question/Topic? 0
  • +

Replies To: Content changing based on mobile device

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9094
  • View blog
  • Posts: 34,148
  • Joined: 12-June 08

Re: Content changing based on mobile device

Posted 29 March 2012 - 09:10 AM

Moving to ASP.NET.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1