473,383 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How can I make runat=server unnecessary

I have created a custom control that has some design time support. I
can create a menubar with the following HTML

<Menu:BarMenu runat="server" id="MenuBar">
<MainMenuItems>
<Menu:BarMenuItem Text="New Member" id="btnNewMember"
onclick="btnNewMember_Click" MenuTip="Click to Add a new Member" />
<Menu:BarMenuItem Text="Edit Profile" id="btnEditProfile" disabled
onclick="btnEditProfile_Click" MenuTip="Click to Edit the selected
Member's Profile" />
<Menu:BarMenuItem Text="Edit Permissions" id="btnEditPermissions"
disabled onclick="btnEditPermissions_Click" MenuTip="Click to
Approve/Revoke member permissions" />
<Menu:BarMenuItem Text="Delete Member" id="btnDeleteMember" disabled
confirm="Are you sure you want to permanently delete the selected
Member?" onclick="btnDeleteMember_Click" MenuTip="Click to permanently
Remove the Selected Member" />
</MainMenuItems>
</Menu:BarMenu>

When I build, I get parser errors saying that the runat='server'
attribute is missing from all the inner elements (i.e.,
<MainMenuItems>). Is there a way around this?

Dec 3 '06 #1
6 1201
OHM
No , this attribute must appear.

"SlashDrew" <sl*******@gmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...
>I have created a custom control that has some design time support. I
can create a menubar with the following HTML

<Menu:BarMenu runat="server" id="MenuBar">
<MainMenuItems>
<Menu:BarMenuItem Text="New Member" id="btnNewMember"
onclick="btnNewMember_Click" MenuTip="Click to Add a new Member" />
<Menu:BarMenuItem Text="Edit Profile" id="btnEditProfile" disabled
onclick="btnEditProfile_Click" MenuTip="Click to Edit the selected
Member's Profile" />
<Menu:BarMenuItem Text="Edit Permissions" id="btnEditPermissions"
disabled onclick="btnEditPermissions_Click" MenuTip="Click to
Approve/Revoke member permissions" />
<Menu:BarMenuItem Text="Delete Member" id="btnDeleteMember" disabled
confirm="Are you sure you want to permanently delete the selected
Member?" onclick="btnDeleteMember_Click" MenuTip="Click to permanently
Remove the Selected Member" />
</MainMenuItems>
</Menu:BarMenu>

When I build, I get parser errors saying that the runat='server'
attribute is missing from all the inner elements (i.e.,
<MainMenuItems>). Is there a way around this?

Dec 3 '06 #2
re:
Is there a way around this?
If you want to run your code server-side, the runat tag is indispensable.
If you don't want your code to run server-side it isn't indispensable.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"SlashDrew" <sl*******@gmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...
>I have created a custom control that has some design time support. I
can create a menubar with the following HTML

<Menu:BarMenu runat="server" id="MenuBar">
<MainMenuItems>
<Menu:BarMenuItem Text="New Member" id="btnNewMember"
onclick="btnNewMember_Click" MenuTip="Click to Add a new Member" />
<Menu:BarMenuItem Text="Edit Profile" id="btnEditProfile" disabled
onclick="btnEditProfile_Click" MenuTip="Click to Edit the selected
Member's Profile" />
<Menu:BarMenuItem Text="Edit Permissions" id="btnEditPermissions"
disabled onclick="btnEditPermissions_Click" MenuTip="Click to
Approve/Revoke member permissions" />
<Menu:BarMenuItem Text="Delete Member" id="btnDeleteMember" disabled
confirm="Are you sure you want to permanently delete the selected
Member?" onclick="btnDeleteMember_Click" MenuTip="Click to permanently
Remove the Selected Member" />
</MainMenuItems>
</Menu:BarMenu>

When I build, I get parser errors saying that the runat='server'
attribute is missing from all the inner elements (i.e.,
<MainMenuItems>). Is there a way around this?

Dec 3 '06 #3
"SlashDrew" <sl*******@gmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...
When I build, I get parser errors saying that the runat='server'
attribute is missing from all the inner elements (i.e.,
<MainMenuItems>). Is there a way around this?
No.
Dec 3 '06 #4
Seems mighty strange considering the datagrid has nested elements that
don't require runat='server'. I'm not questioning the attribute on the
top level element (<Menu:BarMenu>), just on the nested elements
(<MainMenuItems>, etc.). There's got to be a way to not require this
in 2.0 like it wasn't in 1.1. I will find it. And then I will tell
the world. And then, you will all bow to me!!! Mwahahahah.

Dec 3 '06 #5
re:
And then, you will all bow to me!!! Mwahahahah.
Either that...or you'll come back with your tail between your legs.
Mwahahahah.

;-)

I definitely want to know whether you were successful or not.
Please post back the results.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"SlashDrew" <sl*******@gmail.comwrote in message
news:11**********************@16g2000cwy.googlegro ups.com...
Seems mighty strange considering the datagrid has nested elements that
don't require runat='server'. I'm not questioning the attribute on the
top level element (<Menu:BarMenu>), just on the nested elements
(<MainMenuItems>, etc.). There's got to be a way to not require this
in 2.0 like it wasn't in 1.1. I will find it. And then I will tell
the world. And then, you will all bow to me!!! Mwahahahah.

Dec 3 '06 #6
the same way asp.net controls do. research ParseChildrenAttribute

-- bruce (sqlwork.com)
"SlashDrew" <sl*******@gmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...
>I have created a custom control that has some design time support. I
can create a menubar with the following HTML

<Menu:BarMenu runat="server" id="MenuBar">
<MainMenuItems>
<Menu:BarMenuItem Text="New Member" id="btnNewMember"
onclick="btnNewMember_Click" MenuTip="Click to Add a new Member" />
<Menu:BarMenuItem Text="Edit Profile" id="btnEditProfile" disabled
onclick="btnEditProfile_Click" MenuTip="Click to Edit the selected
Member's Profile" />
<Menu:BarMenuItem Text="Edit Permissions" id="btnEditPermissions"
disabled onclick="btnEditPermissions_Click" MenuTip="Click to
Approve/Revoke member permissions" />
<Menu:BarMenuItem Text="Delete Member" id="btnDeleteMember" disabled
confirm="Are you sure you want to permanently delete the selected
Member?" onclick="btnDeleteMember_Click" MenuTip="Click to permanently
Remove the Selected Member" />
</MainMenuItems>
</Menu:BarMenu>

When I build, I get parser errors saying that the runat='server'
attribute is missing from all the inner elements (i.e.,
<MainMenuItems>). Is there a way around this?
Dec 4 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary Bagen | last post by:
Hello, I am working on a page transition scheme and was wondering what the quickest way is to find out which ASP.NET controls need to be inside a form with runat=server. I've determined that...
4
by: Matthew Louden | last post by:
It happend to me more than once. When I create web controls or move the positions in VS.NET, I encountered the following run-time errors: It doesn't matter what controls I create, the following...
4
by: Alex Maghen | last post by:
I have a master page which contains a general page framework and also contains a <form runat=server> around most of the content of the page. Inside that <form> tag is a ContentPlaceholder. I...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.