Click here to Skip to main content
15,887,135 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Convert decimal number into Italian formate while export to excel. Pin
Jörgen Andersson24-Feb-10 3:40
professionalJörgen Andersson24-Feb-10 3:40 
Questioncalling web method in asp.net web page Pin
dalila y23-Feb-10 8:43
dalila y23-Feb-10 8:43 
AnswerRe: calling web method in asp.net web page Pin
mrMercury23-Feb-10 8:48
mrMercury23-Feb-10 8:48 
AnswerRe: calling web method in asp.net web page Pin
Sandeep Mewara21-Mar-10 21:09
mveSandeep Mewara21-Mar-10 21:09 
QuestionLossing Sessions and static varaibles becoming null [modified] Pin
Satish - Developer23-Feb-10 3:02
Satish - Developer23-Feb-10 3:02 
AnswerRe: Lossing Sessions and static varaibles becoming null Pin
Parwej Ahamad23-Feb-10 4:58
professionalParwej Ahamad23-Feb-10 4:58 
GeneralRe: Lossing Sessions and static varaibles becoming null Pin
Satish - Developer23-Feb-10 20:39
Satish - Developer23-Feb-10 20:39 
QuestionOrder by Pin
Qasim198423-Feb-10 2:48
professionalQasim198423-Feb-10 2:48 
Dear Experts

I have gridview with bound with objectDatasource. I want to order by all the results with date. I can not see the property of objectdatasource that can order the result by date. I am waiting for your help please

My code is give as
<asp:ObjectDataSource id="odsCaseMovement" runat="server" OldValuesParameterFormatString="original_{0}"
               TypeName="Atlas.Core.ObjectDataSource.odsV_CaseEnquiry" SelectMethod="odsLoadCaseByBarCode" OnSelected="odsCaseMovement_Selected">
               <SelectParameters>
                   <asp:ControlParameter ControlID="txtCaseBarcode" Name="par_caseBarcode" PropertyName="Text"
                       Type="String" />
               </SelectParameters>
           </asp:ObjectDataSource>


The gridview is

<acc:AtlasGrid id="grvCaseMovement" runat="server" Width="98%" CssClass="GridTable" DataSourceID="odsCaseMovement" PageSize="20"
                AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" OnRowDataBound="grvCaseMovement_RowDataBound">
               <RowStyle CssClass="list_row" />
               <PagerTemplate>
                   <div style="width: 100%; text-align: center;">
                       <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                           Style="color: black">&lt;&lt; First</asp:LinkButton>
                       <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="LinkButton2" runat="server"
                           Style="color: black">&lt; Prev</asp:LinkButton>
                       [Records
                       <%= grvCaseMovement.PageIndex * grvCaseMovement.PageSize + 1%>
                       -
                       <%= grvCaseMovement.PageIndex * grvCaseMovement.PageSize + grvCaseMovement.Rows.Count%>
                       Of
                       <%= Atlas.Core.ObjectDataSource.odsV_CaseEnquiry.rowCount%>
                       ]
                       <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                           Style="color: black">Next &gt;</asp:LinkButton>
                       <asp:LinkButton CommandName="Page" CommandArgument="Last" ID="LinkButton4" runat="server"
                           Style="color: black">Last &gt;&gt;</asp:LinkButton>
                   </div>
               </PagerTemplate>
               <Columns>
                   <asp:BoundField DataField="ID" HeaderText="Case ID" Visible="False" />
                   <asp:BoundField DataField="Barcode" HeaderText="Case Barcode" SortExpression="Barcode" />
                   <asp:BoundField DataField="OriginalDate"  HeaderText="Date Generated" SortExpression="OriginalDate" DataFormatString="{0:dd/MM/yyyy}"  />
                    <asp:BoundField DataField="Date" HeaderText="Delivery Date" DataFormatString="{0:dd/MM/yyyy}" />
                   <asp:BoundField DataField="AccountName" HeaderText="Account Name" />
                   <asp:BoundField DataField="AccountNumber" HeaderText="Account Number" />
                   <asp:BoundField DataField="Loaded" HeaderText="Date &amp; Time Loaded" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" />
                   <asp:BoundField DataField="POD" HeaderText="Date &amp; Time Delivered" SortExpression="POD" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" />
                   <asp:BoundField DataField="State" HeaderText="Status" SortExpression="State" />
                   <asp:BoundField DataField="Name" HeaderText="Drop Point" SortExpression="Name" />
                   <asp:BoundField DataField="RouteNumber" HeaderText="Route Number" SortExpression="RouteNumber" />
                   <%--<asp:BoundField DataField="Returning" HeaderText="Job Type" SortExpression="Returning" /> --%>

                    <asp:TemplateField HeaderText="Job Type">
                       <ItemTemplate>
                           <asp:Label ID="lblJobType" runat="server" Text='<%# Eval("Returning")%>' ></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Asset">
                   <ItemTemplate>
                       <asp:Label id="LabAsset" runat="server" Text='<%# Eval("AssetID") %>' ></asp:Label>
                   </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="AssetType">
                   <ItemTemplate>
                       <asp:Label id="LabAssetType" runat="server" Text='<%# Eval("AssetTypeID") %>' ></asp:Label>
                   </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Warehouse Poistion" ItemStyle-Wrap="false" SortExpression="WarehousePosID">
                     <ItemTemplate>
                        <asp:Label ID="lblWarePos" runat="server" Text ='<%# Eval("WarehousePosID") %>'></asp:Label>
                     </ItemTemplate>
                   </asp:TemplateField>

               </Columns>
               <PagerStyle CssClass="GridTablePagging" />
               <HeaderStyle CssClass="GridTableHeader" />
           </acc:AtlasGrid>

