Quantcast
Channel: a3fashion Wiki Rss Feed
Viewing all articles
Browse latest Browse all 20

Updated Wiki: Product Detail

$
0
0

Đây là cái phần hình được generate ra nè Mẫn

<imgsrc="../../../../Content/Female/Women/F-27_Brown.jpg"alt="Women/F-27">

trong khi nếu muốn hình ảnh hiển thị được, thì nó phải là

<imgsrc="../../../../Content/Women/F27_Brown.jpg"alt="Women/F-27">

Dưới đây là cách Mẫn parsed string trong StoreDetailViewModel.cs

string image = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(this.Product.Sex) + "/"+ CultureInfo.CurrentCulture.TextInfo.ToTitleCase(this.Product.ProductName)
                    + "_"+ CultureInfo.CurrentCulture.TextInfo.ToTitleCase(color.ToString()) + ".jpg";

Như thế thì có thể tạo ra chuỗi:

Female/ProductName_Color.jpg

Nhưng trong thư mục của mình, thì mình lại là dạng này

-- Content

-------Men

-------Women

Và trong bảng [dbo].[Product], mình cũng lưu cái ProductName là cái cũ, ví dụ như sản phẩm có tên là F-10 lại là ProductName của cái hình W1_Black chẳng hạn.

Mẫn check lại chỗ này được không? Q thì nghĩ là có vài chỗ cần sửa

 

 

 


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>