473,386 Members | 1,720 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,386 software developers and data experts.

tab out of data bound combo causing page to back

I have come across a problem whereby occasionally a problem occurs
with a data bound combo.
The combo has an event which when changed causes a second combo to
populate (its also data bound). However, sometimes with different
users, when the user presses tab to leave combo1, for no apparent
reason the page returns to the previous page causing the form to lose
the inputted data.
There isn't any code to cause this but Im wondering if there is any
kind of issue (that I can't think of) that may be related. It could
be an IE7 issue but again its one I haven't come across before.
Im puzzled as to why this would happen but as the client is pissed off
I have to provide some kind of answer/solution
IE7 / Win XP

Aug 10 '07 #1
3 1422
You may have guessed it but this is an asp.net app using vb rather
than a vb.net stand alone app

Aug 10 '07 #2
On Aug 10, 5:26 am, kbannon <killianban...@gmail.comwrote:
You may have guessed it but this is an asp.net app using vb rather
than a vb.net stand alone app
Can you easily reproduce this behavior?

If so give us some markup/code behind so we can better investigate.

Thanks,

Seth Rowe

Aug 10 '07 #3
On Aug 10, 11:42 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Aug 10, 5:26 am, kbannon <killianban...@gmail.comwrote:
You may have guessed it but this is an asp.net app using vb rather
than a vb.net stand alone app

Can you easily reproduce this behavior?

If so give us some markup/code behind so we can better investigate.

Thanks,

Seth Rowe
The behaviour can't be reproduced - it happens for no reason totally
at random.
combo code:
<asp:DropDownList runat="server" ID="DropDown_Loss"
BackColor="LavenderBlush" ToolTip="Select loss type" TabIndex="22"
DataSourceID="SqlDataSource4" DataTextField="CODE"
DataValueField="CODE" Font-Names="Verdana" AutoPostBack="True"></
asp:DropDownList><asp:SqlDataSource ID="SqlDataSource4" runat="server"
ConnectionString="<%$ ConnectionStrings:rstConnectionString %>"
SelectCommand="SELECT [foo] From [bar]">

code behind:
Protected Sub DropDown_Loss_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
DropDown_Loss.SelectedIndexChanged
'Set the Session variable LossType2 equal to the selected item
in
'DropDown_Loss, Session variable LossType2 is then used to
bind
'data to DropDown_Loss2. See the databinding options for
DropDownLoss2
Session("LossType2") = DropDown_Loss.SelectedItem.Text
Session("Loss_Type_changed") = True
lossupdate = DropDown_Loss.SelectedItem.Text
End Sub

Im not convinced its an ASP.net issue but could be an IIS or browser
issue.

Aug 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul Edwards | last post by:
I am writing in c# with Visual Studio 2003. I am creating a form that shows one record from a Dataset that is populated with only one record from SQL Server 2000. I am using bound controls, both...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
1
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary...
13
by: nyt | last post by:
I have a problem of number and text field. I got the database file(mdb) that contains many combo boxes used and its list values are created by "value list" For eg field Field name= 'furniture'...
4
by: Evan | last post by:
I have a data bound combo box. The combo box displays several items (status code descriptions). After the combo box is bound, I want to set the combo box so that the "Draft" status is displayed by...
1
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
9
by: Vmusic | last post by:
Hi, I'm using MS Access 2002. I have a form with a combo box built from a query that returns one column, and that one column is the bound column. How do you use VBA to programmatically change...
7
by: PW | last post by:
Hi, I have a form with unbound fields on it. The user selects a record from a recordset and I populate the unbound fields. When I try to change the unbound quantity text box, Access 2003 tells...
8
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.