This is a migrated thread and some comments may be shown as answers.

How to get radgridcombobox value of other page to the current page grid?

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Parth
Top achievements
Rank 1
Parth asked on 31 Aug 2010, 07:50 PM
Hello,

I have two pages. In one page I have the RadComboBox and based on the value of RadComboBox the grid populates.

Now I have the other page which has the grid with GridHyperlinkColumn which points to that page. When I click on the hyperlink I want the value of the RadComboBox from the other page to the current page.

How can I get that ?

Thanks,
Parth

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 01 Sep 2010, 07:23 AM
Hello Parth,

You can pass the SelectedValue of RadComboBox to the second page as url parameter (using similar method shown below).

      string selectedValue = RadComboBox1.SelectedValue;
      Response.Redirect("YourPage.aspx?Value=" + selectedValue);

And in the redirected page access the url parameter value and set your Hyperlink url accordingly. For changing the HyperLink url, access the HyperLink control in ItemDatabound event and modify the url based on the url parameter.

Access the url parameter value as shown below:
      string value=Request.QueryString["Value"];

Feel free to share the comments.

Thanks,
Princy.
Tags
Grid
Asked by
Parth
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or