Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 28th, 2006, 05:00 AM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mobile Control in System.Web.UI.Page

I'm not sure it's possible, but it would be great if there is some way to load a mobile control on a regular ASP.NET web page.

I have controls inheriting from MobileControl. If the control only contains regular tags like a <br/> tag, it's possible to load it into a table cell. However, if the control contains a mobile tag such as <mobile:image> I get the error that such a control or tag can only be loaded into a MobilePage.

So is there any good ways to force the control to load into a System.Web.UI.Page?

I'm loading it into a cell in a custom gridview...

Error message is:

"MobileControl must be contained within a MobilePage: ASP.default_aspx" when trying to run last line:

MobileControl _modulePreview = (MobileControl)Page.LoadControl(e.Row.Cells[3].Text.ToString());
e.Row.Cells[3].Controls.Add(_modulePreview);


Hope anyone knows about this..

(You may ask why one would want to load a mobile control in a page like that, and the answer is that I create mobile modules that needs to be administrated from a web-based GUI.)





Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Web.UI.Control.Controls Collection Ihoulun ASP.NET 1.0 and 1.1 Basics 0 October 17th, 2006 07:51 AM
No System.Web.UI alexanderH BOOK: ASP.NET Website Programming Problem-Design-Solution 2 March 10th, 2005 03:04 AM
namespace System.Web.UI henninga BOOK: ASP.NET Website Programming Problem-Design-Solution 9 November 16th, 2004 03:51 PM
Subclassing system.web.ui.page gazeth BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 25th, 2004 10:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.