Click here to Skip to main content
15,356,967 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionArgument out of range exception Pin
samflex17-Feb-21 18:38
Membersamflex17-Feb-21 18:38 
AnswerRe: Argument out of range exception Pin
Richard MacCutchan17-Feb-21 21:36
mveRichard MacCutchan17-Feb-21 21:36 
QuestionHow to Printing Network IP through MVC C# Pin
Member 150622761-Feb-21 20:32
MemberMember 150622761-Feb-21 20:32 
AnswerRe: How to Printing Network IP through MVC C# Pin
Richard Deeming1-Feb-21 21:44
mveRichard Deeming1-Feb-21 21:44 
AnswerRe: How to Printing Network IP through MVC C# Pin
jkirkerx16-Feb-21 11:23
professionaljkirkerx16-Feb-21 11:23 
QuestionAngular NetCore 5 project and webpack 4.6 Pin
jkirkerx31-Jan-21 12:28
professionaljkirkerx31-Jan-21 12:28 
AnswerRe: Angular NetCore 5 project and webpack 4.6 [Pretty Close to Solving] Pin
jkirkerx1-Feb-21 6:21
professionaljkirkerx1-Feb-21 6:21 
QuestionGridView Not Refreshing after search function Executing. Pin
Darshan Kumar B25-Jan-21 1:30
MemberDarshan Kumar B25-Jan-21 1:30 
Try from last 1 week not able to refresh Gridview After search function executing please help me any one.


protected void btnSearch_Click(object sender, EventArgs e)
{
if (Txtsearch.Text != "")
{
DataSet ds = new DataSet();
bdm.BiddingID = 0;
bdm.Offset = 1;
bdm.Rows = 10;
bdm.Searchstring = Txtsearch.Text.Trim();
ds = dal.Select_biddingdetails(bdm);
if (ds.Tables.Count > 0)
{
if (ds.Tables[0].Rows.Count > 0)
{
////ds.Tables[0].NewRow();
//grdbiddingreport.DataSource = ds.Tables[0];
//grdbiddingreport.DataBind();
//GridView SearchResults = (GridView)grdbiddingreport.FindControl("grdbiddingreport");
//grdbiddingreport.DataSource = ds.Tables[0];
grdbiddingreport.DataSource = ds.Tables[0];
grdbiddingreport.DataBind();
}

else
{
ds.Tables[0].NewRow();
grdbiddingreport.DataSource = ds.Tables[0];
grdbiddingreport.DataBind();
}
}
}
else if (Txtsearch.Text == "")
{
DataSet ds = new DataSet();
bdm.BiddingID = 0;
bdm.Offset = Convert.ToInt32(Session["Offset"]);
bdm.Rows = Convert.ToInt32(Session["Rows"]);
bdm.Searchstring = Txtsearch.Text.Trim();
ds = dal.Select_biddingdetails(bdm);
if (ds.Tables.Count > 0)
{
if (ds.Tables[0].Rows.Count > 0)
{
grdbiddingreport.DataSource = ds.Tables[0];
grdbiddingreport.DataBind();
}
else
{
ds.Tables[0].NewRow();
grdbiddingreport.DataSource = ds.Tables[0];
grdbiddingreport.DataBind();
}
}
}
grdbiddingreport.VirtualItemCount = GetTotalCount();
GetPageData(1, 10);
}


-------------------------------------------------------------------------------------------------------View Code

