Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need coding of search and update button on windows form in MS Visual Studio 2010.
i wanna search from data base (SQL server) table for example, have a table of employee and in employee table contain emp_id column and want to search from emp_ip, and same as want to update, suppose employee want to update their profile so employee will change desire column and click on update button to update their profile....
Posted
Updated 20-Oct-11 20:53pm
v4
Comments
I.explore.code 20-Oct-11 8:46am    
What you need to search and what you need to update?? please explain the context of your problem. There is no generic search and update code for C# except for using ADO.NET for constructing SqlCommand objects with SELECT and UPDATE sql statements...

C#
public static List<string> Search()
{
    return new List<string> { "Random!!" };
}

public static void Update()
{
    for(int i = 0; i < int.MaxValue; i++)
        ;
}
</string></string>


Seriously, what do you expect, you state nothing about the data you wish to search in or what to update. Even if you did this is not a place where you can come and get a complete implementation (there are sites where you can pay for that service).
1) Click "Improve Question".
2) Add details about what data you wish to search in and update.
3) How it is the data stored.
4) What you've already tried and where are you stuck exactly.
 
Share this answer
 
Comments
Espen Harlinn 26-Oct-11 10:19am    
5'ed!
As your the only one who knows what the button should do, you will have to do the coding yourself.

You did not specify the platform your programming for, but this explains the button events[^] in ASP.NET.
This[^] is a more general descriptions of events.
 
Share this answer
 
i am using sql 2008 and i want to search from the table having the columns id,name,category if the user enters the string in text box then the search button should reply accordingly searching from the table ...the string may not be the exact as in the table
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900