我收到错误名称'TXTSVNO.TEXT'不在当前上下文中退出。 [英] I am getting error the name 'TXTSVNO.TEXT' doe not exit in the current context.
问题描述
使用System;
使用System.Collections.Generic;
使用System.Linq;
使用System.Web;
使用System.Web.UI;
使用System.Web.UI.WebControls;
$
命名空间Presentationlayer
{
  public partial class AddBus:System.Web.UI.Page
  {
      protected void Page_Load(object sender,EventArgs e)
       
      {
          businesslogiclayer.businesslogiclayer objbll = new businesslogiclayer.businesslogiclayer();
          txtsvno.text = objbll.autogeneratesvno();
   
      }¥b $ b           protected void Button_click(object sender,EventArgs e);
  }¥b $ b    
   
  }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Presentationlayer
{
public partial class AddBus : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
businesslogiclayer.businesslogiclayer objbll = new businesslogiclayer.businesslogiclayer();
txtsvno.text = objbll.autogeneratesvno();
}
protected void Button_click(object sender, EventArgs e);
}
}
推荐答案
这意味着某些东西不在范围内,例如变量在一个类中是私有的,并且您试图在另一个类中访问它。
This means that something is not in scope e.g. a variable is private in one class and you are attempting to access it in another class.
这篇关于我收到错误名称'TXTSVNO.TEXT'不在当前上下文中退出。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!