tab out of data bound combo causing page to back

K

kbannon

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
 
K

kbannon

You may have guessed it but this is an asp.net app using vb rather
than a vb.net stand alone app
 
R

rowe_newsgroups

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
 
K

kbannon

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top