悬赏园豆:5
[已解决问题]
解决于 2007-12-13 12:17
<P><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> ExecUploadFile(</SPAN><SPAN style="COLOR: #0000ff">string</SPAN><SPAN style="COLOR: #000000"> strSaveDir,HtmlInputFile HtmCtrlObjUploadFile)<BR>这个方法中我怎么把获取的本地文件路径[string]类型变成HtmlInputFile 类型的<BR><FONT color=#ff0000>--HTML</FONT><BR><input id="FileSelect" type="file" runat="server"/></SPAN><SPAN style="COLOR: #000000"> <BR><FONT color=#ff0000>--.cs的button_click<BR></FONT>HtmlInputFile fileName =(HtmlInputFile)FileSelect.PostedFile.FileName; <BR> upload.ExecUploadFile(@"E:\File",fileName); </SPAN></P>
<P><SPAN style="COLOR: #000000">这个方法是文件上传中的一个操作类<BR>文章地址[<A href="http://www.cnblogs.com/Random/archive/2007/04/28/730533.html"><FONT color=#800080>http://www.cnblogs.com/Random/archive/2007/04/28/730533.html</FONT></A>]</SPAN></P>
伊牛娃
|
菜鸟二级
|
园豆:
207
提问于:2007-12-11 18:29