当前位置:编程学习 > C#/ASP.NET >>

asp


public partial class WebUserControl : System.Web.UI.UserControl
{
    private static string FILEDIR = "\\DesktopModules\\Document\\Attachments";
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void btnSubmitBtn_Click(object sender, EventArgs e)
    {
        if (txtTitle.Visible.ToString().Trim().Length > 0)
        {
            string docUrl;
            docUrl = FileUpload(fulFileDir);
            OfficeAuto.Components.Document doc = new OfficeAuto.Components.Document();
            int nDocumentID=doc.AddDocument(
                txtTitle.ToString(),
                txtContent.ToString(),
                Int32.Parse(Session["UserID"].ToString()),
                docUrl,txtAuthor.ToString(),
                FromSource.Value.ToString());
            if (nDocumentID > 0)
            {
                Response.Write("<script lauguage=javascript>alert('文档提交成功!');</sc



错误 1 “System.Web.UI.WebControls.FileUpload”是“类型”,但此处被当做“变量”来使用
错误 2 找不到类型或命名空间名称“OfficeAuto”(是否缺少 using 指令或程序集引用?)
错误 4 当前上下文中不存在名称“FromSource”
请问怎么解决
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,