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