Div control height does not work in IE 6 but works in IE 7?

I am using a Div control to expand and contract the height to show more fields in a FormView. It works in IE 7 but in IE 6 does not work? Any ideas?

When the ASP.NET 2.0 WebForm opens up in IE 6 the hight is disregarded but in IE 7 it shows correctly. Then I have a button in the FormView that changes the height with same results, works in IE 7 but not IE 6. 

<div id="divInsert" style="width: 100px; height: 270px">
  ... FormView inside there
</div>

Protected Sub btnPanelInsert_Click(ByVal sender As Object, ByVal e As System.EventArgs)
 
If (CType(FormViewRequestType.FindControl("btnPanelInsert"), Button).Text = "Show More...") Then
   
CType(FormViewRequestType.FindControl("divInsert"), HtmlControl).Style.Add(HtmlTextWriterStyle.Height, "650")
   
CType(FormViewRequestType.FindControl("btnPanelInsert"), Button).Text = "Show Less..."
 
ElseIf (CType(FormViewRequestType.FindControl("btnPanelInsert"), Button).Text = "Show Less...") Then
   
CType(FormViewRequestType.FindControl("divInsert"), HtmlControl).Style.Add(HtmlTextWriterStyle.Height, "270")
   
CType(FormViewRequestType.FindControl("btnPanelInsert"), Button).Text = "Show More..."
  End If
End Sub

 

Any ideas?


Peace in Christ
Marco Napoli
http://www.ourlovingmother.org
0
MarcoPio
10/4/2007 9:44:55 PM
asp.net.web-forms 93655 articles. 2 followers. Follow

3 Replies
221 Views

Similar Articles

[PageSpeed] 47

IE 6 and 7 deal with heights in different ways, IE7's version is more standards-compliant. Try adding the overflow:hidden; rule to the style attribute of your div.

0
squaret
10/4/2007 11:10:22 PM

MarcoPio, is the rendered html same in both browsers?

0
coolcyber
10/4/2007 11:34:52 PM

Hi Squaret,

The overflow:hidden; worked great.

coolcyber, yes the html renders the same in both IE 6 and 7

Thank you so much.

 


Peace in Christ
Marco Napoli
http://www.ourlovingmother.org
0
MarcoPio
10/5/2007 4:21:51 AM
Reply:

Similar Artilces:

ie web controls not working in mozilla and ie 7!
Hi all! Is there any way to make ie web controls work in mozilla and ie 7? (especially the multipage control) Thanks in advance! IE Web Controls are no longer under active development and are not supported by Microsoft.  As far as I know nobody has made them work in Mozilla or IE7.If you have the ability to install ASP.NET 2.0, you can use the MultiView control.  Check out this article. Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you! The project I work on is on asp.net 2.0 but I cannot manipulate multiview using javasc...

Runtime tooltip of dropdownlist is not working in ie 6 while working fine in ie 7.
Hi,  I am setting tooltip of my dropdown list and its items using javascript at runtime while filling dropdownlist at runtime. --My function of javascript..  Filldropdownlist(text,value) { for(var i=0; i<obj.length; i++) { ddl.options[i] = new Option(text,value); ddl.options[i].title = text; }  } This is working fine in  ie7 but it is not working with ie 6.. If any one could tell me why ..or could tell me alternative of doing this.   A lot of thanks in advance.   There is no title property in IE 6 and below for a DDL. See here for alternative:...

window.history.forward(1) or history.go(1) doesn't work in IE 7 to prevent back button, works in IE 6
Hi, I know the issues has been beat to death, but hack below worked ok in IE6. However it doesn't work in IE 7, any ideas on how to replicate the same functionality in IE 7? <body onload="window.history.forward(1);" or history.go(1)  Thanks for any suggestions or pointers.   Hello, I tried and found that the javascript works on my pc, I am also using IE7. Make sure that the javascript is enabled by IE7. JessicaJessica CaoSincerely,Microsoft Online Community Support“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a ...

