• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

How to pass the SelectedIndex property of a GridView web server control

Hello Experts,

I am very new to ASP.NET and I would like to know how to pass the SelectedIndex value of a GridView web server control so I can refer to the same value on the next .aspx page. Kind of like being able to refer from the SelectedIndex value of a winform so it can be used on the current active form.

Thanks!
0
Rick0124
Asked:
Rick0124
  • 3
  • 2
1 Solution
 
CodeCruiserCommented:
Gridview has a SelectedIndex property but how do you plan to use it in the other page?

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindex.aspx
0
 
Rick0124Author Commented:
Hi, CodeCruiser.

I wanted to use the SelectedIndex property as a parameter so I can get to a specific port setting.  I already have a method that retrieves the array of port objects.  I just need to get to the specific port, which was selected from the GridView, then populate the controls on the next page for editing.

Thanks again!
0
 
CodeCruiserCommented:
That would be a value within the grid then not the selectedindex right?

Here is an example

http://msdn.microsoft.com/en-us/library/aa581793.aspx
0
 
Rick0124Author Commented:
Yup! ..as I've said - I am still new to ASP..NET. :)
 Thanks for the link, I could probably take it from here...
0
 
CodeCruiserCommented:
Glad to help :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now