search in website

Last Reply on Feb 20, 2012 11:59 AM By nedash

Posted on Feb 17, 2012 07:54 AM

hi everyone

i have 1 textbox 1 search button and 1 lable in my page

i write book in TB and click Search button it show booknames in lable from my database

when i write forexample hotel in my TB it show hotel name  after book name(after my last search).

i want when  do newsearch it  clean my last search result and just show my new search result in my page

how i can do it?

 

Results 1 - 5 of 9 12
Posted on Feb 17, 2012 08:05 AM

Check what is coming from database when you press search button


Posted on Feb 17, 2012 08:15 AM

my search button work correct  it show correct result but when i want make new search at same page that still show my last search result 

I want when write my new word in my TB and click search button at first it clean my last search result from my page after that show new result of my new search.


Posted on Feb 17, 2012 09:13 AM

Set AutoPostBack = true in the textbox and add textchanged event. Then in that event hide the GridView


Posted on Feb 17, 2012 09:18 AM

I am not able to get what is the problem with old data? You can do only work at a time

On button click why don't you simply bind the Grid with new data


Posted on Feb 18, 2012 04:23 AM

i want when  perform a new search my old data dont show in lable on my page i want just show my new data of my new search.

 

Eg:at first i search book name it will show books name in my lable

after that i search hotel name it dont clean the result of my last search it show book name and hotel name together.

i dont want use gridview what can i do?