Use Design Mode with User Control?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Use Design Mode with User Control?

    I have created a user control using the HTML view, and I now want to switch
    to Design mode so that it will automatically enter the controls used on the
    page in the code-behind, but the option to switch over is not available.
    Also, whenever I load up my controls, I get the message:

    "The file failed to load in the Web Form designer. Please correct the
    following error, then load it again: An exception occurred while trying to
    create an instance of <Control>. The exception was "Object reference not set
    to an instance of an object.".

    This is starting to get incredibly annoying, as it pops up this message
    everytime I open the control to make changes. What's the deal here guys?

    Thanks,
    Steve


    Steve - DND Guest

  2. Similar Questions and Discussions

    1. Custom Control Design Mode
      Hey, I'm writing a Custom control, and I want to write a ControlDesigner for it. But I want the html the ControlDesigner to render will use an...
    2. resize control inherited from System.Web.UI.Control in design mode
      How I can resize control inherited from System.Web.UI.Control in design mode. Thanks a lot.
    3. Custom Control doesn't appear in Design Mode
      Hi, I created a custom tabstrip control, referenced in my aspx page, and added to my source. How come it doesn't appear as a grey box in...
    4. VS.NET 2003 Bug when ASP.NET control is in Design mode
      Odd problem it is... on the design surface the web control is shown with red letters claiming that VS.NET was "Unable to create Control". But the...
    5. Custom Control won't appear in design mode?
      Hi, I created a custom control, regisitered it at the top of the page, and it works fine. However, it doesn't appear on the page during design...
  3. #2

    Default Use Design Mode with User Control?

    Hi,

    I think problem is with your ascx html syntax. Does your
    inherrit keyword in the page directive matches with the
    namespace mentioned in the codebehind?. If there is a mis
    match between the namespace this error can happen. Can you
    able to compile and run your code? Could you please sent
    your ascx code.

    regards
    Sreejumon[MVP]
    DOTNET makes IT happen
    >-----Original Message-----
    >I have created a user control using the HTML view, and I
    now want to switch
    >to Design mode so that it will automatically enter the
    controls used on the
    >page in the code-behind, but the option to switch over is
    not available.
    >Also, whenever I load up my controls, I get the message:
    >
    >"The file failed to load in the Web Form designer. Please
    correct the
    >following error, then load it again: An exception
    occurred while trying to
    >create an instance of <Control>. The exception
    was "Object reference not set
    >to an instance of an object.".
    >
    >This is starting to get incredibly annoying, as it pops
    up this message
    >everytime I open the control to make changes. What's the
    deal here guys?
    >
    >Thanks,
    >Steve
    >
    >
    >.
    >
    Sreejumon[MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139