marzbannia
یک شنبه 08 مرداد 1391, 20:45 عصر
با سلام خدمت هم دوستان
1)من میخواهم فایلی را از پوشه ای خوانده و آن را دانلود کنم کدی را برای آن نوشته ام ولی عمل نمی کند لطفا راهنمایی کنید.
DirectoryInfo d = new DirectoryInfo(Server.MapPath("file\\"));
foreach (FileInfo f in d.GetFiles())
{
name = f.Name;
}
ImageButton1.PostBackUrl = Server.MapPath("file\\") + name.ToString();
2)من در فرم هایم همزمان چند button دارم که با کلیک بر روی یکی از آن ها بقیه هم فعال شده و اجرا میگردند چه کار باید بکنم؟
1)من میخواهم فایلی را از پوشه ای خوانده و آن را دانلود کنم کدی را برای آن نوشته ام ولی عمل نمی کند لطفا راهنمایی کنید.
DirectoryInfo d = new DirectoryInfo(Server.MapPath("file\\"));
foreach (FileInfo f in d.GetFiles())
{
name = f.Name;
}
ImageButton1.PostBackUrl = Server.MapPath("file\\") + name.ToString();
2)من در فرم هایم همزمان چند button دارم که با کلیک بر روی یکی از آن ها بقیه هم فعال شده و اجرا میگردند چه کار باید بکنم؟