My website work on IE 7.0 but not on IE 6.2
Hi I have an website wroten in ASP.Net C# on Framework 3.5. It work perfectly when I run it on a client with IE 7.0 but the Interface looks strange on a Client with IE 6.2. What should I do? I want my web site work at least on all IE greater thean 5.0?  Please help me. Is there any property on my solution or on any page that can help me?   Thank you. Best regards,Ahmad First you might want to forget about IE 6.  It wasn't one of Microsofts best.  Most people I know don't even use or support 6 anymore I know at the college I work for doesn't.&nb...

My website work on IE 7.0 but not on IE 6.2
Hi I have an website wroten in ASP.Net C# on Framework 3.5. It work perfectly when I run it on a client with IE 7.0 but the Interface looks strange on a Client with IE 6.2. What should I do? I want my web site work at least on all IE greater thean 5.0?  Please help me. Is there any property on my solution or on any page that can help me?   Thank you. Best regards,Ahmad  Quite simply, IE6 is a piece of trash when it comes to standards compliance (i.e. CSS, javascript, and the like). A quick google will give you some starting points to look at, but I'm afraid there'...

Validations not working in Netscape 7.x but they are working in IE 6.x
Validations not working in Netscape 7.x but they are working in IE 6.x Best Regards, Vivek Singh Hi, do you mean the ASP.NET validation controls client side functions? Because only IE 5+ are considered an uplevel browser the client side validation will work. Other browsers are considered downlevel (this can be adjusted in the machine.config btw) so the webuivalidation.js doesn't get submitted to the client. Validation will allways occur though but only on the server side. Besides that I also believe that other browsers aren't capable of understanding the jscript that gets shipped with...

Validations not working in Netscape 7.x but they are working in IE 6.0
Validations not working in Netscape 7.x but they are working in IE 6.0 Best Regards, Vivek Singh What exacting do you mean by not working? Do you mean that the input is not being validated? Make sure that you have then enabled. If you are using VS, then right click on your project go to properties Common Properties Designer Defaults and make sure that the drop down list says at least IE 5.0. If you mean that the validation is causing a postback, then this is what is meant to happen. This is because of the javascript that ASP.NET passes to validate the input.Intel...

GridView Edit button works in Mozilla Firefox and IE 7 but not in IE 6
This problem is related to browsers:Below code create a GridView which displays 3 colums and provides 'Edit' button to the user.GridView is properly filled, but Edit works only in Internet Explorer 7 and Mozilla FireFox.It does not work in Internet Explorer 6. So is there any setting to be done for making this code to run on IE 6.  <form> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True" DataKeyNames="productid" DataSourceID="SqlDataSource1...

Alignment problem: works fine for IE 6.0 but not for IE 7.0
 Hi all...i have set middle  alignment for my web-form which is working fine for IE 6.0 , but for IE 7.0  it's showing left aligned .  check out here... you would get the solution > Page centered in ALL browsersanother one for same problem >  Centering your page in all browsershope it helps./. Thanx, [KaushaL] || BloG || Profile || Microsoft MVP"I would love to change the world, but they won’t give me the source code"Don't forget to click "Mark as Answer" on the post that helped you.This credits that member, earns you a point ...

HoverMenuExtender not work working with IE 6
First, I did search for this problem and found what looks to be the same issue...http://forums.asp.net/thread/1549447.aspxBasically, I have a HME control that is supposed to popup when hovering over a link control.  It works just fine in Firefox and IE 7.  But, in IE 6, it appears in the upper left of the browser.  The solution was to point to the new version of the control toolkit.  Well, how do I do that other than replacing bin/AjaxControlToolkit.dll with the latest version?  I did that---version 1.0.10201.0 is what I'm using.I also took the appropriate steps as m...

