473,383 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

"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
3 2465
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lecture Snoddddgrass | last post by:
Back in the old Visual C++ days, it was always important to define constant strings only once so that they wouldn't be stored over and over again in memory. Has .NET resolved this issue? Consider...
0
by: Dave | last post by:
Can I create a user control so that when I drop it on the web form I can put text between the start and end tags as listed <uc1:KeyFeatures id="KeyFeatures1" runat="server"...
2
by: Anastasios Papadopoulos | last post by:
Hello all, I have statements like the following in my Property Get: Public Property AccountNumber() As String Get Return MyClass.AccountNumber.ToString End Get blah blah End Property
2
by: jindo | last post by:
hi there! I want to service to java web services. so i made web references! but web services operations not made. "style=rpc, use=literal" how to connect java(rpc/literal) with dot net...
10
by: lovecreatesbea... | last post by:
Is it correct and safe to compare a string object with "", a pair of quotation marks quoted empty string?If the string object: s = ""; does s contain a single '\'? Is it better to use...
5
by: Romano Giannetti | last post by:
Hi, while writing some LaTeX preprocessing code, I stumbled into this problem: (I have a -*- coding: utf-8 -*- line, obviously) s = ur"aƱado $\uparrow$" Which gave an error because the \u...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.