我在页面上传了一个ajaxtoolkit文件
<ajax:HtmlEditorExtender runat="server" ID="htmEditor"
DisplaySourceTab="true" TargetControlID="txtWelcomenote"
OnImageUploadComplete="htmEdtior_OnUploadComplete">
后面的代码是
protected void htmEdtior_OnUploadComplete(object sender, AjaxFileUploadEventArgs e)
{
// Generate file path
string filePath = "~/Images/" + e.FileName;
// Save uploaded file to the file system
var ajaxFileUpload = (AjaxFileUpload)sender;
ajaxFileUpload.SaveAs(MapPath(filePath));
// Update client with saved image path
e.PostedUrl = Page.ResolveUrl(filePath);
}
我的问题是 当我试图上传图片时,它没有上传 而且事件也没有解雇。我也从那调试过 我正在寻找额外的查询字符串,如 contextkey = {DA8BEDC8-B952-4d5d-8CC2-59FE922E2923} 可能是什么问题呢??什么是解决方案?请帮帮我一些