Click here to Skip to main content
15,888,461 members
Home / Discussions / Database
   

Database

 
QuestionWhich Command to use in SQL 2000 That will give me the same as Limit in MySql Pin
cbhkenshin5-Mar-06 19:31
cbhkenshin5-Mar-06 19:31 
AnswerRe: Which Command to use in SQL 2000 That will give me the same as Limit in MySql Pin
Eric Dahlvang8-Mar-06 9:26
Eric Dahlvang8-Mar-06 9:26 
Questionquery 2nd Pin
welbert5-Mar-06 14:56
welbert5-Mar-06 14:56 
AnswerRe: query 2nd Pin
Colin Angus Mackay5-Mar-06 22:33
Colin Angus Mackay5-Mar-06 22:33 
Questionquery Pin
welbert5-Mar-06 14:33
welbert5-Mar-06 14:33 
AnswerRe: query Pin
Colin Angus Mackay5-Mar-06 22:29
Colin Angus Mackay5-Mar-06 22:29 
QuestionChange to default instance Pin
Tiger4565-Mar-06 14:12
Tiger4565-Mar-06 14:12 
QuestionSearch button to filter a Dataset Pin
thebison5-Mar-06 4:09
thebison5-Mar-06 4:09 
Hi all,

I hope someone can help with this relatively simple problem.
I am building a timesheet application using ASP.NET C# with Visual
Studio 2003.As it is only a protoype application, my database has been
made in MSDE.

I have a 'View Resources' page, the purpose of which is to show all
employees, taken from that table in the database. This works fine, up
to a point. I have a DataGrid, which is done with a DataSet and a
DataAdapter. I now want the user to be able to 'filter' the DataGrid,
using a text box for input, and a 'search' button. I have tried
different ways of doing this but can't get it to work. I imagine that
it is achieved by running some kind of different SQL statement (with a
% LIKE % operator) in the btnSearch_Click method, and re-binding the
Data Grid after the filter has finished.

So for example the user could enter 'John' in the 'First Name' text box
and click 'search', and the Data Grid would refresh accordingly with
all records LIKE 'John'.

My Page_Load code looks like this currently
-------------------------------------------------------------------------
this.sqlDataAdapter1.Fill(this.dsResources1);
DataGrid1.DataBind();
sqlConnection2.Close();

this.DataGrid1.PageIndexChanged += new
System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.GridPageIndexChanged);
--------------------------------------------------------------------------------------------

Hope someone can help, I'm sure the btnSearch_Click method is where I
need to put the code.

Thanks in advance,

Al
QuestionDuplicate Query Pin
cbhkenshin4-Mar-06 21:59
cbhkenshin4-Mar-06 21:59 
AnswerRe: Duplicate Query Pin
Ritesh12345-Mar-06 18:16
Ritesh12345-Mar-06 18:16 
GeneralRe: Duplicate Query Pin
cbhkenshin5-Mar-06 18:48
cbhkenshin5-Mar-06 18:48 
QuestionMySQL Append? Pin
Expert Coming4-Mar-06 17:03
Expert Coming4-Mar-06 17:03 
QuestionPlease Read It,I Need Urgent Help............. Pin
Monotheismbeliver4-Mar-06 3:18
Monotheismbeliver4-Mar-06 3:18 
AnswerRe: Please Read It,I Need Urgent Help............. Pin
Expert Coming4-Mar-06 17:04
Expert Coming4-Mar-06 17:04 
Questionhow to turn off system error when i add daplicated ID unique? Pin
superdragon4-Mar-06 2:54
superdragon4-Mar-06 2:54 
AnswerRe: how to turn off system error when i add daplicated ID unique? Pin
Dave Kreskowiak4-Mar-06 10:53
mveDave Kreskowiak4-Mar-06 10:53 
QuestionNewbie Question For Sql Installation Pin
cbhkenshin4-Mar-06 1:31
cbhkenshin4-Mar-06 1:31 
AnswerRe: Newbie Question For Sql Installation Pin
Expert Coming4-Mar-06 17:06
Expert Coming4-Mar-06 17:06 
GeneralRe: Newbie Question For Sql Installation Pin
cbhkenshin4-Mar-06 19:51
cbhkenshin4-Mar-06 19:51 
GeneralRe: Newbie Question For Sql Installation Pin
Dave Kreskowiak5-Mar-06 2:13
mveDave Kreskowiak5-Mar-06 2:13 
QuestionThe timeout period elapsed prior to obtaining a connection from the pool Pin
nagarajuepuri4-Mar-06 0:36
nagarajuepuri4-Mar-06 0:36 
QuestionNeed help with ASP.NET website administration tool! - Can't connect to the database when clicked on (AspSqlProvider) test link! Pin
Slow Learner3-Mar-06 9:52
Slow Learner3-Mar-06 9:52 
AnswerRe: Need help with ASP.NET website administration tool! - Can't connect to the database when clicked on (AspSqlProvider) test link! Pin
Slow Learner3-Mar-06 10:13
Slow Learner3-Mar-06 10:13 
QuestionProblem inserting NULL into ORACLE DATE field with ADO Pin
vray3-Mar-06 3:58
vray3-Mar-06 3:58 
QuestionAccess 2003 number of records Pin
Marc Soleda3-Mar-06 3:49
Marc Soleda3-Mar-06 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.