473,569 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1425
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...@yah oo.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:DropDownLi st runat="server" ID="DropDown_Lo ss"
BackColor="Lave nderBlush" ToolTip="Select loss type" TabIndex="22"
DataSourceID="S qlDataSource4" DataTextField=" CODE"
DataValueField= "CODE" Font-Names="Verdana" AutoPostBack="T rue"></
asp:DropDownLis t><asp:SqlDataS ource ID="SqlDataSour ce4" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:rstConnectio nString %>"
SelectCommand=" SELECT [foo] From [bar]">

code behind:
Protected Sub DropDown_Loss_S electedIndexCha nged(ByVal sender As
Object, ByVal e As System.EventArg s) Handles
DropDown_Loss.S electedIndexCha nged
'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("LossTy pe2") = DropDown_Loss.S electedItem.Tex t
Session("Loss_T ype_changed") = True
lossupdate = DropDown_Loss.S electedItem.Tex t
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
1812
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 text boxes and Combo Boxes (populated successfuly from same data source). When I use the fill command for the SQLDataAdaptor I can get the data by...
10
19325
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 able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes...
1
3537
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 key) ss#
13
4164
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' , data type='Number' ,Display Control='Combo Box', RowSource Type = 'Value List' and Row Source = ' 0;"chair";1;"Table";2;"Bed" ' Therefore, in...
4
2668
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 default. Since the data originally comes from a database I don't know which position in the combo box it will be and I don't want to hardcode the...
1
4855
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 to limit what is displayed in bound combo box C2. When I display Tbl-A records on a continuous form, and navigate away from record 1 to record 2,...
9
32615
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 which row in the combo box is selected?? I looked at the forum and the answers aren't very clear. Of course the MS Access help file is worthless.
7
16345
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 me "The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the...
8
2192
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 Product where as the Row Source (See properties): SELECT tblProducts.ProductName, tblProducts.ProductName FROM tblProducts ORDER BY ProductName;
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7619
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...
0
7930
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. ...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
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...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
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...
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.