qry.Query = @"<Where> <And> <And> <And> <Eq> <FieldRef Name='Resource' /> <Value Type='Integer'> <UserID /> </Value> </Eq> <Eq> <FieldRef Name='Year' /> <Value Type='Text'>" + Year + @"</Value> </Eq> </And> <Eq> <FieldRef Name='Month' /> <Value Type='Text'>0" + TimeSheetMonth + @"</Value> </Eq> </And> <Eq> <FieldRef Name='Status' /> <Value Type='Choice'>Open</Value> </Eq> </And> </Where>"; qry.ViewFields = @"<FieldRef Name='ID' /><FieldRef Name='RequestID' /><FieldRef Name='Title'/><FieldRef Name='" + columnDay + "'/>";
<asp:TemplateField HeaderText="RequestId"> <ItemTemplate> <asp:Label ID="LabelRequest" runat="server" Text='<%# Bind("RequestId") %>'></asp:Label> </ItemTemplate> <ItemStyle Font-Bold="True" HorizontalAlign="Left" Width="120px" Wrap="True" /> </asp:TemplateField> <asp:TemplateField HeaderText="Title"> <ItemTemplate> <asp:Label ID="LabelRequest" runat="server" Text='<%# Bind("RequestTitle") %>'></asp:Label> </ItemTemplate> <ItemStyle Font-Bold="True" HorizontalAlign="Left" Width="120px" Wrap="True" /> </asp:TemplateField> <asp:TemplateField HeaderText="Hours Spent" ItemStyle-Width="10%"> <ItemTemplate> <asp:TextBox ID="TxtHoursSpent" Text="" runat="server" MaxLength="4" Width="25" ></asp:TextBox> </ItemTemplate> <ItemStyle Width="10%"></ItemStyle>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)