T
tshad
I have a page that has been displaying some weird behavior.
I have 2 radio buttons that work fine until I press the link button with an
item selected in my link box (if an item is not selected, there is no
problem).
This makes no sense. I am not doing anything with the item in the listbox.
It just has to be selected.
What happens is that once this starts happening, the radio buttons WILL NOT
stay selected. So the page quits working.
If I don't select either of the items in the listbox, I can press the
Linkbutton all day and the radio buttons will work. But once I select it,
the radio buttons will never work again.
What is wrong here?
Is this a bug in Asp? There is no Database access here, so that is not the
problem.
I can't figure this out nor can anyone I work with.
I have stripped out everything that is not related to the problem.
Anyone have an idea as to what is causing this problem???
******************************************************
<%@ Page Language="VB" trace="false" debug="true" ContentType="text/html"
ResponseEncoding="iso-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>:: Staffing Workshop ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
End Sub
Sub GetScreenNames_Checked(s as Object, e as EventArgs)
End Sub
Sub LinkJob_Click(s as Object,e as EventArgs)
End Sub
</script>
</head>
<body id="myBody" runat="server">
<form id="Form1" runat="server">
<input type="hidden" name="__SCROLLPOS" value="" />
<br>
<table border="0" width="650" style="border-collapse:collapse" >
<tr>
<td width="701">
<asp:RadioButton ID="ScreenTests" Text="Screening"
TextAlign="right" AutoPostBack="true"
OnCheckedChanged="GetScreenNames_Checked" GroupName="Positions"
runat="server" Checked="true" />
<asp:RadioButton ID="SkillsTests" Text="Skills" TextAlign="right"
AutoPostBack="true" OnCheckedChanged="GetScreenNames_Checked"
GroupName="Positions" runat="server" /> </td>
</tr>
<tr>
<td ><asp:ListBox ID="Positions" SelectionMode="multiple" Rows="8"
Width="600" runat="server">
<asp:ListItem Value="1">This is Line 1</asp:ListItem>
<asp:ListItem Value="2">This is Line 2</asp:ListItem>
</asp:ListBox>
</td>
</tr>
<tr>
<td >
<asp:LinkButton ID="LinkJob" Text="Link Job"
OnClick="LinkJob_Click" runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>
*******************************************************
Thanks,
Tom
I have 2 radio buttons that work fine until I press the link button with an
item selected in my link box (if an item is not selected, there is no
problem).
This makes no sense. I am not doing anything with the item in the listbox.
It just has to be selected.
What happens is that once this starts happening, the radio buttons WILL NOT
stay selected. So the page quits working.
If I don't select either of the items in the listbox, I can press the
Linkbutton all day and the radio buttons will work. But once I select it,
the radio buttons will never work again.
What is wrong here?
Is this a bug in Asp? There is no Database access here, so that is not the
problem.
I can't figure this out nor can anyone I work with.
I have stripped out everything that is not related to the problem.
Anyone have an idea as to what is causing this problem???
******************************************************
<%@ Page Language="VB" trace="false" debug="true" ContentType="text/html"
ResponseEncoding="iso-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>:: Staffing Workshop ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
End Sub
Sub GetScreenNames_Checked(s as Object, e as EventArgs)
End Sub
Sub LinkJob_Click(s as Object,e as EventArgs)
End Sub
</script>
</head>
<body id="myBody" runat="server">
<form id="Form1" runat="server">
<input type="hidden" name="__SCROLLPOS" value="" />
<br>
<table border="0" width="650" style="border-collapse:collapse" >
<tr>
<td width="701">
<asp:RadioButton ID="ScreenTests" Text="Screening"
TextAlign="right" AutoPostBack="true"
OnCheckedChanged="GetScreenNames_Checked" GroupName="Positions"
runat="server" Checked="true" />
<asp:RadioButton ID="SkillsTests" Text="Skills" TextAlign="right"
AutoPostBack="true" OnCheckedChanged="GetScreenNames_Checked"
GroupName="Positions" runat="server" /> </td>
</tr>
<tr>
<td ><asp:ListBox ID="Positions" SelectionMode="multiple" Rows="8"
Width="600" runat="server">
<asp:ListItem Value="1">This is Line 1</asp:ListItem>
<asp:ListItem Value="2">This is Line 2</asp:ListItem>
</asp:ListBox>
</td>
</tr>
<tr>
<td >
<asp:LinkButton ID="LinkJob" Text="Link Job"
OnClick="LinkJob_Click" runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>
*******************************************************
Thanks,
Tom