UserControl имеет IsPostBack, но Control не имеет

я пытаюсь устранить ошибку в Visual Studio,предложение прекратить использованиеUserControls and use Control instead..

Я конвертирую все своиUserControl в толькоControlНапример:

public partial class Controls_UserManagement_GroupManager : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
       if (!IsPostBack)

становится

public partial class Controls_UserManagement_GroupManager : System.Web.UI.Control
{
    protected void Page_Load(object sender, EventArgs e)
    {
       if (!IsPostBack)

За исключением того, что нетControl.IsPostBack?

Как мне заменитьUserControl сControl?

Series

Этот вопрос один из текущих серий Stackoverflow,"Templating user controls":

How to add a Templating to a UserControl? How to inherit from Control, rather than UserControl? UserControl has IsPostBack, but Control does not UserControl does not have public property named ContentTemplate How do i specify CodeFileBaseClass from web.config?

Ответы на вопрос(1)

Ваш ответ на вопрос