R
Richard Lionheart
Hi,
I've got the following control defined in my .aspx file:
<asp:dropdownlist id="cbOperation" style="Z-INDEX: 102; LEFT: 162px;
POSITION: absolute; TOP: 77px" runat="server" Width="38px">
<asp:listitem text="?" value="0" />
<asp:listitem text="+" value="1" />
<asp:listitem text="-" value="2" />
<asp:listitem text="*" value="3" />
<asp:listitem text="/" value="4" />
</asp:dropdownlist>
I tried to intervene when the selection changed with the following code in
my .aspx.cs file:
private void cbOperation_SelectedIndexChanged(object sender,
System.EventArgs e)
{
tbResult.Text = "";
}
The TextBox tbResult did not get blanked out when I changed the selection.
A parallel routine, btnEquals_Click, succeeds in blanking the Result in
various circumstances.
I thought perhaps AutoEventWireup="false" might have something to do with
it, so I changed it to "true" and "True", but that made no difference.
Have I provided enough information here to allow you to make an educated
guess about what causes my problem? Should I post the entire .aspx and
..aspx.cs files?
Thanks in Advance,
Richard
I've got the following control defined in my .aspx file:
<asp:dropdownlist id="cbOperation" style="Z-INDEX: 102; LEFT: 162px;
POSITION: absolute; TOP: 77px" runat="server" Width="38px">
<asp:listitem text="?" value="0" />
<asp:listitem text="+" value="1" />
<asp:listitem text="-" value="2" />
<asp:listitem text="*" value="3" />
<asp:listitem text="/" value="4" />
</asp:dropdownlist>
I tried to intervene when the selection changed with the following code in
my .aspx.cs file:
private void cbOperation_SelectedIndexChanged(object sender,
System.EventArgs e)
{
tbResult.Text = "";
}
The TextBox tbResult did not get blanked out when I changed the selection.
A parallel routine, btnEquals_Click, succeeds in blanking the Result in
various circumstances.
I thought perhaps AutoEventWireup="false" might have something to do with
it, so I changed it to "true" and "True", but that made no difference.
Have I provided enough information here to allow you to make an educated
guess about what causes my problem? Should I post the entire .aspx and
..aspx.cs files?
Thanks in Advance,
Richard