三层架构中的文件上传控制 [英] fileupload control in three tier archetecture
问题描述
我具有产品名称,productprice,productimage(我具有fileuplod控件,用于获取产品图像的路径以将其保存到db).
我想将数据保存到数据库中..我正在三层中进行操作...
我有用于产品名称productprice的文本框.只需在属性中设置它们即可.
并在插入sql查询中使用它..但是我必须在sql querY中使用它(注意,我在三层数据库层中进行操作)
字符串查询=选择* from where username =""+ p.Username +"'';
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+)";
我们可以像文本框一样设置fileuplod控件的属性吗?
我有用于设置属性的单独类.
can we set property for fileuplod control just as textbox
i have seprate class for setting up properties.
推荐答案
^ ]
这篇关于三层架构中的文件上传控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!