Hi,
I create search box in master page to show the search box in other pages of my web application.I write the search button click event code in master page. I want to show the search result in other page of my website(view.aspx page) & i use details view control in that page to show the output.
The code i use in master page is-
{
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=Movieweb;Integrated Security=True");
SqlDataAdapter sda = new SqlDataAdapter("select * from Moviedb", con);
DataTable dt = new DataTable();
sda.Fill(dt);
Response.Redirect("view.aspx");
}
But the code only redirect to view.aspx page and does not show the search result.
If something wrong in this code then please guide me.