I want to check if certain values exist in a table based on ID in the DetailView. For instance, i have 4 fields in the table:
ID Approved1 Approved2 Approved3
A)First i want to check if Approved1, Approved2, Approved3 are not null, meaning the values are either Yes or No for all the 3 fields. If anyone of them is null or blank then i want to quit the function
B)If all Approved(*) fields have a value of "YES" based on the selected ID in the DetailView then i want to call some function; C)If one of the Approved fields is "NO" then i want to call some other function.
I have so far the followings but not sure how to put it together. thanks here is my aspx file
<asp:DetailsView ID="DV_Mgr_Appr" runat="server" Height="50px" Width="867px" AutoGenerateRows="False"
BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
CellPadding="3" DataKeyNames="ID" DataSourceID="DV_ManagerApp_DS" GridLines="Horizontal"
DefaultMode="Edit">
<AlternatingRowStyle BackColor="#CCCCFF" />
<EditRowStyle BackColor="#FFFFE1" Font-Bold="True" ForeColor="#003366" />
<Fields>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True"
SortExpression="ID" />
'''
'''
'''
'''
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="True"
CommandName="Update" Text="Save Changes" />
<asp:Button ID="Button2" runat="server" CausesValidation="False"
CommandName="Cancel" Visible="false" Text="Cancel" />
</EditItemTemplate>
<ItemTemplate>
</asp:DetailsView>