Lập trình không biên giới

608  bài
22-5-2011 10:54:35
Ong aspnet lay anh roi luu vao file Xml load ra lai chu co ji dau ma phai hoi?
---
Chém thuê module dnn dưới mọi hình thức!

Thì biết là thế nhưng trình độ em có hạn nên mới lên đây nhờ các bác chỉ dạy
---
Welcome to my blogspot : http://intchung.blogspot.com/
Email : chungnt88@gmail.com
[/quote]

Éo gì hội này tụ tập nói xấu anh sau lưng , lưu ảnh vào file xml lưu thế éo nào được, cái file xml nó lớn to đùng lên thì có mà load vào mắt.

Anh lưu vào folder bình thường.
Rồi đọc tất cả các file trong thư mục đó ra.
Sắp xếp lại theo thời gian.
Transform ra html là xong.

Các đồng chí éo chịu bỏ thời gian nghiên cứu cứ chửi anh,
 

Lập trình không biên giới

608  bài
23-5-2011 20:45:29
Yêu cầu : Lấy toàn bộ ảnh trong thư mục /images đưa lên site để cho người dùng chọn 1 cái, hoặc có thể upload ảnh của mình lên.
Cái upload thì khỏi bàn, bây giờ mọi người giúp em lấy tất cả ảnh từ server với.
Hx hx, trong module news của bác asp.net chức năng này, nhưng em ko hiểu :
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
try
{
string cpath = "";
if (Request.QueryString["cpath"] != null)
cpath = Request.QueryString["cpath"];

string path = Server.MapPath(ImageFile.ROOT_FOLDER + cpath);
string[] folders = System.IO.Directory.GetDirectories(path);

for (int i = 0; i < folders.Length; i++)
folders[ i ] = ImageLib.GetFileName(folders[ i ], '\\');

XmlDocument doc = GenXML(folders, false, cpath);
string template = "~/DesktopModules/news/imagefolders.xsl";
Providers.Utils.XMLTransform(xmlTransformer, template, doc);
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
}
private XmlDocument GenXML(string[] folders, bool isadmin, string cpath)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml("<folders></folders>");
XmlElement root = doc.DocumentElement;

XmlElement row = doc.CreateElement("row");
XmlElement parent = CreateFolder("..", GetParentPath(cpath), doc);
row.AppendChild(parent);

for (int i = 0; i < folders.Length; i++)
{
XmlElement fol = CreateFolder(folders[ i ], cpath, doc);
row.AppendChild(fol);

if ((i + 2) % 4 == 0)
{
root.AppendChild(row);
row = doc.CreateElement("row");
}

}
root.AppendChild(row);

return doc;

}

---
Các bác giúp em với
---
Welcome to my blogspot : http://intchung.blogspot.com/
Email : chungnt88@gmail.com


Cái đoạn này thừa, chỉ cần dùng cái load all file (private XmlDocument GenXML(ArrayList files, bool isadmin, string related_path)) là xong.

dùng cái ImageFile.ascx là được
cái ImageFol.ascx thì vứt quách nó đi, không có nó vẫn chạy.
---
Đời anh sẽ đẹp vì có em
Ngày dài sẽ làm mình nhớ thêm
Biển xanh cát trắng, sóng hòa nhịp ái ân
Không còn những chiều bâng khuâng
 
Tên file Mô tả chi tiết Ngày
NWeb.zip (1) Module đơn giản Newsweb trên Dotnetnuke v10.x.x.x10/18/2025 8:08:11 AM
vspforum.zip (11) Ma nguon vspforum ngay xua4/18/2023 6:38:37 AM
pdfjs.rar (2) pdfjs 2017 : hiển thị tốt trên iphone 11, 12, 13 không lỗi, bản 2012 sẽ lỗi trên iphone6/21/2022 11:52:48 AM
pdfjs2.rar (2) Xem file pdf bằng viewer.hml cua pdfjs (thư viện chuẩn mozilla) 2012. https://mozilla.github.io/pdf.js/getting_started/#download có thể download bản prebuild tại đây6/21/2022 11:52:04 AM
runner.zip (0) using three.js, orbitcontrol to view an object move random on map. Di chuyển 1 đồ vật ngẫu nhiên trên bản đồ, sử dụng với demo nhân viên di chuyển trong văn phòng. Toàn js download về là chạy12/5/2019 5:55:14 PM
gmap.zip (1) google map + marker7/17/2019 2:25:05 PM
vinsmarthomeservice.zip (1) java post json to api, use AsyncTask, event listener7/9/2019 5:00:10 PM
fblogin.zip (0) Login facebook bang javascript SDK7/9/2019 9:16:37 AM
autocomplete-location.zip (2) autocomplete location geo from google place, html + js7/4/2019 4:37:55 PM
WebAPI.zip (8) api for android access db (v1.0.0)7/4/2019 9:14:17 AM