473,666 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP .NET 1.1 DropDownList working in FireFox, not IE 7

38 New Member
I'm fairly new to ASP.NET, although I have a fair amount of C# experience.

I'm creating a SharePoint Web Part, but I'm doing the development for it locally in ASP.NET 1.1

I'm using a DropDownList control with autopostback = true in order to run code on the SelectedIndexCh anged event. Both IE 7 and FireFox are obviously loading a page again when a selection is made, but only FireFox actually shows the changes made to the page.

I tried a simple sample page and noticed the same behaviour, here it is

aspx page

<%@ Page language="c#" Codebehind="Fak eFormToCodeStea l.aspx.cs" AutoEventWireup ="false" Inherits="WebPa rtTester.FakeFo rmToCodeSteal" debug="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>FakeForm ToCodeSteal</title>
<meta name="GENERATOR " Content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema" content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Form1" method="post" runat="server">
<asp:DropDownLi st id="DropDownLis t1" style="Z-INDEX: 101; LEFT: 344px; POSITION: absolute; TOP: 176px"
runat="server" Width="120px" Height="24px" AutoPostBack="T rue">
<asp:ListItem Value="The First one">The First one</asp:ListItem>
<asp:ListItem Value="The second">The second</asp:ListItem>
<asp:ListItem Value="One more">One more</asp:ListItem>
</asp:DropDownLis t>
<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 88px; POSITION: absolute; TOP: 88px" runat="server"
Width="232px"></asp:TextBox>
<asp:Label id="lbl" style="Z-INDEX: 103; LEFT: 40px; POSITION: absolute; TOP: 168px" runat="server"
Width="272px" Height="160px"> Stuff here</asp:Label>
</form>
</body>
</HTML>


aspx.cs page

using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;

namespace WebPartTester
{
/// <summary>
/// Summary description for FakeFormToCodeS teal.
/// </summary>
public class FakeFormToCodeS teal : System.Web.UI.P age
{
protected System.Web.UI.W ebControls.Text Box TextBox1;
protected System.Web.UI.W ebControls.Labe l lbl;
protected System.Web.UI.W ebControls.Drop DownList DropDownList1;

private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
}

#region Web Form Designer generated code
override protected void OnInit(EventArg s e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeCompo nent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.DropDownLi st1.SelectedInd exChanged += new System.EventHan dler(this.DropD ownList1_Select edIndexChanged) ;
this.Load += new System.EventHan dler(this.Page_ Load);

}
#endregion

private void DropDownList1_S electedIndexCha nged(object sender, System.EventArg s e)
{
lbl.Text = DropDownList1.S electedItem.Tex t + " Made it here";
}
}
}

Any help would be much appreciated
Jul 12 '07 #1
3 5523
Plater
7,872 Recognized Expert Expert
It could be just something as dumb as a caching issue. I can't think of another way the backend code would cause different reactions from firefox/IE. Web design code yes, backend code no.
Try setting the page to not be cached and see if it helps?
Jul 13 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
Just a note as I'm passing through. Your doctype is invalid and puts IE into quirks mode. Although new pages should always use a strict doctype, if you must use transitional, use this one:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Jul 13 '07 #3
mwalts
38 New Member
Thanks for the replies. I'll try that doc type, I'll admit, I just let VS 2003 put in its default.

I think it might have been a caching issue as well. I ended up adding localhost to the safe sites list and that did it, it now works... not sure why though.

Thanks again for the help.

-mwalts
Jul 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4094
by: sonic_soul | last post by:
Hi, I was curious if I could make my webservice work with firefox client webservice functionality. (i got it to work with webservice.htc) I am able to get firefox to see my serverside web service methods (instantiate a proxy and alert proxy.MyMethod to tell its a valid function), but when I submit to them, I either get, "Cannot convert javascript arg 0" or "not enough arguments" javascript errors. I am thinking that perhaps firefox does...
6
7492
by: Jason | last post by:
I have two drop down lists on my asp.net page, the second of which needs to be filled in based on the selection in the first dropdownlist. The catch however, is that it must occur without a postback and I need to feed the selected values into other variables in the program. Does anyone have a way to accomplish this? I'm guessing javascript, but I'm a little green in that area. Thanks in advance, your help is greatly appreciated.
3
2921
by: Olivier Verdin | last post by:
Hi, I have a page with several Textboxes and several DropDownList. When I click on a 'save' button, it creates a record in a database. The page works fine under Internet Explorer. It does not work under FireFox. The dropdownlist are always selecting the zero index value. If I debug and I stop the program in the page_load, the dropdownlist are already set to zero index.
1
1792
by: Shapper | last post by:
Hello, I have na Asp:DropDownList 2 things are not working in Firefox: CSS and Width. It works fine in Internet Explorer. How to solve this? Thanks,
3
2087
by: TJS | last post by:
I am finding that the serverside requiredvalidator doesn't fire in the firefox browser, and user request proceeds through to my updateProfile method. Validation is working correctly in the IE browser. Anyone seen this problem or have any ideas why this might be occurring ?? (I have web.config browsercaps updated from http://slingfive.com/ ) code: =========
3
6975
by: Klaas | last post by:
Hi, Is it possible to get the text in a dropdown list to be bold or italic? Some entries I want to have bold others normal and others italic. I cant figure out how to do this. tia
11
4460
by: harold.gimenez | last post by:
Hi group, I am trying to change the selection of an ASP Dropdownlist just like "Orange" is selected here: http://www.w3schools.com/js/tryit.asp?filename=try_dom_option_selected The following works fine on IE: document.getElementById('dropdown').options.selected = 0 //
3
4172
by: geetha v | last post by:
Hi All, I need a scrolling DIV is a to display my dynamic tree in left frame. In my jsp , Div overflow is set to "auto" <DIV id=divScroller style="overflow:auto;height:200px"> <!-- stuff goes here --> </DIV I'm using beleow function to set the height ..
3
2423
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains searching capabilities for the gridview. The masterpage has controls contained in a panel control,...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6192
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4366
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.