1

有谁知道如何使用允许我选择图像文件并在浏览器上显示图片(例如图像)的浏览按钮创建 Web 部件。

例如,这是 Windows 窗体中按钮处理程序下的等价物:

      Image img;
      OpenFileDialog openFileDia = new OpenFileDialog();
      if (openFileDia.ShowDialog() == DialogResult.OK)
      {
          this.img              = Image.FromFile(openFileDia.FileName);
          pictureBox1.Image     = img;
      }

谢谢

4

1 回答 1

2

阅读: http: //www.codeproject.com/Articles/95954/Sharepoint-WebPart-for-Programmatically-Uploading

于 2012-05-14T08:17:15.177 回答