Does IE Tab work with IE 7?
By "work", I mean does it load a webpage with IE7 or does it still use the IE6 engine? No point in installing IE7 if it's the latter... CrapTrapOla wrote: > By "work", I mean does it load a webpage with IE7 or does it still use > the IE6 engine? No point in installing IE7 if it's the latter... You can only have one IE engine installed at a time. If you install IE7, that's what IEtab uses. CrapTrapOla wrote: > By "work", I mean does it load a webpage with IE7 or does it still use > the IE6 engine? No point in installing...

Java not working for Web sites but work for IE
Name: James Yellowlees Email: jyellowleesathotmaildotcom Product: Firefox Summary: Java not working for Web sites but work for IE Comments: on different internal web sites it seems that the java code for Firefox doesn't work. I get weird errors and the web pages don't display or display incorrectly... One error is Document.all.activitylistcontainer.runtimestyple is undefined. and another one is error in parsing value for property 'clip'. declaration dropped. now the weird thing is that IE all versions work correctly. Browser Details: Mozilla/5.0 (Windo...

Web Controls does not work with IE
I installed web controls and added to my project. In visual Studio .Net IDE I can clearly see the web controls. But they don't work on IE6. It's working on netscape and opera. What can be wrong? I have Windows XP Pro SP2 installed. I tried with a Windows XP without SP2 installed and still does not work. But IE5.0 displays properly? What's wrong with IE6? may help. It's working fine here with Windows XP Pro SP1 and I.E. 6.0DNN skins ForumTressleworks modulesDNN & webhostingIEWCtrls I tried to reinstall and recompile still does'nt work. On compiling (build) I receive something like thi...

IE (6 & 7) iFrame Querystring Parameters Set In .NET MVC Page Not Working, Seemed Stripped, But Appear In Tact On Page Source
We're using .NET MVC, and we're trying to dynamically (through the controller) set the iFrame's URL. This worked fine on FireFox and Chrome, but not Ie. On Ie only the first case site lets the user log through correctly. The v10 and v9 sites don't. All sites use querystring params to log in. Their source looks like this (unsuccessful source in IE) - no visible difference. * Also, we tried that whole IE7 Security setting Enabled for navigating to frame within another domain - that wasn't the problem; it still doesn't work. Also doesn't work on IE6. Same results ...

Web resources about - Div control height does not work in IE 6 but works in IE 7? - asp.net.web-forms

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

China lays out its vision of the internet: more control, more censorship
... censorship of the internet, in a high-profile speech underscoring China's increasingly emphatic attempts to justify its strict online control. ...

Control traffic as a cat sheriff in Street Fever: City Adventure
... as you play Marty the cat sheriff in this new part arcade, part puzzle game from Meow Studio. In Street Fever: City Adventure you will control ...

How to engage Tesla's Launch Control mode
Filed under: Green , Videos , Tesla , Electric Short video shows Model S keeping it straight on a rain-slicked road.

Nuance’s voice control going where Siri, Google Now and Cortana fall short
... for Samsung's S Voice and Apple’s Siri, is ready to go where no other digital assistant has gone before. The company wants to bring voice control ...

Google Updates BigQuery With New Cost Controls
Enterprises using BigQuery to run analytics against large data sets can now set a daily query quota on a project-wide or an individual basis. ...

Welcome to Snacking Culture: Consumers Take Control Of Portion Sizing
More than a decade has elapsed since we reported on consumer struggles with controlling portion sizing as a primary hurdle to proper eating habits ...

After losing control of Parliament, Venezuelan socialists create a new one
After losing control of Parliament, Venezuelan socialists create a new one

Anti-Terror: Visa Control, Airstrikes Seen as Most Effective
Americans are most likely to see overhauling the nation's visa waiver program and intensifying airstrikes against the Islamic State as effective ...

DHS official throws cold water on using no-fly list for gun control
... the proposal to use the no-fly list is nothing more than a red herring — a way to change the subject from a terrorist attack to gun control. ...

Resources last updated: 12/18/2015 2:44:16 PM