TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vsv Pp
NA
4
1.9k
Gridview pagination is not working??
Mar 4 2015 5:39 AM
I'm using pagination for my gridview ,I can able to click on next page at first time but second time it's not working but I checked by using break point ,in runtime am getting the pagination in pageindexchanged event.If I check with out break point the pagination is not at all working.Can any one help me how to solve this error.Here is my code
In PageLoad
:
if(!IsPostback)
{
BindData();
}
BindData()
{
string s="Select *from Tbl_Candidates";
SqlConnection con=new SqlConnection("Here is my connection");
SqlDataAdapter da=new SqlDataAdapter(s,con);
DataSet ds=new DataSet();
da.Fill(ds);
empGrid.DataSource=ds.Tables[0];
empGrid.DataBind();
}
InPageindexChanged :
{
empGrid.PageIndex=e.NewPageIndex;
BindData();
}
Reply
Answers (
2
)
CryptographicException: Access denied
How to populate select box using jquery/jason