code :::::USer control for menu

V

Vannela

I HAVE WRITTEN THE CODE FOR USER CONTROL MENU BUT I AM
UNABLE TO SEE IT IN DESIGN VIEW WHY WHERE WAS I WRONG.

THE CODE IS AS FOLLOWS:

<%@ Register TagPrefix="iewc"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>

<%@ Control language="c#" AutoEventWireup="false"
Codebehind="m_ut_popup.ascx.cs"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5
" Inherits="m_ut_popup.m_ut_popup" %>

<asp:panel id="Menu" runat="server" Height="417px"
Width="272px" CssClass="StyleSheet1">

<iewc:Toolbar id="Mm_ut_popup" style="Z-INDEX: 100; LEFT:
17px; OVERFLOW: auto; WIDTH: 254px; POSITION: absolute;
TOP: 19px; HEIGHT: 400px" Orientation="Vertical"
Color="Blue" Width="265px" Height="384px" runat="server">

<iewc:ToolbarLabel Text="Edit" ID=" m_edit"
DefaultStyle="border-right:#AD1021 2px Solid;border-
top:#AD1021 2px Solid;font-size:12px;border-left:#AD1021
2px Solid;border-bottom:#AD1021 2px Solid;font-
family:Tahoma;color:Teal;"></iewc:ToolbarLabel>

<iewc:ToolbarButton Text="New" ID=" m_new"
DefaultStyle="border-right:#AD1021 2px Solid;border-
top:#AD1021 2px Solid;font-size:12px;border-left:#AD1021
2px Solid;border-bottom:#AD1021 2px Solid;font-
family:Tahoma;color:Teal;" HoverStyle="border-
right:#Yellow 2px solid;border-top:#Yellow 2px solid;font-
size:12px;border-left:#Yellow 2px solid;border-
bottom:#Yellow 2px solid;font-
family:Arial;color:Teal;background-
color:Yellow;"></iewc:ToolbarButton>

<iewc:ToolbarButton Text="Add Item" ID=" m_newitem"
DefaultStyle="border-right:#AD1021 2px Solid;border-
top:#AD1021 2px Solid;font-size:12px;border-left:#AD1021
2px Solid;border-bottom:#AD1021 2px Solid;font-
family:Tahoma;color:Teal;" HoverStyle="border-
right:#Yellow 2px solid;border-top:#Yellow 2px solid;font-
size:12px;border-left:#Yellow 2px solid;border-
bottom:#Yellow 2px solid;font-
family:Arial;color:Teal;background-
color:Yellow;"></iewc:ToolbarButton>

</iewc:Toolbar>
</asp:panel>
 
E

Eugene Jenihov

Hi...

Designer shows UserControls only in simple mode (gray rectangle with name).
Only Server Controls display properly by Designer.
 
V

Victor Garcia Aprea [MVP]

Vannela,

As Eugene said there is no nice desgin-time support for UC in the current
bits. The next version of VS.NET will somewhat support this (you could
download the latest WebMatrix bits to get a similar preview of how this will
look).

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top