G
Groove
I have a strange problem. It seems that for some reason, a
OnSelectedIndexChanged event is no producing an error in IE6. What concerns
me is that I just performed that large Windows update a couple of weeks ago
and it updated ActiveX "stuff" in IE. I'm not sure if the update has
effected IE or there's something wrong with mt .net application.
I have a simple DDL. It calls a sub when the value in the DDL is changed.
Now, when I change the value, IE displays the js error msg box and says:
'event' is null or not an object.Line X, character X.
It gets weird. It refers to a place in my code that makes no sense. There's
no javascript or anything .net generated on line X. Furthermore, I deleted
massive amounts of makr up code as a test. I wanted to see if the reference
to line x changed. I refreshed and tested the page. Same error even though
a 100+ lines of code are now gone (html), it still references to the same
place in my code! The page works fine as it always did in Firefox 1.5.
My simple code:
<aspropDownList ID="ddlCapitalItems" runat="server" BackColor="#FFFFFF"
Font-Names="Verdana,Arial" Font-Size="8pt" AutoPostBack="True"
OnSelectedIndexChanged="ddlCapitalItems_SelectedIndexChange" />
Protected Sub ddlCapitalItems_SelectedIndexChange(ByVal Sender As Object,
ByVal E As EventArgs)
'------------------------------------------------------------------------------------
'- This sub routine is called when the Capital Items Drop Down List is
changed. -
'- If checks to see if the user selected "Other" and if so, it will enable
the -
'- the txtOtherDesc control and related validation controls. -
'------------------------------------------------------------------------------------
If ddlCapitalItems.SelectedValue = 1 Then
txtOtherDesc.Enabled = True
txtOtherDesc.Text = ""
OtherDescRequired.Enabled = True
Else
txtOtherDesc.Enabled = False
txtOtherDesc.Text = "Not Required"
OtherDescRequired.Enabled = False
End If
End Sub
OnSelectedIndexChanged event is no producing an error in IE6. What concerns
me is that I just performed that large Windows update a couple of weeks ago
and it updated ActiveX "stuff" in IE. I'm not sure if the update has
effected IE or there's something wrong with mt .net application.
I have a simple DDL. It calls a sub when the value in the DDL is changed.
Now, when I change the value, IE displays the js error msg box and says:
'event' is null or not an object.Line X, character X.
It gets weird. It refers to a place in my code that makes no sense. There's
no javascript or anything .net generated on line X. Furthermore, I deleted
massive amounts of makr up code as a test. I wanted to see if the reference
to line x changed. I refreshed and tested the page. Same error even though
a 100+ lines of code are now gone (html), it still references to the same
place in my code! The page works fine as it always did in Firefox 1.5.
My simple code:
<aspropDownList ID="ddlCapitalItems" runat="server" BackColor="#FFFFFF"
Font-Names="Verdana,Arial" Font-Size="8pt" AutoPostBack="True"
OnSelectedIndexChanged="ddlCapitalItems_SelectedIndexChange" />
Protected Sub ddlCapitalItems_SelectedIndexChange(ByVal Sender As Object,
ByVal E As EventArgs)
'------------------------------------------------------------------------------------
'- This sub routine is called when the Capital Items Drop Down List is
changed. -
'- If checks to see if the user selected "Other" and if so, it will enable
the -
'- the txtOtherDesc control and related validation controls. -
'------------------------------------------------------------------------------------
If ddlCapitalItems.SelectedValue = 1 Then
txtOtherDesc.Enabled = True
txtOtherDesc.Text = ""
OtherDescRequired.Enabled = True
Else
txtOtherDesc.Enabled = False
txtOtherDesc.Text = "Not Required"
OtherDescRequired.Enabled = False
End If
End Sub