AnswerRe: Order by Pin
R. Giskard Reventlov23-Feb-10 5:09
R. Giskard Reventlov23-Feb-10 5:09 
GeneralRe: Order by Pin
Qasim198423-Feb-10 5:13
professionalQasim198423-Feb-10 5:13 
GeneralRe: Order by Pin
R. Giskard Reventlov23-Feb-10 5:24
R. Giskard Reventlov23-Feb-10 5:24 
GeneralRe: Order by Pin
Qasim198423-Feb-10 5:29
professionalQasim198423-Feb-10 5:29 
Questionjava date validation Pin
Member 395625723-Feb-10 2:22
Member 395625723-Feb-10 2:22 
AnswerRe: java date validation Pin
R. Giskard Reventlov23-Feb-10 2:27
R. Giskard Reventlov23-Feb-10 2:27 
Questionlogin control - aspnet_regsql.exe Pin
arkiboys23-Feb-10 1:49
arkiboys23-Feb-10 1:49 
AnswerRe: login control - aspnet_regsql.exe Pin
Not Active23-Feb-10 1:55
mentorNot Active23-Feb-10 1:55 
GeneralRe: login control - aspnet_regsql.exe Pin
arkiboys23-Feb-10 2:30
arkiboys23-Feb-10 2:30 
GeneralRe: login control - aspnet_regsql.exe Pin
Not Active23-Feb-10 5:38
mentorNot Active23-Feb-10 5:38 
QuestionMaking url clickable in textbox Pin
sumit703423-Feb-10 0:38
sumit703423-Feb-10 0:38 
AnswerRe: Making url clickable in textbox Pin
R. Giskard Reventlov23-Feb-10 0:56
R. Giskard Reventlov23-Feb-10 0:56 
GeneralRe: Making url clickable in textbox Pin
sumit703423-Feb-10 1:13
sumit703423-Feb-10 1:13 
GeneralRe: Making url clickable in textbox Pin
R. Giskard Reventlov23-Feb-10 2:25
R. Giskard Reventlov23-Feb-10 2:25 
AnswerRe: Making url clickable in textbox Pin
J4amieC23-Feb-10 2:02
J4amieC23-Feb-10 2:02 
Questionhow to convert hyperlink to label? Pin
Tridip Bhattacharjee23-Feb-10 0:31
professionalTridip Bhattacharjee23-Feb-10 0:31 
AnswerRe: how to convert hyperlink to label? Pin
Brij23-Feb-10 2:38
mentorBrij23-Feb-10 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.