我需要为ashx页面中的隐藏字段值指定文件名称变量,如何将值赋给ashx页面中的隐藏字段?在ashx页面中分配隐藏的字段值?
.ashx的页面
public void ProcessRequest(HttpContext context)
{
var file = context.Request.Files[0];
//here i need to pass this file name in hidden field value
}
这是隐藏的申请目前aspx页面
<asp:HiddenField ID="hdnFileName" runat="server"/>
这没有任何意义;该页面不存在任何地方。 – SLaks 2012-07-23 19:26:44
嗨,我想保存文件名称我得到的文件处理程序ie是ashx页面,我想在webservcie中使用它,那么我该怎么做呢? – user1527989 2012-07-23 19:29:12