Forms Data Controls :: Using Results From Search To Pass Value To Same Page?

Feb 25, 2011

I will explain this as best I can. When a user types in a search field (ASP Textbox field) and presses enter a list of search results are displayed if there is a match. The search results display in the second half of the page. A video will play in the top half of the page but not until a querystring is passed to the page. The querystring value comes from the list of displayed search results. When a user clicks on results from the search (ASP Hyperlink) the querystring value is passed to the same page he/she is on and a video starts playing. My major problem is when I pass the querystring value I do not want to lose the list of search results. It looks like in ASP.net the page refreshes each time you pass a new value. It's not optional to make the user click the back button to see the orginal search results. I'm assuming it has something to do with maintaining session state but I am no expert. YouTube and many other sites do this similar functionality so I figure it must be possible in ASP.Net.

So basically, I want the image that I searched for to continue to display even as I select them and pass there videoID to the SQLDataSource that is expecting the QueryString. All values are being pulled from a SQL 2008 database. When the QueryString value is passed a video will play based on the value that was passed. Currently I have this working but the problem is when I pass the querystring my displayed search results are gone or disappeared. I was thinking that maybe if I could pass the querystring value and the search results value it would work. It would mean reposting the data again but I guess that's a work-around. So for instance if a user typed 'biceps' in the orginal search some kind of way I would store biceps somewhere and pass it again along with the querystring for the video. It doesn't seem like the most eficient way to do it but if someone on here suggest that's the best way I will also need help with that syntax. I am using ASP.Net 4 and VB instead of C#.

View 1 Replies


Similar Messages:

Forms Data Controls :: Displaying Search Results In Listview?

Feb 3, 2010

I have a set of controls that enable the user to search one of two fields in a given SQL Server table. The ddlSearch dropdownlist specifies the field to search. The txtSearch textbox contains the search string. I have the following code working fine, except search string isn't being passed to my listview:

[Code]....

I tried adding a DataBind after End Using, but the listview still won't provide the search results. Note that I also have an EntityDataSource on page.

Am I adding this to the wrong event? Should this code be added to PageLoad instead of click event of Submit button? What other issues should I address? Is it possible for ListView to handle the search by itself? That is, do I even need other dropdownlist and textbox controls, or is there functionality builit into the listview control to search? Finally, can I enable a checkbox for each returned item? I will need this so that the user can select items to add to their order.

View 1 Replies

Forms Data Controls :: Displaying Search Results In Gridview?

Feb 24, 2010

I would like a gridview (using entitydatasource) to display the search results based on values provided in textbox txtSearch and dropdownlist ddlsearch. My search controls are as follows:

[Code]....

My entitydatasource is:

[Code]....

My gridview is written as:

[Code]....

Codebehind file contains:

[Code]....

I am a newbie at entitydatasource and have a few questions:

1. Currently, the gridview doesn't render. Why is that?

2. How do I wire up the gridview to grab the values of ddlsearch and txtSearch and return results using those values from my entitydatasource?

3. Ultimately, I want to encapsulate this gridview in a wizard step wherein the user checks items they want and those checked items are used in the next wizard step.

View 9 Replies

Forms Data Controls :: Pass All The Searched Results As 'all'?

Dec 2, 2010

I have a list box which gets the value from a datasource as

[Code]....

Here, 'ALL' passes all the WORKSHOP_REQUEST_ID

Now, once the user enters the "Search" button on the window, the listbox shows all the searched values and also the "ALL" option. But here also , this "ALL" doesn't care of the searched values displayed on the listbox but sends all the WORKSHOP_REQUEST_ID if it is selected.

But i want to pass only the values which are searched and displayed on the listbox if the user selects "ALL" after searching some text.

View 2 Replies

Forms Data Controls :: Displaying Search Results From A Query String Into A Listview?

Jan 21, 2010

I'm working on a job seeking website where the job seeker can search for a job , the search box is located in the master page, that's why i passed the keywords as a query string, and then the matching jobs will be displayed in a listview.

the keywords will be taken from two controls: a drop down list which the user can choose the location of the job, and a text box where he can type a keyword.

the select command of the sqlDataSource of the data list is as the following:

[code]....

View 4 Replies

Web Forms :: Showing Search Results In Another Page?

Feb 19, 2010

I am creating a website for my final year project and I create a search based on this tutorial:

