C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Application not working fine in ie 8 and mozilla


Posted Date: 03 Jul 2009      Posted By: gaurav tyagi      Member Level: Silver     Points: 1   Responses: 4



I have a small asp.net application which runs fine in IE 7 but when I run it in IE 8 ,then in place of rendering the contents on the page the inline code is displayed on the web page.Actually a <pre>tag is generested in IE8 that is causing the trouble.I also tried
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
but of no use.also i used the compatibility mode but in vain





Responses

Author: Ramesh S    03 Jul 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Is your application generates any script error when viewed in IE8?

Or does it display any server side error ?

Thanks & Regards
Ramesh. S
 
My Articles & Resources at DNS



Author: gaurav tyagi    04 Jul 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

No the application does not generate any error.........but it just displays the inline code on the web page.It is due to the automatically generated <pre> tag in the HTML body.The problem is how to prevent this tag


Author: gaurav tyagi    13 Sep 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">



Author: gaurav tyagi    13 Sep 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

<div id="div1" runat="server" style="position:static; border:1px solid black; z-index:1; display:block;">
<div id="MovableLayer" visible=true style="Z-INDEX:1; POSITION:absolute; ">






<div id="divmain" runat="server" style="display:block; position:static">

<iframe id="frame" src="Default.aspx" onload="resize(this)" scrolling="no" style="position:absolute">

</iframe>

</div>



function resize(iframe)
{
//debugger;

iframe.height = iframe.contentWindow.document.body.scrollHeight ;
iframe.width = iframe.contentWindow.document.body.scrollWidth ;

}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : What is the size of nvarchar and varchar?
Previous : Email server
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use