<asp:GridView ID="grdbiddingreport" ShowHeader="true" runat="server" Width="100%" ShowHeaderWhenEmpty="true" class="table table-condensed no-more-tables"
                                                   AutoGenerateColumns="false" EmptyDataText="No Data Available..." AllowSorting="true" OnSorting="grdbiddingreport_Sorting" OnRowCreated="grdbiddingreport_RowCreated" AllowPaging="true" AllowCustomPaging="true" OnPageIndexChanging="grddcustomer_PageIndexChanging">
                                                   <PagerSettings Mode="NumericFirstLast" FirstPageText="First" LastPageText="Last" NextPageText="Next" PreviousPageText="Previous" />
                                                   <PagerStyle HorizontalAlign="Right" CssClass="pagin" />
                                                   <Columns>
                                                       <asp:TemplateField HeaderStyle-Width="9%" HeaderText="Bidding ID" HeaderStyle-CssClass="gridcolor" HeaderStyle-ForeColor="White" SortExpression="BiddingNo">
                                                           <ItemTemplate>
                                                               <asp:Label ID="lblBiddingid" runat="server" Text='<%# Eval("BiddingID")%>' Visible="false"></asp:Label>
                                                               <asp:Label ID="lblBiddingno" runat="server" Text='<%# Eval("BiddingNo")%>'></asp:Label>
                                                           </ItemTemplate>

                                                       </asp:TemplateField>

                                                       <asp:TemplateField HeaderText="Customer Name" HeaderStyle-Width="12%" HeaderStyle-CssClass="gridcolor" HeaderStyle-ForeColor="White" SortExpression="CUstomerName">
                                                           <ItemTemplate>
                                                               <asp:Label ID="lblcustomername" runat="server" Text='<%# Eval("CUstomerName")%>'></asp:Label>
                                                           </ItemTemplate>

                                                       </asp:TemplateField>

                                                       <asp:TemplateField HeaderStyle-Width="8%" HeaderText="Date" HeaderStyle-CssClass="gridcolor" HeaderStyle-ForeColor="White" SortExpression="BidDate">
                                                           <ItemTemplate>
                                                               <asp:Label ID="lbldate" runat="server" Text='<%# Eval("BidDate","{0:MM/dd/yyyy}")%>'></asp:Label>
                                                           </ItemTemplate>

                                                       </asp:TemplateField>


                                                       <asp:TemplateField HeaderStyle-Width="10%" HeaderText="Total Cost" HeaderStyle-CssClass="gridcolor" HeaderStyle-ForeColor="White" SortExpression="BidPriceAmount">
                                                           <ItemTemplate>
                                                               <asp:Label ID="lbltotalcost" runat="server" Text='<%# Eval("BidPriceAmount","{0:N2}")%>'></asp:Label>
                                                           </ItemTemplate>

                                                       </asp:TemplateField>
                                                       <asp:TemplateField HeaderText="Created By" HeaderStyle-Width="12%" HeaderStyle-CssClass="gridcolor" HeaderStyle-ForeColor="White" SortExpression="Createdby">
                                                           <ItemTemplate>
                                                               <asp:Label ID="lblcreatedby" runat="server"
                                                                   Text='<%# Eval("Createdby")%>'></asp:Label>
                                                           </ItemTemplate>
                                                       </asp:TemplateField>
                                                       <asp:TemplateField HeaderStyle-Width="20%" HeaderStyle-CssClass="gridcolor">
                                                           <ItemTemplate>
                                                               <asp:Button ID="BtnProposal" runat="server" Font-Size="Smaller" ToolTip="Get Proposal" OnClick="BtnProposal_Click" Text="Get Proposal" CssClass="btn" target="_blank" />
                                                               <asp:Button ID="Btncontract" runat="server" Font-Size="Smaller" ToolTip="Contract" OnClick="Btncontract_Click" Text="Contract" CssClass="btn" target="_blank" />
                                                               <asp:Button ID="Btnspecs" runat="server" Font-Size="Smaller" ToolTip="Specs" OnClick="Btnspecs_Click" Text="Specs" CssClass="btn" target="_blank" />
                                                           </ItemTemplate>
                                                       </asp:TemplateField>
                                                       <%--<asp:TemplateField HeaderStyle-Width="10%" HeaderStyle-CssClass="gridcolor">
                                                           <ItemTemplate>
                                                               <asp:LinkButton ID="LinkButton1" OnClick="LinkButton1_Click" runat="server"><span style="font-size:15px;font-weight:bold">FINANCIAL SUMMARY</span></asp:LinkButton>
                                                           </ItemTemplate>
                                                       </asp:TemplateField>--%>
                                                       <asp:TemplateField HeaderStyle-Width="10%" HeaderText="Action" HeaderStyle-CssClass="gridcolor">
                                                           <ItemTemplate>
                                                               <%--<asp:ImageButton ID="btnview" runat="server" ToolTip="View" ImageUrl="~/images/view.jpg" Width="20px" Height="20px" />  --%>
                                                                       <asp:ImageButton ID="btnedit" runat="server" ToolTip="Edit" ImageUrl="~/images/Edit.png" Width="20px" Height="20px" />  
                                                                       <asp:ImageButton ID="btndelete" runat="server" CommandArgument='<%# Eval("BiddingID")%>' ToolTip="Delete" OnClientClick="return confirm('Do you want to delete?')" ImageUrl="~/images/delete.png" Width="20px" Height="20px" />
                                                           </ItemTemplate>
                                                       </asp:TemplateField>
                                                   </Columns>
                                               </asp:GridView>

AnswerRe: GridView Not Refreshing after search function Executing. Pin
20212a25-Jan-21 3:27
Member20212a25-Jan-21 3:27 
GeneralRe: GridView Not Refreshing after search function Executing. Pin
Darshan Kumar B26-Jan-21 17:18
MemberDarshan Kumar B26-Jan-21 17:18 
GeneralRe: GridView Not Refreshing after search function Executing. Pin
20212a27-Jan-21 1:17
Member20212a27-Jan-21 1:17 
GeneralHow to distribute the processing load of one system on several systems؟ Pin
arminizadiankalantary24-Jan-21 20:18
Memberarminizadiankalantary24-Jan-21 20:18 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Richard Deeming24-Jan-21 20:54
mveRichard Deeming24-Jan-21 20:54 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
arminizadiankalantary24-Jan-21 22:33
Memberarminizadiankalantary24-Jan-21 22:33 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Richard Deeming24-Jan-21 22:39
mveRichard Deeming24-Jan-21 22:39 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
arminizadiankalantary24-Jan-21 23:38
Memberarminizadiankalantary24-Jan-21 23:38 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Richard Deeming24-Jan-21 23:45
mveRichard Deeming24-Jan-21 23:45 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Nelek25-Jan-21 3:00
protectorNelek25-Jan-21 3:00 
QuestionProblem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 4:35
MemberMember 1299665513-Jan-21 4:35 
AnswerRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 4:47
mveRichard Deeming13-Jan-21 4:47 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 4:56
MemberMember 1299665513-Jan-21 4:56 
GeneralRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 5:09
mveRichard Deeming13-Jan-21 5:09 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 5:23
MemberMember 1299665513-Jan-21 5:23 
GeneralRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 6:20
mveRichard Deeming13-Jan-21 6:20 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 6:21
MemberMember 1299665513-Jan-21 6:21 

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.