Devexpress无法在页面上找到控件

时间:2012-12-10 09:41:32

标签: c# asp.net devexpress

  

错误:当前上下文中不存在名称“”

我的所有devexpress控件都出现了这个错误。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.OleDb;
using DevExpress.Data;
using DevExpress.Web.ASPxGridView;
using DevExpress.Web.ASPxFileManager;
using BPM.Layer.DataTypes;
using BPM.Layer.UIFClass;
using BPM.Layer.DataOpr;
using BPM.Layer;

    namespace BPM.Ihracat.UI.Tahsilatlar
{
    public partial class Tahsilatlar : System.Web.UI.Page
    {
    Operate DOpr = new Operate();
    DataHelper dh = new DataHelper();
    LogClass log = new LogClass();
    BPM.Layer.DataTypes.logininfo giris = new BPM.Layer.DataTypes.logininfo();
    UIFObjects UIO = new UIFObjects();
    DevExpress.Web.ASPxGridView.ASPxGridView grd = new DevExpress.Web.ASPxGridView.ASPxGridView();
    IhracatClass ihr = new IhracatClass();
    DataSet fds = new DataSet();
    DataTable grdTable = new DataTable();
    bool isWriting = false;
    string departman = "0";


    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString.Count == 0)
        {
            Response.Redirect("Giris.aspx");
        }
        else
        {
            string ticket = Request.QueryString[0].ToString();
            UIO.getbpmsession(ticket, giris);
        }
        if (Request.QueryString.Count == 2)
        {   
/*islemId is a label*/
/*  <asp:Label runat="server" ID="islemid" Visible="false"></asp:Label>*/

            islemId.Text = Request.QueryString[1].ToString();
        }

        string progname = Request.Url.LocalPath.ToString();
        isWriting = DOpr.getifuserhaswriting(giris.UserID, DOpr.ProgIDofPage(progname));
        DataTable usrdt = DOpr.getKullaniciData(giris.UserID.ToString());
        departman = usrdt.Rows[0]["DepartmanID"].ToString();
        Button btnHiddenTemp=(Button)Page.FindControl("btnHidden");
      // btnHidden.Click += new EventHandler(btnHidden_Click);

      ( (Button)Page.FindControl("btnHidden")).Click += new EventHandler(btnHidden_Click);

        preparetitle();
        preparegrid();


        PrepareCombobox();
    }

我可以解决这个问题。有没有解决方法可以解决这个问题? 我认为Visual Studio找不到所有必需的引用。我该怎么办?

0 个答案:

没有答案