I have gridview with apprx. 200 records. In that gridview 1 column is Linkbutton.
When I'm clicking on last few linkbuttons, the page is reloaded and last few records will be hide & linkbutton click event not working.
I'm not using autopostback property in whole gridview & linkbutton.
So,How can link button works in last records, & page is not reloaded ?
Loading

Pradeep ShetRank #595 · 4K reputationPosted Apr 16, 2015, 9:51 PM EDT
I dont think thats an issue, issue is due to something else. Press f12 and check the console tab. I think there is some javascript error or something.
Sanket JainRank #1,788 · 835 reputationPosted Apr 16, 2015, 10:42 PM EDT
How to find that javascript error ?
Is their any size limit for records in Gridview?
Hari Krishna93 reputationPosted Apr 16, 2015, 11:01 PM EDT
Can you share your code.
Sanket JainRank #1,788 · 835 reputationPosted Apr 16, 2015, 11:11 PM EDT
CellPadding="4" ForeColor="#333333" GridLines="Both"
DataKeyNames="Application_no" Width="100%"
onselectedindexchanged="gvFRListLCNO_SelectedIndexChanged"
OnRowDataBound="gvFRListLCNO_RowDataBound1"
onrowcreated="gvFRListLCNO_RowCreated" AllowPaging="False"
onpageindexchanged="gvFRListLCNO_PageIndexChanged"
onpageindexchanging="gvFRListLCNO_PageIndexChanging"
onselectedindexchanging="gvFRListLCNO_SelectedIndexChanging"
onrowcommand="gvFRListLCNO_RowCommand" >
<%--OnRowDataBound="gvFRListLCNO_RowDataBound">--%>
<%#Eval("REQUIRED_OPTION") %>
<%# Eval("ENCLOSURE")%>
Code : for binding gridview
private void BindGrid()
{
strSqlQuery = " ";
ds = new DataSet();
da = new OracleDataAdapter(strSqlQuery, cn);
da.Fill(ds, "fin_fundreq");
gvFRListLCNO.DataSource = ds.Tables["final"];
gvFRListLCNO.DataBind();
}
code : Onclick LinkButton
LinkButton btn = (LinkButton)sender;
string CommandName = btn.CommandName;
string CommandArgument = btn.CommandArgument;
//Response.Write(CommandArgument);
Response.Redirect(String.Format("Report.aspx?&Ano={0}", CommandArgument));
Pradeep ShetRank #595 · 4K reputationPosted Apr 19, 2015, 12:05 PM EDT
Size of gridview is not limited. IT depends on your PageSize whixh is set for gridview, if not set then by default it is 10.
For checking the error run your application in the browser (crome) & press f12 for opening developer tools. Check it in console tab whether any error is there or not.
Pradeep ShetRank #595 · 4K reputationPosted Apr 19, 2015, 12:05 PM EDT
Size of gridview is not limited. IT depends on your PageSize whixh is set for gridview, if not set then by default it is 10.
For checking the error run your application in the browser (crome) & press f12 for opening developer tools. Check it in console tab whether any error is there or not.