Hi,
Running into something very odd. I have a radgrid using a custom EditForm template. The bound recordset has a field called Status, containing zero through five. inside the template i have the following code. Basically I need to show this section if the Status is zero, anything else and it's not rendered.
The issue, sometime when I click to edit the row the If Then is never evaluated. I set a breakpoint in CheckStatus. Sometimes the breakpoint is hit and it work fine, sometimes it just renders the template without ever triggering the breakpoint and errors out because the status value isn't in the Buttonlist values.
I have no idea as i cant find a pattern.
Thanks.
Running into something very odd. I have a radgrid using a custom EditForm template. The bound recordset has a field called Status, containing zero through five. inside the template i have the following code. Basically I need to show this section if the Status is zero, anything else and it's not rendered.
<% If CheckStatus() Then%>
<
fieldset
>
<
legend
class
=
"Legend"
>Options</
legend
>
<
table
style
=
"width: 100%;"
>
<
tr
>
<
td
class
=
"tableData"
>
<
asp:RadioButtonList
ID
=
"chkboxSaveOptions"
runat
=
"server"
SelectedValue='<%# Bind("status") %>'>
<
asp:ListItem
Value
=
"1"
>SUBMIT</
asp:ListItem
>
<
asp:ListItem
Selected
=
"True"
Value
=
"0"
>Save as draft</
asp:ListItem
>
</
asp:RadioButtonList
></
td
>
</
tr
>
</
table
>
</
fieldset
>
<%End If%>
The issue, sometime when I click to edit the row the If Then is never evaluated. I set a breakpoint in CheckStatus. Sometimes the breakpoint is hit and it work fine, sometimes it just renders the template without ever triggering the breakpoint and errors out because the status value isn't in the Buttonlist values.
I have no idea as i cant find a pattern.
Thanks.