Click here to Skip to main content
15,905,776 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: logging out Pin
nagendrathecoder26-Aug-09 22:47
nagendrathecoder26-Aug-09 22:47 
QuestionASP.NET Gridview DataBound event retaining previous value Pin
Inderjeet Kaur26-Aug-09 21:52
Inderjeet Kaur26-Aug-09 21:52 
AnswerRe: ASP.NET Gridview DataBound event retaining previous value Pin
Arun Jacob26-Aug-09 23:02
Arun Jacob26-Aug-09 23:02 
GeneralRe: ASP.NET Gridview DataBound event retaining previous value Pin
Inderjeet Kaur26-Aug-09 23:25
Inderjeet Kaur26-Aug-09 23:25 
GeneralRe: ASP.NET Gridview DataBound event retaining previous value Pin
Ibrahim Bello27-Aug-09 2:00
Ibrahim Bello27-Aug-09 2:00 
GeneralRe: ASP.NET Gridview DataBound event retaining previous value [modified] Pin
Inderjeet Kaur27-Aug-09 16:53
Inderjeet Kaur27-Aug-09 16:53 
GeneralRe: ASP.NET Gridview DataBound event retaining previous value Pin
Ibrahim Bello27-Aug-09 21:00
Ibrahim Bello27-Aug-09 21:00 
GeneralRe: ASP.NET Gridview DataBound event retaining previous value Pin
Inderjeet Kaur27-Aug-09 21:29
Inderjeet Kaur27-Aug-09 21:29 
No it didn't work. i give u the code of my gridview also

<asp:UpdatePanel ID="pnlBG" runat="server">
<ContentTemplate>
<asp:ObjectDataSource ID="objCardFeesReport" runat="server" TypeName="BLL.ReportBLL"
SortParameterName="sortExpression" EnablePaging="true" SelectCountMethod="GetReportsRecCount"
SelectMethod="GetCardFeesReport" OnSelected="objCardFeesReport_Selected">
<SelectParameters>
<asp:Parameter Name="sortExpression" Type="String" />
<asp:Parameter Name="filteredBy" Type="String" />
<asp:Parameter Name="startRowIndex" DefaultValue="0" Type="Int32" />
<asp:Parameter Name="maximumRows" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:GridView ID="gvCardFeesRReport" runat="server" PageSize="10" AllowSorting="true"
AllowPaging="true" AutoGenerateColumns="false" CellPadding="5" CellSpacing="0"
Width="100%" DataSourceID="objCardFeesReport" CssClass="GridMain" OnPageIndexChanging="gvCardFeesRReport_PageIndexChanging"
OnSorting="gvCardFeesRReport_Sorting"
OnRowCommand="gvCardFeesRReport_RowCommand"
>
<HeaderStyle CssClass="HeaderRow" />
<RowStyle CssClass="NormalRow" />
<AlternatingRowStyle CssClass="AlternateRow" />
<PagerStyle CssClass="PagingRow" HorizontalAlign="Right" Height="20px" />
<SelectedRowStyle CssClass="HighlightedRow" />
<EmptyDataRowStyle CssClass="NoRecords" />
<EmptyDataTemplate>
<asp:Label ID="lblNoRecords" Text="Your search did not yield any result." runat="server">
</asp:Label>
<p>
Suggestions:</p>
<li>Try different Filter.</li>
<li>There may be no records in the system.</li>
</EmptyDataTemplate>
<Columns>
<asp:BoundField HeaderStyle-CssClass="gridViewHeader" DataField="AccountNumber" SortExpression="AccountNumber"
HeaderText="Account Number" FooterStyle-Wrap="false"></asp:BoundField>
<asp:BoundField HeaderStyle-CssClass="gridViewHeader" DataField="CardNumber" SortExpression="CardNumber"
HeaderText="Card Number" FooterStyle-Wrap="false"></asp:BoundField>
<asp:BoundField HeaderStyle-CssClass="gridViewHeader" DataField="TranTime" SortExpression="TranTime"
DataFormatString="{0Big Grin | :-D }" HeaderText="Transaction Date" FooterStyle-Wrap="false">
</asp:BoundField>
<asp:BoundField HeaderStyle-CssClass="gridViewHeader" DataField="TransactionAmount"
SortExpression="TransactionAmount" DataFormatString="{0:F2}" HeaderText="Fee Amount"
FooterStyle-Wrap="false"></asp:BoundField>

