Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

"Literal" Control in Mobile ASPX?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Maghen - 25 Jun 2007 17:21 GMT
I am confused about how I can insert literal text into a page from C# in the
ASP.NET 2.0 Mobile Page model. There is no supported "Literal" control as
there is in ASPX (standard), though I don't understand why not. So the
question is, how do I get literal HTML text into a certain spot on my ASPX
page in mobile? It seems I cannot even insert a <p> and then run it at the
server and control it's InnerText or anything.

Help?

Alex
Masudur - 25 Jun 2007 18:54 GMT
> I am confused about how I can insert literal text into a page from C# in the
> ASP.NET 2.0 Mobile Page model. There is no supported "Literal" control as
[quoted text clipped - 6 lines]
>
> Alex

hi..

try
span ... with runat attribute set to server...
and in spans innerhtml drop what you like...

thanks
masudur
http://munnacs.110mb.com
Alex Maghen - 25 Jun 2007 19:04 GMT
Thanks!

> > I am confused about how I can insert literal text into a page from C# in the
> > ASP.NET 2.0 Mobile Page model. There is no supported "Literal" control as
[quoted text clipped - 16 lines]
> masudur
> http://munnacs.110mb.com
Steven Cheng[MSFT] - 26 Jun 2007 07:12 GMT
Hi Alex,

As for the ASP.NET mobile page, since the built-in mobile controls are not
decidated to html based web pages, it may not contains all those controls
in standard ASPNET control collection. However, as I've mentioned in some
former threads, if your mobile page will target certain device that HTML
content, you can use device filter to supply HTML or ASP.NET standard
controls based template. Here are some reference on this:

#ASP.NET 2.0 Mobile Controls - Device Specific Rendering
http://blogs.msdn.com/gurbir/archive/2006/07/26/Gurbir-Singh-Sethi.aspx

#Device-Specific Content
http://dotnetjunkies.com/MobileQuickStart/(5jjcnq45oojwvn45f1fascbz)/doc/Dev
iceSpecific.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.