c# - How to set properties in a custom WebViewPage? -


I have a very basic custom WebViewPage class in which I assign a value to a custom Want property Here is my code:

  Public abstract class WebView page: System.Web.Mvc.WebView page {public employee user principal {get; Set; } Execute public override void () {// Controller is also a custom class in which there is a property that is injected by a custom action filter attribute, I have confirmed that the property is correctly updated // property controller controller = (this Controller as controller); If (controller! = Null) {this.UserPrincipal = Controller User principal; }} & Lt; Pages PageType = "X.MVC WebViews" & gt; & Lt; -! System.Web.Mvc.WebViewPage - & gt;   

I can not explain the Execute method for any reason because I never hit any breakpoints I had put in it. I used to point out the web to my custom WebViewPage . Configured the configuration correctly and I can access it from within the property view, I can not set the property properly.

I appreciate it if someone can tell me in the right direction.

Good, why t is not being called executed , but < Code> Start Page , so I override it instead:

  Public abstract class WebView page: System.Web Mvc.WebView Page {Public Employee User Principal {get; Set; } Secure Override Zero initializePage () {base.InitializePage ()); Controller Controller = (This viewer. Controller in the form of controller); If (controller! = Null) {this.UserPrincipal = Controller User principal; }}}    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -