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+"'";
ecoprops p = new ecoprops();
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.