Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
helloo,,,

i have one table in database ...but but if user want to update his Phone number from front end ..then what i have to think ....how can i make this
what is useful code for me
help me ??

thanks
Gaurang R.
Posted
Updated 11-Dec-11 7:12am
v2
Comments
Wonde Tadesse 11-Dec-11 13:14pm    
What did you attempt so far?

1 solution

SQL
UPDATE [TableName] SET phone = @phone WHERE ID = @id


@phone and @id would be your parameters here.

Then from this query, study ADO.NET or LINQ. This will help you proceed onto this.
Here is the link to get you started.

Simple ADO.NET Database Read, Insert, Update and Delete using C#.[^]

Regards,
Eduard
 
Share this answer
 
Comments
Gaurangraval 12-Dec-11 6:28am    
thank u ....

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