By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,356 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,356 IT Pros & Developers. It's quick & easy.

"Literal" Control in Mobile ASPX?

P: n/a
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 <pand then run it at the
server and control it's InnerText or anything.

Help?

Alex
Jun 25 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Jun 25, 10:21 pm, Alex Maghen <AlexMag...@newsgroup.nospamwrote:
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 <pand then run it at the
server and control it's InnerText or anything.

Help?

Alex
hi..

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

thanks
masudur
http://munnacs.110mb.com

Jun 25 '07 #2

P: n/a
Thanks!

"Masudur" wrote:
On Jun 25, 10:21 pm, Alex Maghen <AlexMag...@newsgroup.nospamwrote:
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 <pand then run it at the
server and control it's InnerText or anything.

Help?

Alex

hi..

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

thanks
masudur
http://munnacs.110mb.com

Jun 25 '07 #3

P: n/a
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...ngh-Sethi.aspx

#Device-Specific Content
http://dotnetjunkies.com/MobileQuick...ascbz)/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.




Jun 26 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.