Re: Insert a custom TAG first in body

From: Sean Feldman (shaulfe_at_eshed.co.il)
Date: 01/09/05


Date: Sun, 9 Jan 2005 02:09:01 -0800

Hi,
thanks for your post.
What I need is to render a psecial tag requiered by local mobile provider
just after the <body> tag (I'm talking about Xhtml content), so it would look
like:
...
  <body><provider_special_tag=some_value>
     <!-- regular content rendered by mobile asp.net -->
  </body>
</html>

The Render method of XhtmlFormAdapter didn't help since it renders the
inside content of body. Any idea?

"JuanDG" wrote:

> I explained this one on an earlier post (like a week ago), here's the info
> again, but if you tell me exactly why do you need this <X> tag maybe we can
> try to figure out a solution
>
> Cheers!!!
>
> ---------------OLD POST---------------------
>
> ASP.NET Engine (which I explained on an earlier post) is designed to render
> pages in the most accurate way for the device requesting them.
>
> That's why we use generic tags like <mobile:form> or <mobile:label>.
> By using the "mobile" keyword in the start of the tag we're telling the
> ASP.NET Engine to replace those tags with equivalent tags in the markup
> language supported by the device requesting the page.
>
> In the namespace System.Web.UI.MobileControls.Adapters you can find all the
> adapters that render mobile controls into specific tags of a given markup
> language (like WML, xHTML, cHTML).
>
> That's the reason why all the specific markup (like HTML) that you write in
> a mobile web form will be removed at runtime, because it can't be adapted
> into other markup languages. If you want to use a specific feature supported
> only by a few devices or a single markup language you hay to use the custom
> device filters.
>
> I hope I made myself clear, if not, please tell me so I can elaborate some
> more.
>
> Regards!!!!
>
> --
>
> Juan David Gomez A.
> Microsoft Certified Professional
> Analista de Desarrollo - PSL S.A.
> Web and Wireless Banking
> Medellin - Colombia
>
> "Sean Feldman" <Sean Feldman@discussions.microsoft.com> wrote in message
> news:30D025EC-0C79-4B14-B549-66F9489B0E2E@microsoft.com...
> > Hello,
> > I need to insert inside the BODY a custom tag, <X> and it has to be the
> > first one.
> > How do I accomplish this task? I thought of overloading the render method
> > of
> > page, but couldn't find any hint.
> > Thank you for assitance.
>
>
>



Relevant Pages

  • Re: How can I insert some HTML tag in MobileControl with using ASP.NET?
    ... pages in the most accurate way for the device requesting them. ... By using the "mobile" keyword in the start of the tag we're telling the ... ASP.NET Engine to replace those tags with equivalent tags in the markup ...
    (microsoft.public.dotnet.framework.aspnet.mobile)
  • Re: asp.net and XHTML
    ... tags, and attribute values are included in double ... Controls do not render custom attributes that are ... Any script tags rendered into the page include an appropriate type ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: dentalcom.net - smd gateway
    ... I can embed graphics into DentalCom.net by enclosing ... software will render the image and replace the code with an image. ... The tags are vBulletin tags. ...
    (sci.med.dentistry)
  • Re: Page background color wont change.
    ... CSS rules define how to render something that's display: table-row ... I'm not talking about CSS, ... because if you put that in your HTML markup that's not what you will ...
    (alt.html)
  • How can I prevent spaces between tags being rendered?
    ... How can I prevent spaces between tags being rendered? ... Why do browsers render the white space between the ... GridView rendering code. ... border-right: 1px solid #c5c5c5; ...
    (comp.infosystems.www.authoring.stylesheets)

Quantcast