Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 28th, 2006, 06:00 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
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.)
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08: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 11:02 AM



All times are GMT -4. The time now is 12:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.