<asp:TemplateField Visible="false">
<ItemTemplate>
<asp:Label ID="lblTranID" Text='<%#Eval("TRANTYPEID") %>' Visible="false" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderStyle-CssClass="gridViewHeader" DataField="TranTypeName" SortExpression="TranTypeName"
HeaderText="Fee Type" FooterStyle-Wrap="false"></asp:BoundField>
<asp:BoundField HeaderStyle-CssClass="gridViewHeader" DataField="Currency" SortExpression="Currency"
HeaderText="Currency" FooterStyle-Wrap="false"></asp:BoundField>
</Columns>
<PagerTemplate>
<div class="PagerStyle">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" style="width: 25px;">
&nbsp;
</td>
<td align="left" style="width: 34px;">
<asp:LinkButton ID="imgBtnFirst" runat="server" CommandName="First" Text="First"
CssClass="LnkButton"></asp:LinkButton>
</td>
<td align="left" style="width: 34px;">
<asp:LinkButton ID="imgBtnPrev" runat="server" CommandName="Prev" Text="Prev" CssClass="LnkButton"></asp:LinkButton>
</td>
<td align="center" style="width: 200px;">
<asp:TextBox ID="txtSlider" runat="server" AutoPostBack="True" Text='<%# gvCardFeesRReport.PageIndex + 1 %>'
OnTextChanged="txtSlider_TextChanged" Width="200px"></asp:TextBox>
<AJAX:SliderExtender ID="ajaxSlider" runat="server" Orientation="Horizontal" TargetControlID="txtSlider"
Minimum="1" Steps='<%# gvCardFeesRReport.PageCount %>' Maximum='<%# ((GridView)Container.NamingContainer).PageCount %>'>
</AJAX:SliderExtender>
</td>
<td align="left" style="width: 34px;">
<asp:LinkButton ID="imgBtnNext" runat="server" CommandName="Next" Text="Next" CssClass="LnkButton"></asp:LinkButton>
</td>
<td align="left" style="padding-left: 5px; width: 34px;">
<asp:LinkButton ID="imgBtnLast" runat="server" CommandName="Last" Text="Last" CssClass="LnkButton"></asp:LinkButton>
</td>
<td align="left" style="padding-left: 5px;">
<asp:TextBox ID="txtGoTo" runat="server" CssClass="Input" Width="55px"></asp:TextBox>
<asp:Button ID="btnGoTo" Text="Go" CssClass="Buttons" runat="server" OnClick="btnGoTo_Click" />
<AJAX:TextBoxWatermarkExtender ID="txtWMGoTo" runat="server" TargetControlID="txtGoTo"
WatermarkText="Page No." WatermarkCssClass="WaterMarked" />
</td>
<td align="right" style="padding-right: 25px" class="pageTitle">
<asp:Label ID="lblPaging" Text='<%# "Page " + (gvCardFeesRReport.PageIndex + 1) + " of " + gvCardFeesRReport.PageCount %>'
runat="server">
</asp:Label>
</td>
</tr>
</table>
</div>
</PagerTemplate>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div>
<br />
<table width="100%">
<tr valign="top">
<td align="right">
<asp:Label ID="lblTotalFee" CssClass="Labels" runat="server" Text="Total Reload Amount"></asp:Label>
</td>
</tr>
</table>
<asp:HiddenField ID="SortOrder" runat="server" /&g

rest code i have give in previous reply


am badly stuck up with this problem

Inderjeet Kaur
Sr. Software Engg

GeneralRe: ASP.NET Gridview DataBound event retaining previous value Pin
Ibrahim Bello27-Aug-09 23:07
Ibrahim Bello27-Aug-09 23:07 
Questionmessagebox Pin
ankitjain111026-Aug-09 21:50
ankitjain111026-Aug-09 21:50 
AnswerRe: messagebox Pin
ankitjain111026-Aug-09 21:59
ankitjain111026-Aug-09 21:59 
GeneralRe: messagebox Pin
Coding C#26-Aug-09 22:22
Coding C#26-Aug-09 22:22 
GeneralRe: messagebox Pin
ankitjain111026-Aug-09 22:34
ankitjain111026-Aug-09 22:34 
GeneralRe: messagebox Pin
Coding C#26-Aug-09 22:39
Coding C#26-Aug-09 22:39 
GeneralRe: messagebox Pin
ankitjain111026-Aug-09 22:57
ankitjain111026-Aug-09 22:57 
GeneralRe: messagebox Pin
ankitjain111026-Aug-09 23:15
ankitjain111026-Aug-09 23:15 
QuestionHow to set CustomValidor for FileUpload Pin
shaik_mr26-Aug-09 21:27
shaik_mr26-Aug-09 21:27 
AnswerRe: How to set CustomValidor for FileUpload Pin
Ibrahim Bello27-Aug-09 1:20
Ibrahim Bello27-Aug-09 1:20 
QuestionAdding values to data gridview programmatically Pin
myinstincts26-Aug-09 21:26
myinstincts26-Aug-09 21:26 
Questionwhile using blank file , fileUpload doesn't work. Pin
Priyagdpl26-Aug-09 21:14
Priyagdpl26-Aug-09 21:14 
AnswerRe: while using blank file , fileUpload doesn't work. Pin
Arun Jacob26-Aug-09 21:33
Arun Jacob26-Aug-09 21:33 
GeneralRe: while using blank file , fileUpload doesn't work. Pin
Priyagdpl26-Aug-09 21:44
Priyagdpl26-Aug-09 21:44 
Questionthere is no source code available for the current location Pin
haleemasher26-Aug-09 21:13
haleemasher26-Aug-09 21:13 
AnswerRe: there is no source code available for the current location Pin
Arun Jacob26-Aug-09 21:22
Arun Jacob26-Aug-09 21:22 
AnswerRe: there is no source code available for the current location Pin
haleemasher26-Aug-09 21:27
haleemasher26-Aug-09 21:27 

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.