TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
girish parganiha
NA
244
17.7k
Show search data from search box in masterpage to other page
Dec 9 2016 6:46 AM
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.
Reply
Answers (
2
)
How to do multiple columns total in gridview footer?
Retive Gridview Data Row by row and store in variable