infinitizon
MIS
Hi all,
I'm sorry to say that my asp.net is not sharp enough.
I've been trying different means to get this done without success.
Here's the latest I did
<asp:GridView ID="gdvMonitorTickets" runat="server" AutoGenerateColumns="False"
DataSourceID="ds_getTicketsForPerson">
<Columns>
<asp:BoundField DataField="Ticket_No" HeaderText="Ticket_No"
SortExpression="Ticket_No" ItemStyle-Width="220" InsertVisible="False"
ReadOnly="True" />
<asp:BoundField DataField="Description" HeaderText="Description"
SortExpression="Description" ReadOnly="True" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="TheStatus" HeaderText="TheStatus" ReadOnly="True"
SortExpression="TheStatus" />
<asp:CheckBoxField DataField="status" HeaderText="status"
SortExpression="status" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="ds_getTicketsForPerson" runat="server"
ConnectionString="<%$ ConnectionStrings:WebTablesConnectionString %>"
SelectCommand="SELECT [Ticket No] AS Ticket_No, (CASE WHEN LEN([Description])>30 THEN (left([Description],33)+'...') ELSE [Description] END)[Description],[Date/Time Created] AS [Date], (CASE [status] WHEN 0 THEN 'Opened' WHEN 1 THEN 'Closed' END)[TheStatus],[status] FROM [IT Helpdesk Raised Tickets] WHERE (UserId=@userId) GROUP BY [Ticket No],[Description],[Date/Time Created],[status] ORDER BY [Ticket No] DESC">
<SelectParameters>
<asparameter Name='<%# Eval("User.Identity.Name") %>' Type="String" />
</SelectParameters>
</asp:SqlDataSource>
Please what's wrong
____________________
Men put up a strong face just to cover their weaknesses...good!
But a smile makes them live longer....
Which would you choose?
Think about it.
I'm sorry to say that my asp.net is not sharp enough.
I've been trying different means to get this done without success.
Here's the latest I did
<asp:GridView ID="gdvMonitorTickets" runat="server" AutoGenerateColumns="False"
DataSourceID="ds_getTicketsForPerson">
<Columns>
<asp:BoundField DataField="Ticket_No" HeaderText="Ticket_No"
SortExpression="Ticket_No" ItemStyle-Width="220" InsertVisible="False"
ReadOnly="True" />
<asp:BoundField DataField="Description" HeaderText="Description"
SortExpression="Description" ReadOnly="True" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="TheStatus" HeaderText="TheStatus" ReadOnly="True"
SortExpression="TheStatus" />
<asp:CheckBoxField DataField="status" HeaderText="status"
SortExpression="status" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="ds_getTicketsForPerson" runat="server"
ConnectionString="<%$ ConnectionStrings:WebTablesConnectionString %>"
SelectCommand="SELECT [Ticket No] AS Ticket_No, (CASE WHEN LEN([Description])>30 THEN (left([Description],33)+'...') ELSE [Description] END)[Description],[Date/Time Created] AS [Date], (CASE [status] WHEN 0 THEN 'Opened' WHEN 1 THEN 'Closed' END)[TheStatus],[status] FROM [IT Helpdesk Raised Tickets] WHERE (UserId=@userId) GROUP BY [Ticket No],[Description],[Date/Time Created],[status] ORDER BY [Ticket No] DESC">
<SelectParameters>
<asparameter Name='<%# Eval("User.Identity.Name") %>' Type="String" />
</SelectParameters>
</asp:SqlDataSource>
Please what's wrong
____________________
Men put up a strong face just to cover their weaknesses...good!
But a smile makes them live longer....
Which would you choose?
Think about it.