Click here to Skip to main content
15,881,852 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Where to learn how to layout components and pages? Pin
User 17164927-Jul-06 4:41
professionalUser 17164927-Jul-06 4:41 
GeneralRe: Where to learn how to layout components and pages? Pin
Member 967-Jul-06 6:42
Member 967-Jul-06 6:42 
GeneralRe: Where to learn how to layout components and pages? Pin
User 17164927-Jul-06 7:54
professionalUser 17164927-Jul-06 7:54 
AnswerRe: Where to learn how to layout components and pages? Pin
peterzorbas7-Jul-06 8:51
peterzorbas7-Jul-06 8:51 
QuestionMobile Application Pin
constantinejones7-Jul-06 3:50
constantinejones7-Jul-06 3:50 
AnswerRe: Mobile Application Pin
Not Active7-Jul-06 4:41
mentorNot Active7-Jul-06 4:41 
QuestionHorizontal Menu bar display using xml file Pin
For_IT7-Jul-06 3:06
For_IT7-Jul-06 3:06 
QuestionHorizontal Menu bar display using xml file Pin
For_IT7-Jul-06 3:00
For_IT7-Jul-06 3:00 
Hi, I am using xml file to create a menu bar in my web page,
I want a horizontal menu bar display, but I get get verticle menudisaplay strating with root element. If I dont add root element, I get error in xml compilation. Can anyone please guide me how can I achieve horizontal display for different menu items?

xml code is:
<br />
<?xml version="1.0" encoding="utf-8" ?><br />
 <MenuItem  Text="Start" Value="H" Enabled="false" Url=""><br />
   <MenuItem Text="My Copyprint" Value="0" Enabled="false" Url=""><br />
     <MenuItem Text="Anmelden" Url="~/Register.aspx" Value="0"/><br />
     <MenuItem Text="Kundenkonto ändern" Url="~/CustomerData.aspx" Value="0"/><br />
     <MenuItem Text="Kontakt" Url="~/Contact.aspx" Value="0"/><br />
     <MenuItem Text="Adressen" Url="~/Adresses.aspx" Value="0"/><br />
     <MenuItem Text="AGBs" Url="~/Conditions.aspx" Value="0"/><br />
   </MenuItem><br />
   <MenuItem Text="Visitenkarten" Value="0" Enabled="false" Url=""><br />
     <MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="2"/><br />
     <MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="2"/><br />
   </MenuItem><br />
   <MenuItem Text="Postkarten" Value="1" Enabled="false" Url=""><br />
     <MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="3"/><br />
     <MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="3"/><br />
   </MenuItem><br />
</MenuItem><br />


and the Asp.net
<br />
<asp:XmlDataSource runat="server" ID="XmlMenuSource" DataFile="menu.xml" /><br />
<asp:Menu ID="MainMenu" runat="server" DynamicHorizontalOffset="5" Orientation="Horizontal" Height="26px"<br />
   Font-Names="Verdana" Font-Size="11pt" ForeColor="#404040" StaticSubMenuIndent="10px" BorderWidth="0px" <br />
   OnMenuItemClick="Menu1_MenuItemClick" BorderStyle="None" Font-Bold="True" StaticPopOutImageTextFormatString="Zeige {0}"<br />
   DataSourceID="XmlMenuSource" Width="160px" >    <br />
   <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BackColor="White" /><br />
   <DynamicHoverStyle BackColor="#E0E0E0" ForeColor="Red" Width="150px" Font-Size="10pt" /><br />
   <DynamicMenuStyle BackColor="White" Width="120px" /><br />
   <StaticSelectedStyle BackColor="White" ForeColor="Red" /><br />
   <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" Font-Size="10pt" BackColor="White" Width="150px"/><br />
   <StaticHoverStyle BackColor="#E0E0E0" ForeColor="Red" /><br />
   <StaticMenuStyle BackColor="Black" Height="22px" /><br />
   <DataBindings>        <br />
       <asp:MenuItemBinding DataMember="MenuItem" Depth="0" TextField="Text" ValueField="Value" SelectableField="Enabled" /><br />
       <asp:MenuItemBinding DataMember="MenuItem" Depth="1" TextField="Text" ValueField="Value" NavigateUrlField="Url"/><br />
       <asp:MenuItemBinding DataMember="MenuItem" Depth="2" TextField="Text" ValueField="Value" NavigateUrlField="Url"/><br />
   </DataBindings><br />
</asp:Menu><br />


Thanks in advance.
QuestionGoogle Earth Maps Pin
AhsanS7-Jul-06 2:47
AhsanS7-Jul-06 2:47 
AnswerRe: Google Earth Maps Pin
mnaveed7-Jul-06 3:08
mnaveed7-Jul-06 3:08 
AnswerRe: Google Earth Maps Pin
peterzorbas7-Jul-06 8:52
peterzorbas7-Jul-06 8:52 
AnswerRe: Google Earth Maps Pin
RichardGrimmer11-Jul-06 5:34
RichardGrimmer11-Jul-06 5:34 
Questionchat engine Pin
lehya7-Jul-06 2:13
lehya7-Jul-06 2:13 
AnswerRe: chat engine Pin
AhsanS7-Jul-06 2:49
AhsanS7-Jul-06 2:49 
GeneralRe: chat engine Pin
lehya7-Jul-06 5:15
lehya7-Jul-06 5:15 
QuestionDatetime field in sqlserver2000 Pin
Nagraj Naik7-Jul-06 2:10
Nagraj Naik7-Jul-06 2:10 
AnswerRe: Datetime field in sqlserver2000 Pin
Vipin Venugopal7-Jul-06 2:18
Vipin Venugopal7-Jul-06 2:18 
GeneralRe: Datetime field in sqlserver2000 Pin
Nagraj Naik7-Jul-06 3:07
Nagraj Naik7-Jul-06 3:07 
QuestionAbout Datagrid with Dropdownlist Pin
selvaraj S.Kaliyappan7-Jul-06 1:50
selvaraj S.Kaliyappan7-Jul-06 1:50 
AnswerRe: About Datagrid with Dropdownlist Pin
_AK_7-Jul-06 1:55
_AK_7-Jul-06 1:55 
QuestionReading the keywords from the URL Pin
Spykraft7-Jul-06 1:22
Spykraft7-Jul-06 1:22 
AnswerRe: Reading the keywords from the URL Pin
psamy7-Jul-06 1:37
psamy7-Jul-06 1:37 
GeneralRe: Reading the keywords from the URL Pin
Spykraft7-Jul-06 1:49
Spykraft7-Jul-06 1:49 
GeneralRe: Reading the keywords from the URL Pin
_AK_7-Jul-06 1:53
_AK_7-Jul-06 1:53 
QuestionRe: Reading the keywords from the URL Pin
Spykraft7-Jul-06 2:02
Spykraft7-Jul-06 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.