![]() |
Search Table of Databse with one Textbox
How can i do this , to search table with one textbox in C# , how its the query for this, or if its possible give me a example like video , or just script explain , thanks a lot
|
???
Search what *PART* of a DB table? One of the fields in the table? Four of the fields in the table? You surely would *NEVER* search *ALL* the fields for a single value. Some of the fields are surely numbers, possibly even numbers that would mean nothing to a human being. Or they might be date or times. You need to be a lot more specific. |
I want to search into datagrid Surname , Name with one textbox
|
sql
Code:
create proc usp_myDemosomewhere in aspx page Code:
<asp:TextBox runat="server" ID=txtSur></asp:TextBox>Code:
DataTable dt = new DataTable(); |
Ummm...I think *NOT QUITE*, Alykins.
*IF* I understand him correctly: Quote:
So: Code:
create proc usp_myDemoCode:
create proc usp_myDemo |
I was merely opening the door :)
Edit: I just re-read that and see what you meant now (the or clause) |
It's of course just a guess. I think a non-native-English translation issue. Maybe we will find out, maybe not.
|
| All times are GMT +1. The time now is 08:43 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.