开发者

Help decoding MSDN Dynamic Data Article

开发者 https://www.devze.com 2023-01-03 08:57 出处:网络
I\'m trying to run through this msdn article: http://msdn.microsoft.com/en-us/library/dd723645.aspx One of the steps is:

I'm trying to run through this msdn article: http://msdn.microsoft.com/en-us/library/dd723645.aspx One of the steps is:

In the class file for the page, change the base class from UserControl to EntityTemplateUserControl.

Nowhere is it made clear what page is being referenced. Can someone help me? I don't see any relevant class in the pages I have, so I assumed maybe they were talking about the ascx and didn't really mean page, but I'm开发者_开发技巧 not seeing an option there either.


Okay, I figured it out. They do mean the control and not the page. So, we create an ascx control (e.g. mycontrol.ascx) and then we replace this line:

Inherits System.Web.UI.UserControl

With this one:

Inherits EntityTemplateUserControl
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号