I have exp, functional area, location and search button in two pages home ,searchpage .
now suppose i select one location(Anand) from home page and it give search result in search page and also display location(Anand) in textbox of location.
my code for that is in search page that for display location
txtCountry.Text = Request.QueryString["loc"].ToString();
It works completely,
but when i select location , experience both my code
txtCountry.Text = Request.QueryString["loc"].ToString();
ddyear.SelectedItem.Text = Request.QueryString["exp"].ToString();
it gives object refference error.
so how can i use condition wise,
my condition code
if (txtCountry.Text != "")
{
txtCountry.Text = Request.QueryString["loc"].ToString();
}
if (ddfarea.SelectedIndex > 0)
{
ddfarea.SelectedItem.Text = Request.QueryString["fun"].ToString();
}
if (ddyear.SelectedIndex > 0)
{
ddyear.SelectedItem.Text = Request.QueryString["exp"].ToString();
}
but it is not working.this code also even not give any error but not given any result.