Click here to Skip to main content
15,894,254 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have productname, productprice, productimage ( i have fileuplod control for take the path of product image to save it to db) .

i want to save the data into database.. i am doing it in three tier...

i have textboxes for productname productprice. simply set them in properties.

and use it in insert sql query.. but wot i have to do to use it in sql querY( note i am doing in in database layer of three tier)


string query = "select * from where username='"+p.Username+"'";
C#
ecoprops p = new ecoprops();

C#
String query = "INSERT INTO ESK_Categories VALUES('" + p.Productname + "','"+p.Productprice+"', +and wot for file uplod+)";


can we set property for fileuplod control just as textbox

i have seprate class for setting up properties.
Posted

1 solution

 
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