How to move to gridview row to selected search option
I have a gridview that binds to a dataset tables. My question is I would like to have a search box to go to the searched dataitemkey. Just wondering what the code would look like it the dataitemkey is wo_number, and they will search for workorder and I want to have that workorder goes to the page that the item is bound to within the gridview.
thanks
Visual Basic.NETASP.NET.NET Programming
Last Comment
deanvanrooyen
8/22/2022 - Mon
Kamal Khaleefa
usually when you type something in the text box
and click search , a code against the DB will be executed and a data set will return and be bounded with the gridview
you may also sort the gridview based on the coloum name
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
you could build a textual representation of javascript either json or a hashtable, when the page loads it 'loads' it onto the client browser (Im assuming this sounds like an intranet type site) and this 'object' contains all wo_number's and the details url location, then your text box doesnt do anything server side, it just scans the object for the wo_number and then loads the relevant value which could be a built up url to the wo_number details page etc. This is easier than doing the web service search thing provided you don't have millions of wo_number items... a bit of jquery and autocomplete goodness and you're cooking with gas...
please dont ask for sample code as you'll learn more by doing/searching for it yourself.
good luck
ps if this is a public facing site then please note my solution will need tweaking and you'll seriously need to look into caching.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
and click search , a code against the DB will be executed and a data set will return and be bounded with the gridview
you may also sort the gridview based on the coloum name