IsolatedStorage Window Phone 7 -
i have 2 filed name
, image
on page. want save these 2 thing in database , view saved data.
i used photochoosertask
choose image , saved image in isolated storage , save image path in database using follwoing code.
categoryvo newcategory = new categoryvo() { name = txtcategoryname.text, imagepath = txtcategoryname.text.trim() + ".jpg" }; expdb.category.insertonsubmit(newcategory); expdb.submitchanges();
i dont know how save image path in databse table means path of image saved in isolated storage , how bind images datagrid path.
the path of file saved in isolated storage isostore:/your file name
it depends on, in folder saved image. if save file directly without creating folder, isostore:/your file name enough refer image file.
Comments
Post a Comment