how to make navigation by using checkbox control in data gridview

how to make navigation by using checkbox control in data gridview

am 24.04.2008 07:18:12 von mani.shanku

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...

Re: how to make navigation by using checkbox control in data gridview

am 24.04.2008 16:46:33 von mark

wrote in message
news:38e5d244-7864-49e0-ab47-34f50cfb83e3@y22g2000prd.google groups.com...

> 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...

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:



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


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