PDA

View Full Version : [CLOSED] Slow Conversion from ASP



cwolcott
Oct 10, 2012, 4:15 PM
We have created several new web applications using Ext.NET, but now it is time to port an existing website. I have been converting areas of an existing website with great success. Because of some lower level changes I need to make a minor change to our front page, prior to a complete overhaul.

To begin testing I add a LinkButton and a simpe Direct Event to our frontpage:



<script runat="server">

protected void CrtsDataRequest(object sender, DirectEventArgs e)
{
X.Msg.Alert("CRTS Data Request", DateTime.Now.ToString()).Show();
}
</script>

...

<ext:LinkButton runat="server" Text="Submit a Data Request (Ext)" onDirectClick="CrtsDataRequest" />


But obviously I had to also add ext:ResourceManager to the front page. Once I did that all of our styles got clobbered. So I added the attribute RenderStyle="None". Now our website home page looks fine, but when I click the ext LinkButton the message Alert style is clobbered.

Is there anyway to make everythin happy while I am slowly converting?

Daniil
Oct 10, 2012, 5:40 PM
Hi Chris,

Here is an answer why it happens.
http://forums.ext.net/showthread.php?13877&p=57861&viewfull=1#post57861

A possible solution is to move all old ASP content into Content of an <ext:Container> with

StyleHtmlContent="true
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.AbstractComponent-cfg-styleHtmlContent

I think it should work.

cwolcott
Oct 10, 2012, 6:03 PM
Got it. I will work through my front page and apply the suggestion. Please close this thread.