コード例 #1
0
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                PropertyInfo property = page.GetPropertyInfo(propertyName);
                if (property != null)
                {
                    Type type = property.PropertyType;
                    if (page.IsListProperty(property.Name))
                    {
                        type = page.GetListPropertyItemType(property.Name);
                    }
                    page.Response.Redirect(page.GetListUrl(type, this.listUrl, page.SelectedObject, propertyName));
                }
            }
        }
コード例 #2
0
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                object obj = page.SelectedObject;
                if (obj != null)
                {
                    Type type = obj.GetType();
                    if (type != null)
                    {
                        page.DeleteObject();
                        page.Response.Redirect(page.GetListUrl(type, ""));
                    }
                }
            }
        }