Inherit Coolite ScriptManager

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Inherit Coolite ScriptManager

    Hi,

    Im trying to inherit the coolite scriptmanager so I can make a custom server control.

    Pretty simple to start with:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Linq;
    using System.Text;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Coolite.Ext.Web;
    
    namespace MyWebApp.Controls
    {
    
        public class MyWebAppScriptManager : Coolite.Ext.Web.ScriptManager
        {
    
        }
    }
    Im getting a bug.

    So, I build my new control and add the assembly to the visual studio toolbox in a website.

    When I drag the custom control to the design view of the page the visual studio window freezes and the cursor goes "crazy".

    Any help on this.

    Ty






  2. #2

    RE: Inherit Coolite ScriptManager

    Any help at all?

    Im trying this to fix it but still get the same bug:

       protected override void Render(HtmlTextWriter writer)
            {
                writer.Write("<div style='border-width: thin; border-style: ridge; width:100%; height: 100%; background-color: #CCCCCC; text-align: center; font-weight: bold; color: #666666;' align='center' >" + "[" + this.ID + "]" + "
    ");
                base.Render(writer);
            }
    
            internal void RenderAction(HtmlTextWriter writer)
            {
                if (this.DesignMode)
                {
                    writer.Write("<div style='border-width: thin; border-style: ridge; width:100%; height: 100%; background-color: #CCCCCC; text-align: center; font-weight: bold; color: #666666;' align='center' >" + "[" + this.ID + "]" + "
    ");
                    return;
                }
            }
  3. #3

    RE: Inherit Coolite ScriptManager

    Hi kowi,

    I tried to reproduce what you describe, but based on the code and description posted above, I did not experience "visual studio window freezes and the cursor goes "crazy".


    At this point my best solution would be to avoid using Visual Studio Design Mode. It's very buggy. Configuring in Source Mode should give more consistent results.


    Hope this helps.


    Geoffrey McGill
    Founder
  4. #4

    RE: Inherit Coolite ScriptManager

    Can you provide more information regarding the purpose of your Render and RenderAction overrides?

    Maybe you could post a sample Visual Studio Solution (.sln) demonstrating how you have everything configured. Please do not include the .dll's.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Inherit CommandColumn
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 02, 2011, 2:36 PM
  2. Replies: 2
    Last Post: Oct 15, 2009, 12:12 PM
  3. Replies: 1
    Last Post: Jul 31, 2009, 9:02 AM
  4. [CLOSED] Inherit KeyMap
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 15, 2009, 10:59 AM

Posting Permissions