http://www.codedigest.com/Articles/ASPNET/289_Building_Efficient_Search_Page_Using_QueryExtender_control_in_ASPNet_40.aspx

I would like to show the results from the search in another page. How do I show the results of the search in another page when the user press the button?

View 4 Replies

Forms Data Controls :: After Search Results Is Populated, Click On The Hyperlink To View Specific Records Tied To It.

Feb 10, 2011

currently I am doing a web application such that after user search for all the contracts,the contract id is a hyperlink in which user can click on it to view the results tied to it. There is 2 pages. One is for the search page and after searching results is populated below. The contract id in the grid view is a hyperlink so that when user clicks on it, they will go to another page and view the specific records tied to it. How shld I do this as I am creating this web application in 3-tier formatting.

This is the search.aspx:

[Code]....

This is the next page that will display the results tied to this particular ID:

[Code]....

View 3 Replies

Data Controls :: Search Multiple Columns In Database And Display Results

Dec 8, 2012

I want to search record based on  Name, ID, Date, Report Type. from same table with one textbox. I can do search with one column how can do it with multiple column ...

protected void Button2_Click(object sender, EventArgs e)
{
DateTime dt = Convert.ToDateTime(TextBox1.Text);
SqlCommand cmd = new SqlCommand("SELECT * FROM Transactions where report_type = @report_type ");
cmd.Connection = con;

[Code] .....

View 1 Replies

Data Controls :: Exporting Search Results In GridView To Word Excel PDF CSV

Sep 10, 2012

I am trying to export a gridview that is returned from a search form.  The gridview also has paging enabled.  In order to export the records from all pages in the gridview I had to turn off paging and do a databind, but instead of only exporting the search results it exports all the records in the gridview.

How can I only export the records from the search results, but also the make sure the records on the different pages export also?

View 1 Replies

Forms Data Controls :: How To Add Search Control For Detailsview For Search Page

Apr 19, 2010

how to Add Search Control for Detailsview for search page... simple solution required.?

and is it possible to give field names to each page numbering?

View 3 Replies

Data Controls :: Search Database Using Partial Text And Display Results In GridView?

Mar 23, 2013

I need a query to fetch records from data from database based on partial text entered in textbox like search data from College table based on College Name entered in text box. I want that all record containing that College name displayed in grid view.

View 1 Replies

MVC :: How To Implement Search And Displaying Results On Same Page

Dec 23, 2010

Anyone can help providing some code/suggestion on how to implement Search and displaying results on same page using MVC and simple way to implement paging with Ajax.

Below are the search parameters(search Page looks like below) i need to pass to db to get results. We are using MVC2 with entity framework.

Search Criteria- Last Name Course Name Status

View 6 Replies

Html - Redirecting Search Results Into .NET Page

Jun 13, 2010

I've an ASP.NET page with a textbox and a option from user of the following choices: Wikipedia, Google, Dictionary.com, Flickr, Google images.The user enters a word(s) in the textbox and selects a choice among the following.

Depending on the choice select by the user I wish to return the following.

Wikipedia: Return the content and link to the page corresponding to the topic about the word.

Google: Return the top 10 results of google search for this word.

Flickr: Return a few images atmost 10 images from flickr search

GoogleImage: Return a few images from google image search.

Dictionary: Return the meaning of the word.

How can I do that?

View 2 Replies

MVC :: Build A Search Page And A Results Page For An MVC3 App

Feb 1, 2011

I need to build a search page and a results page for an MVC3 app.

View 2 Replies

Creating Search Page And Displaying Results On Different Page?

Apr 1, 2010

I have created a search page using Visual Web Developer and Access as the database. Instead of displaying the results from the search in Gridview on the same page what would be the coding to pass the results to a new page titled "Search Results".

View 4 Replies

Developing A Search Page That Will Display The Results In A Gridview?

Oct 6, 2010

I'm developing a search page that will display the results in a gridview. The codebehind (in VB.NET) uses a SQL command to fill the gridview.

The gridview does have paging and sorting enabled. Once the search button is clicked the initial results are displayed, if the user clicks on a sorted column or wants to advance a page the gridview disappears. Enable Sorting And Paging Callbacks is set to True. Enable ViewState is also set to True.

View 4 Replies

AJAX :: Implement Search And Displaying Results On Same Page?

Mar 19, 2011

how to implement Search and displaying results on same page using ASP.net webform and simple way to implement paging with Ajax. The top of the page should have the search criteria and once button clicked, it should display the result below with checkbox so that user can select and delete any / all of the search result.

View 4 Replies

Visual Studio :: VWD - Database Search Results On Different Page

Apr 2, 2010

Using Visual Web Developer I have created a page (Search.aspx) with a Text Box(SourcingIC) and Search Button. I do not want data (Gridview) displayed on the Search.aspx page, just the Text Box and Search Button.

A user inserts name in the text box(SourcingIC), presses the search button and then is directed to a new page (SearchResults.aspx) that displays the records found for SourcingIC. What coding is needed to make this happen? Can you provide me with what actual coding would need to be added?

<%@ Page Title="" Language="VB" MasterPageFile="~/DST.master" %>

<script runat="server"> [code].....

View 1 Replies

C# - Remove Deleted Page From Google Search Results?

Apr 26, 2010

So I have a website that I recently made changes to, and one of the changes was removing a page from the site. I deleted the page, it doesn't exist anymore.

However, when you search for my site, one of the results is the page that I deleted. People are clicking on the page and getting an error.

How do I remove that page from the search results?

View 4 Replies

Web Forms :: Load Checkboxes Data Basing On Search Results In Gridview?

May 11, 2010

I have a .net page in which i have a search button which populates the data in gridview. On Headder row of gridview i have a filter image button and when user clicks on it i need to have a div tag opened as popup and in which i have to load the data of first column data of grid view as list of checkboxs and when user clicks one by one the parent gridview need to be shortened out (reduce) basing on selected/checked item in div tag. Since the check box controls are added dynamically it need to happen in Page_PreInit, so what i am trying to do is on the search i am trying to post back the page which goes to the Page_PreInit and tries to create all these check boxes dynamically.

View 1 Replies

Databases :: Display Mysql Database Search Results On Aspx Page?

Aug 2, 2010

I am trying to develop a page where I am trying to search a database (MyQSL) and display the data in a table format. Some of the database entries, like category, is stored as integer values, but I want to display the category name in the search result (not the corresponding integer value). I have also another issue, every time I change the dropdown list values (which are having "auto postback" enabled) the <EmptyDataTemplate> is returned. At this moment I am using GridView. But I am ready to change this to any other method, like repeater or whatever...

View 2 Replies

MVC :: Render The Table For The Search Results As Long As The User Hasn't Pressed The Search Button?

Jan 18, 2010

As a newbie coming from a Java background with tag libraries I wonder if there is a simple possibility to render areas depending on backend values.For example if I have search form I do not want to render the table for the search results as long as the user hasn't pressed the search button. Of course I can iterate over the model containing an empty list but this does not allow to suppress rendering the whole table.Using web forms I would just control the visibility of the affected tag(s) in the code behind file but how do I do this with ASP.NET MVC?Can I use a partital view for a case like this? But I think I would have the same problem. How can I determine if a partial view is rendered (e.g. the whole result table with header)?

View 7 Replies

Looking For A Good Ways To Implement Search And Search Results Using Ajax?

May 28, 2010

i have some text boxs in a page and in the same page there will be a table 'grid' like for holding the search result.When the user start editing and of the textbox above, the search must start by sending all textboxs values to the server 'ajax', and get back with the results to fill the below grid.

Notes:This grid should support paging, sorting by clicking on headers and it will contains some controls beside the results such as checkboxs for boolean values and links for opening details in another page.

I know many ways to do this some of them are:1- updatepanel around all of these controls and thats it "fast dirty solution"

2- send the search criteria using ajax request using JQuery post function for example and get back the JSON result, and using a template will draw the grid "clean but will take time to finish and will be harder to edit later".

3- ....My question is:What do you think will be the best choice to implement this scenario? because i face this scenario too much, and want to know which implementation will be better regarding performance, optimization, and time to finish.

View 3 Replies

Search Functionality - Search The Whole Website And Returns The Results

Jan 26, 2010

I created a website. I would like to include a search box that searches the whole website and returns the results.

View 2 Replies

Dynamic Data 4.0 - Search Results?

Jul 6, 2010

I have a ASP.NET (VB) Dynamic Data Project in ASP.NET 4.0. It works great - and offers filtering - but now I want to add searching to it. What is the best way to accomplish this in ASP.NET 4.0? Is there any built-in functionality for performing searches declaratively?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved