473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Information lost on postback in FireFox - ASP.NET

Hi,

I have a server ddl which is populated once in PageLoad. The ddl is inside an UpdatePanel. In FireFox, on PostBack, the selected value is always the first in the list. There are no porblems in IE, and I use similar code set in other pages that works just fine.

Thanks for any ideas
Apr 2 '08 #1
6 1477
jeffstl
432 Expert 256MB
Hi,

I have a server ddl which is populated once in PageLoad. The ddl is inside an UpdatePanel. In FireFox, on PostBack, the selected value is always the first in the list. There are no porblems in IE, and I use similar code set in other pages that works just fine.

Thanks for any ideas
OK I have to ask....

Are you using the standard check?:
Expand|Select|Wrap|Line Numbers
  1. If not page.ispostback then
  2.      'code
  3. end if
  4.  
Apr 2 '08 #2
Indeed I am.

Thanks
Apr 3 '08 #3
DrBunchman
979 Expert 512MB
Hi,

I have a server ddl which is populated once in PageLoad. The ddl is inside an UpdatePanel. In FireFox, on PostBack, the selected value is always the first in the list. There are no porblems in IE, and I use similar code set in other pages that works just fine.

Thanks for any ideas
If you take the ddl out of the update panel does it retain it's value correctly on postback?

Dr B
Apr 3 '08 #4
Outside the UpdatePanel there's no problem.

Thanks
Apr 3 '08 #5
DrBunchman
979 Expert 512MB
Outside the UpdatePanel there's no problem.

Thanks
So it sounds like the Javascript used by the UpdatePanel is being interpreted differently by IE and Firefox? That would be surprising because, as far as I know, the .NET AJAX controls create javascript which is supposed to be fully compatible between Firefox and IE6 onwards.

Maybe it's something simpler than that...

I think this question might be better off in the .NET forum where someone might have come across it before (this is a classic ASP forum so is not really the right place). I'll ask someone to move it.

Dr B
Apr 3 '08 #6
Thanks,

I at least temporarily solved it by giving the ddl an onChange event from code behind which sets a HiddenFields value, and I just get it from there later on. This works for both IE and FireFox. Maybe I'm missing out on something but this works for now.

Thanks again for replying
Apr 3 '08 #7

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

Similar topics

8
by: ed | last post by:
Does anyone know if ASP.NET 2.0 is going to incorporate "maintain scroll position on postback" in non-IE browsers like Firefox? This seems like an often requested feature on these newsgroups...
1
by: Joseph Luner | last post by:
I am having problem postback, (code shown below) the variable "my_str" is lost after clicking the "submit" button. Isn't it suppose to display "changed" after posting back? Is there anyway I...
2
by: Ashish | last post by:
Hi All, I have a server runnable textbox control. I also have a server side button object but I hook up javascript to it to show a modal dialog. Upon return it places the value in the textbox...
3
by: Ed Chiu | last post by:
Hi, I plan to use panel to store multiple HTML text in a web form page, here is the code snippet that add HTML into panel: Dim lit1 As New Literal lit1.Text = strHTML...
2
by: summer00 | last post by:
Hi everyone, I found that the value of a variable(string type for example) is lost after the aspx page postback. E.G: private void Page_Load(object sender, System.EventArgs e) {
0
by: Peter Morris [Droopy eyes software] | last post by:
Hi all I have a form which pops open from my page. This form asks the user to enter some values which are then validated on the server. The problem is that the window.opener seems to be lost...
0
by: Boricua | last post by:
I'm using ASP.NET 2.0 I got an imagebutton at the end of my form as a submit button. When the user clicks it the button becomes disabled and continues with the postback. This is what I got, ib...
4
by: Frank | last post by:
Hello everyone, I have a problem that the window.opener variable is lost once my popup page has a postback. On multiple pages they address this problem but I cannot find a correct answer. ...
9
by: =?Utf-8?B?TWFyYyBXb29sZnNvbg==?= | last post by:
I have what seems to be a relatively simple problem when attempting to simulate a postback in ASP.NET from JavaScript. My scenario is (and please don't ask me why) that I have an HTML <a>nchor...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.