ASP.Net, how to put hyperlinks in datagrids?

There are basically three different ways Structure your data object/query so that it returns a key and and abbreviation (i. E, first name, last name, id, bio) and use a template that turns id into a link Use the onrowbound event to manipulate the controls on the row, so that you have a href to your details page Use css to show the additional info on a hover/mouse over (I like this, but it doesn't play well with mobile devices, which don't have either event) EDIT: Methods 1&3 would be done on your aspx page, method 2 would be done in the codebehind for your page. Method 1 is really dependent upon your being able to control the data object/ query results.

If you are calling a stored proc that someone else controls, it may be very difficult to make it work.

There are basically three different ways... Structure your data object/query so that it returns a key and and abbreviation (i. E, first name, last name, id, bio) and use a template that turns id into a link. Use the onrowbound event to manipulate the controls on the row, so that you have a href to your details page.

Use css to show the additional info on a hover/mouse over (I like this, but it doesn't play well with mobile devices, which don't have either event). EDIT: Methods 1&3 would be done on your aspx page, method 2 would be done in the codebehind for your page. Method 1 is really dependent upon your being able to control the data object/ query results.

If you are calling a stored proc that someone else controls, it may be very difficult to make it work.

– stefan Oct 8 at 4:33 @stefan: see my edit. Whether it can be done on the aspx page or it has to be done on the code behind really depends upon what data you are getting and how. – jmoreno Oct 8 at 4:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions