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
anjali khan
NA
293
66.5k
how to chk or unchk using images in asp.net?
Jan 5 2016 12:43 AM
hi frnds,
i wants to display using image button click, my code is working but again if i click on checked image so it is not coming in unchk condition....
this is my code
design page
<div>
<asp:CheckBox ID="chkbox1" runat="server" Style="display: none" AutoPostBack="True" BackColor="Gray" OnCheckedChanged="chkbox1_CheckedChanged1" />
<label for="chkbox1">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/checkbox_unchecked.png" AutoPostBack="True" OnClick="ImageButton1_Click"/>
</label>
</div>
code////
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
ImageButton1.ImageUrl = "~/Images/checkbox_checked.png";
}
Reply
Answers (
18
)
Display and download a file in Asp.Net
Website Pages aur theme