Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to make navigation by using checkbox control in data gridview

2 views
Skip to first unread message

mani....@gmail.com

unread,
Apr 24, 2008, 1:18:12 AM4/24/08
to
hi friendsplz..help me its urgent.....
im making a jobportal site..when a person go for search the results
should desplay....
like the naukri.com desplays..and when a person click on the checkbox
box link...
it is navigating to another window..

.....my problem is .i added a checkbox control to gridview but i can't
able to make navigation when he clicks on that checkbox
plz..help me...

Mark Rae [MVP]

unread,
Apr 24, 2008, 10:46:33 AM4/24/08
to
<mani....@gmail.com> wrote in message
news:38e5d244-7864-49e0...@y22g2000prd.googlegroups.com...

A couple of things first:

On the site you mention (http://www.naukri.com) clicking the checkboxes does
not do anything other than select or deselect the checkboxes...

What you appear to be looking to do is not standard web browser behaviour.
When your users click a checkbox, they will not expect to be redirected to
another page - the standard control for that would be a button or a
hyperlink...

However, what you ask is fairly trivial:

<asp:CheckBox ID="MyCheckBox" runat="server" />

MyCheckBox.Attributes.Add("onclick", "location.href='MyOtherPage.aspx';");


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

0 new messages