Hi
I create a search box in masterpage using textbox and button control and write the button code in masterpage. Now I want to show the search data in other webform page using detailsview control.
The problem is that it does not search the data.The code i use 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");
}
Please help me.
Thanks.

Khaja MoizuddinRank #270 · 9.4K reputationPosted Dec 7, 2016, 7:04 AM EST
Khaja MoizuddinRank #270 · 9.4K reputationPosted Dec 7, 2016, 7:20 AM EST
Krishna Rajput SinghRank #605 · 4K reputationPosted Dec 7, 2016, 9:00 AM EST
girish parganihaRank #6,237 · 272 reputationPosted Dec 7, 2016, 8:57 PM EST
Beginner141 reputationPosted Dec 11, 2016, 11:41 PM EST