コード例 #1
0
        // <snippet3>
        // Generate the design-time markup.
        public override string GetDesignTimeHtml()
        {
            // Get a reference to the control or a copy of the control.
            MyObjectDataSource myODS = (MyObjectDataSource)ViewControl;

            // Create a placeholder that displays the type of the business
            // object and the name of the Select method.
            string markup = CreatePlaceHolderDesignTimeHtml(
                "<b>TypeName</b> \"" + myODS.TypeName + "\"<br />" +
                "<b>SelectMethod</b> \"" + myODS.SelectMethod + "\"");

            return(markup);
        } // GetDesignTimeHtml
コード例 #2
0
 public MyObjectDataSourceView(MyObjectDataSource owner, string name, HttpContext context)
     : base(owner, name, context)
 {
 }