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
rama lakshmi
NA
4
2.8k
Checkbox state maintains but fall when paging performed
May 5 2016 2:27 AM
code behind:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
CheckBox chk = (CheckBox)sender;
if (chk.Checked)
{
Session[chk.UniqueID] = true;
}
else
{
Session.Remove(chk.UniqueID);
}
}
protected void CheckBox1_DataBinding(object sender, EventArgs e)
{
CheckBox chk = (CheckBox)sender;
chk.Checked = Session[chk.UniqueID] != null;
}
aspx:file:
<asp:TemplateField HeaderText="Select" >
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged"
OnDataBinding="CheckBox1_DataBinding" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
Checkbox state maintains but fall when paging performed by means selects same rows in page it automatically select another page 1 row again how to slove this by coing
Reply
Answers (
1
)
How can I solve the "could not load file or assembly 'ADODB'
unable to attach to application 'webdev.webserver20_00001...