views:

842

answers:

1

How should i get a value displayed in the dropdownlist when redirected through a cancel buttton.The value in the page where cancel button is there in a textbox should be cought in the dropdownlist.

This dropdownlist is having selectedindexchanged event also fired for which on selection of a country in the list we get a listview displayed in the same page.In that listview we have an add button which will redirect us to another page called addcountry in which we have few controls.In those controls one textbox i am getting value through querystring in an enabled false state.now again i need that value displayed in the dropdownlist when i click cancel button. How can i solve this problem,could you please help me out.

A: 

Using $_POST and $_GET Variables you should be able to retreive almost any value from a form and put it in the right place on a new page, this right place can be one of your drop down list element...

To make absolutly sure your Cancel Button will send the good value to the right page put it in an independant form that has your new page (where you have yout dropdown list) as its action, and in this seperate form put an hidden field that holds the specific value you wanna see in this dd list ...

Hope I am clear but starting with your very "fuzzy" and blur question It is hard to help you ...

Please be more precise next time ;p

Ar3s