May 03, 2013, 8:46 AM
[CLOSED] Example Populating Panel's Content (HTML required for SEO)
At the presentation layer, it is easy to do the following:
But dynamically who do I do the equivalent?
P.html produces javascript with html as a property. That's not acceptable html stream.
So how do you write the text to P.Content?
<ext:Panel ID="P" runat="server">
<Content>
<h1>Hello World!</h1>
</Content>
</ext:Panel>
The following will render something to the effect of:
<div id="P_Content" class="x-hidden"> <h1>Hello World!</h1></div>
... which is good because this is a pure HTML stream that a webcrawler can see.But dynamically who do I do the equivalent?
P.html produces javascript with html as a property. That's not acceptable html stream.
P.Controls.Add(
new HtmlGenericControl("h1") { InnerHtml = "Hello World!" }
);
... produces the Html stream but not displayed by Ext.Net.So how do you write the text to P.Content?
Last edited by Daniil; May 07, 2013 at 3:55 AM.
Reason: [CLOSED]