how to get the value in a search text box in the code behind file of an asp.net app
how to get the value in a search text box in the code behind file of an asp.net app
Tyme
Posts: 4Questions: 2Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Answers
We'd appreciate if you were to fill in the information of the template text in future please.
To answer your question we'd need to know a bit more about what you are asking for. For example do you mean an input box you put on the page, or the global DataTables one? Are you using client-side processing with Ajax loaded data, server-side processing or something else?
Allan
I will use the global DataTables search box. When a person with Admin access launches the web page, they have access to eight departments. They will use the Search box to "filter" (select) the department they wish to work on. I have added a button to the web page the launches an Event Handler. I need to know what department was selected. I thought I could get the department number by capturing the value in the search box.
You can use the
search()
API without any parameters to get the current global search term.Kevin