467,915 Members | 1,263 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

"Literal" Control in Mobile ASPX?

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
  • viewed: 2217
Share:
3 Replies
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
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
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.

Similar topics

5 posts views Thread by Lecture Snoddddgrass | last post: by
2 posts views Thread by Anastasios Papadopoulos | last post: by
10 posts views Thread by lovecreatesbea... | last post: by
5 posts views Thread by Romano Giannetti | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.