English 中文(简体)
Have asp.net base page property showing in @Page Depende
原标题:Have asp.net base page property show up in @Page attribute

我在我们习惯网页上编制了公共财产清单。 然而,当我想将财产分配到任何牛肉档案中时,它并不在书记中显示,如果我使用它的话,那是“Page”要素的无效属性。

因此,有两个问题。

  1. How do I make it such that it shows up in intellisense?
  2. Can I set any localize variable as a value of the property in the page directive?

感谢!

这里是我的基页上的财产:

    /// <summary>
    /// Robot meta tag
    /// </summary>
    [Browsable(true)]
    public string Robots
    {
        get;
        set;
    }

我知道,如果我指派它,它将继续工作,但是,让我们国际律师联合会的制定者感到羞愧。 更重要的问题是,我能否在指令的属性中确定财产的地方化价值。

问题回答
  1. You can t control intellisense. It should show up, but rarely does if ever, at least for me.
  2. You cannot set page class properties in the @Page directive that I m aware of, and if you can, you can t control intellisense in that either.

你们应该能够使用公共财产或方法,即使他们没有展示...... 你们能否张贴一些样本代码,以便我们能够看到什么进展?

感谢。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签