Web Forms :: MenuControl Error When Adding 2nd & 3rd Level ItemProperties

Dec 15, 2010

I have a master page with a Menu Control I have added 3 Sub items to the Web.SiteMap they appear in the correct place on the form.

Now need to set the properties for the SubMenu Items... Except when I goto...

Menu.Properties
LevelSubMenuStyles
Add a SubMenuStyle

I get the following error on the control on the form....

Menu - Menu 1

Error parsing control: Unable to cast object of type 'System.Web.UI.WenCopntrols.SubMenuStyle' to type 'System.Web.UI.WebControls.MenuItemStyle'.

I am unable to modify the Sub Menu items

View 6 Replies


Similar Messages:

Web Forms :: Handle Error On Page Level Or Application Level?

Jan 31, 2011

I have to handle error related to web application. I am not sure how its works. I am thinking that I will add an error page (error.aspx) and in global.asax ,application_onError, I will redirecting the user to error page and that should be enough ! i mean it will handle error automatically.

View 4 Replies

Web Forms :: Populate Menucontrol From DB?

Jun 9, 2010

I have a menucontrol (<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">) that i want to populate with data from my mysql database. I want to populate both parentnodes and childnodes. The code below works great with a treeview but i want to get it to work on menucontrol.

This code gets the parentnodes but not the childnodes. The code that is commented away is copied from my treeview page and i is needed to populate the childnodes in my treeview with populateOnDemand.. I know you i can't use that with menucontrols, so how do i populate a menucontrol with my childnodes?

This is my code!

[Code]....

View 20 Replies

Web Forms :: Wrap The Menu Items Using Menucontrol (populated Using Database) ?

Jun 29, 2010

i have created menus using menucontrol (populated using database) its showing me menu items properly.now menu items goes out of screen (viewing area of the screen)i want to wrap that menu items means if the menu items goes out of the screen it will automatically shows the remaining menu items to the next line... and i have taken menucontrol in span tag..

View 2 Replies

Web Forms :: Error Registered As AllowDefinition='MachineToApplication' Beyond Application Level

Apr 20, 2010

I´m trying to build a site : http://muralhas.siteparaver.com/ with a login and a password, but when i log i get this error:

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error: [Code]....

View 2 Replies

Web Forms :: Repeater Error - Container Is Not Declared / It May Be Inaccessible Due To Its Protection Level

May 7, 2015

I tried like this but getting an error "container is not declared, It may be inaccessible due to it's protection level"

HTML

<div style="width: 100px">
<br />
<hr />
<br />
<asp:Repeater ID="rptLeftMenu" runat="server" EnableViewState="false">
<ItemTemplate>
<%-- <asp:HyperLink ID="hypLeftMenu" Font-Bold="true" runat="server" NavigateUrl='<%#Eval("Url")%>'><%#Eval("text")%> </asp:HyperLink>--%>

[Code] ....

View 1 Replies

Populate Menucontrol From Mysql Db?

Jun 10, 2010

i want to populate my menucontrol with data from my mysql db. It seems hard to find anything on the net that is not in C# and mssql.

I actually want to have all my parentnodes and childnodes in one table, but i have found an example where they use 2 tables, 1 holding the parentnodes and 1 for the childnodes, so i try this way first. It was written in C# and MsSql but i have tried to convert it. Here is my code so far. The result is that the my page is blank, no errors or anything, but the menu won't show?What have i done wrong?

My 2 tables:

In my aspx page: <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">

My vb code:
Code:
Imports MySql.Data.MySqlClient
Imports System.Data
[code]....

View 14 Replies

VS 2008 - How To Bind Menucontrol On Master Page Code Behind

Sep 28, 2010

How can I bind my menucontrol on my master page code behind? this is my code i've been fiddling with but my menu object is always nothing. what am i doing wrong? I have a menu control with ID=sitemenu on my master page

[code]....

View 19 Replies

Error: AllowDefinition='MachineToApplication' Beyond Application Level

Mar 1, 2010

I have downloaded the online project in ASP.Net. While running application I get an error "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS".

What changes should i make in web.config or elsewhere to make this work?

View 4 Replies

Iis7 - Configuration Granularity Between Machine - Level And Site - Level?

Apr 29, 2010

I want to be able specify to do the following: Specify configuration settings such as appSettings and connectionStrings for multiple web apps in IIS7 No editing Machine.config or the machine-level web.config Web apps are distinct web sites in IIS (not subfolder apps) Is this possible without just duplicating the configs for each app?

View 1 Replies

XML - Invalid At The Top Level Of The Document - Error Processing Resource

Nov 9, 2010

what is wrong with the following Xml file?

<?xml version="1.0" encoding="utf-8"?>
<root>
<align>right</align>
<columns>3</columns>
<rows>4</rows>
<backgroundColor>#333333</backgroundColor>
<circleButtonColor>#666666</circleButtonColor>
<currentCircleButtonColor>#000000</currentCircleButtonColor>
<textColor>#000000</textColor>
<thumbWidth>100</thumbWidth>
<thumbHeight>75</thumbHeight>
<thumbPadding>10</thumbPadding>
<thumbBorder>3</thumbBorder>
<thumbBorderColor>#0000F1</thumbBorderColor>
<assetWidth>600</assetWidth>
<assetHeight>400</assetHeight>
<showImageCaption>yes</showImageCaption>
<showImageShadow>no</showImageShadow>
<target>_self</target>
</root>

And here is the error Invalid at the top level of the document. Error processing resource [URL]. Line 20, Positi... </root> I am sure i could use a break, but in case i don't, before i upload the specific file, i get no errors at localhost. UPDATE: After checking the Xml (Hex), i noticed that the character 0x00 (NULL) was added magically, after the </root> By saying Magically i mean... The XML file is created normally at localhost. The NULL character is appended by a custom FTP class, (which is used for upload - in binary mode), OR something else that i cannot imagine..

View 2 Replies

Error At The Transport Level When Sending A Request To The Server?

Jun 15, 2010

Strange System.Data.SqlClient.SqlException

Error at the transport level when sending a request to the server. (Provider: Shared Memory Provider, error: 0 - Since both ends of the canal there are no processes.)

I've got this exception on my Web Site every time after restarting my SqlServer on simple request like this :

if (System.Web.HttpContext.Current.User.IsInRole("Administrator"))

but after I do refresh the page with this codebehind error disappears.

How to handle this error and where it comes from ?

View 1 Replies

Installation :: AllowDefinition='MachineToApplication' Beyond Application Level Error

Mar 8, 2010

I have created a website which has a main level and 2 sub categories which can only be accessed if logging in. I am using visual web developer 2008.So for example i have admin and prodpage as a subfolder which requires authentication. I currently have

<location path="/Admin">
<system.web>
<authentication mode="Forms">[code]....

but i get the error

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

Note:i have added in the main part of the config a forms authenitication but this redirects me start to the login page upon loading website which is not what i want. This part was meant for prodpage.

[Code]....

I also have a sub web.config under prodpage which basically does the following:

</authentication>
<deny users="?" />
</authorization>

View 5 Replies

Configuration :: Getting Error AllowDefinition='MachineToApplication' Beyond Application Level

Sep 2, 2010

I have done project in .NET 1.1. when i am opening that project in vs2005 that through solution explorer and build i am getting error like below.

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

i am configured my local with virtual directory also. i open through local iis it is working fine .but if i run the application then i am getting error above.common thing s i have done are my application has 3 weconfigs in 3 folders and one main config. and i have taken individual authentications and authorisations in main config only. this is not a priblem .actually this problem will occur if we have webconfigs and each have permissions then we will get this right, no problem i seperated.

but why i am getting this error. if i open in vs2008 also i am getting this error,

View 2 Replies

Configuration :: Error: The Current Trust Level Does Not Allow Use Of The 'AspCompat' Attribute

Aug 25, 2010

<%@ Page Language="VB" MasterPageFile="~/template.admin.master" AspCompat ="true" AutoEventWireup="false" CodeFile="AddNewResumes.aspx.vb" Inherits="AddNewResumes" title="Sarian solutions - Add New Resume" %>

total website with this page runnig in the local system. but when i put in online system it giving error like

Parse Error:The current trust level does not allow use of the 'AspCompat' attribute

View 9 Replies

An Error To Use A Section Registered As AllowDefinition='MachineToApplication' Beyond Application Level

Oct 18, 2010

I want to manage two web.config file in a application one for the front-end user and second for the back-end(admin) user.for admin section I have created a folder with name admin in the same website.following settiongs are in the admin/web.config

when I am trying to run the application I am getting following error message:It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS

Same problem have discussed on below

http://stackoverflow.com/questions/1546568/asp-net-error-tt-is-an-error-to-use-a-section-registered-as-allowdefinitionmac

http://stackoverflow.com/questions/690909/it-is-an-error-to-use-a-section-registered-as-allowdefinitionmachinetoapplicati

View 2 Replies

Security :: IIS Error: Changing The Application's Trust Level In The Configuration File

May 15, 2010

Error Description while browsing the website under IIS "The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file." Initially I deleted the virtual directory, created again, set the permission to anonymous, set the browse and execute permissions, no solution. Then after doing many trials, I found out the basic problem reading the error "not allowed by the security policy". In web configuration file if we set the security policy to Fully Trusted, then problem solved and application working fine. or Set the trust level to the main configuration file in he "C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIGweb.config"

View 1 Replies

MVC :: How To Display Model Level Custom Data Annotation Validation Error

Nov 30, 2010

I am a MVC newbie & am lost in various ways validation can be implemented in my application.

I created a custom model-level data annotation validator attribute, but am unable to display its error message in the view. Basically, I have let's say 5 properties in the Entity class Job (model-level custom attribute called UniqueKeywords defined on it):

1) LoginID: value comes in the URL

2) Title: Required property level attribute defined on it

3) CatID1, CatID2, CatID3 - 3 categoryIDs - these are dropdowns in the view with same list of keywords in all 3.

I want to mandate that the values picked by the user in all 3 category dropdowns should be different.

With reference to the code pasted below, here is the explanation of what happens:

When I submit the form without specifying a title or picking anything from any of the 3 category dropdowns, the validation occurs for the property level Required attribute as well as model level uniquekeywords attribute, but the error is displayed only next to the required field "Title". I can confirm that the custom validation also works by filling in some text in the Title field & then re-posting the form...this re-displays the view, but the error message "Category cannot be duplicated" is not displayed.

Only relevant code sections are pasted below:

My Entity class code:

[Code]....

View 10 Replies

Error To Use A Section Registered As AllowDefinition='MachineToApplication' Beyond Application Level" In Asp.net

Mar 18, 2011

I have to do some changes in a site which was developed by some developer already. On server it was not in built format while it was in code format. I downloaded its copy and try to run it on my machine (I have Win 2003 server) but faced the subjected line. In web.config its authentication mode is form. I am not much experienced and have not used form authentications. I even tried to create a new web site and copy files in it and run it but no luck. Please guide me how I can remove this error.

View 1 Replies

Configuration :: AllowDefinition='MachineToApplication' Beyond Application Level. Error Can Be Caused By A Virtua

Mar 11, 2010

I am using VS 2008, IIS 7, .NET 3.5 on a vista machine. I created a new web-site using "HTTP", thus to use IIS. The application being created by VS 2008 created the virtual directory.

There are only two objects created initially with a new website "Default.aspx" and "web.config" file. I've made no changes and choose to view in browser and receive the following error:

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

I've removed and reinstalled IIS 7. None of the sites previously created work. I've validated that a duplicate webconfig doesn't exist.

View 2 Replies

Configuration :: Transport-level Error Has Occurred When Sending The Request To The Server

Dec 15, 2010

am connecting online database in my website. whenever forms in idle one shows in server side. after refereshing that error cleared.what is the problem. that like thisA transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.

View 1 Replies

SQL Server :: A Transport-level Error Has Occurred When Sending The Request To The Server?

Aug 19, 2010

I m having a database problem that I couldnt identify. The IIS loses connection to database once in 3 weeks. Once you restart the IIS everything is normal. Looks like IIS is fine because i can go to static pages. When I go to a page that requires database connection I get this error:

A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - Either the application has not called WSAStartup, or WSAStartup failed.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Is this a connection string problem?. because without changing anything if I restart the webserver all is fine. Is this a problem with application state?

View 6 Replies

SQL Server :: Working With Geometry Data Type - Error: "Msg 403 - Level 16 - State"

Jul 12, 2010

I have a sql server 2008 database table that has a column of type geometry. I am trying to update the data for a record. The data that needs to be inserted into the database is a POINT location that i get off of two text fields on an .NET form. I pass the values into a procedure to update the record. Below is what I have been trying with no luck. The @lat and @long variables I pass into the procedure as type. Does anyone have a good way to update this data? When I try to compile this code it gives the error: "Msg 403, Level 16, State 1, Procedure UPDATE_LAT_LONG, Line 19 Invalid operator for data type. Operator equals add, type equals geometry."

create
PROCEDURE [dbo].[UPDATE_LAT_LONG]
(@PK int,
@lat geometry,
@long geometry )
AS
BEGIN
SET
NOCOUNT
ON;
UPDATE MITIGATION_REPORTING.dbo.MR_MITIGATION
SET MR_MITIGATION_LATITUDE_LONGITUDE =
'(''POINT('+cast(@lat
as
geometry)+' '+cast(@long
as
geometry)+')'')'
WHERE MR_MITIGATION_PK = @PK;
END

View 1 Replies

Web Forms :: Error Adding Item To List Box When Trying To Convert From VB.Net Code

Feb 24, 2010

I inherited an application written for VB.Net and am converting it over to ASP.Net, with VB as the back end. I have a data pull that adds values to a new instance of a class, then adds the item to a listbox. It worked great in the VB.Net version, but I get the following error in the Visual Studio Text Editor when I try to use the code:

Overload resolution failed because no accessible 'Add' can be called with these arguments:

'Public Sub Add(Item As System.Web.UI.WebControls.ListItem)':Value of type 'MyItem' cannot be converted to System.Web.UI.WebControls.ListItem'.
'Public Sub Add(Item as String)':Value of type 'MyItem' cannot be converted to String.

I have played around with the code quite a bit and have been researching online, but I'm just drawing a blank here.

I put the class("MyItem") in the "App_Code" folder in a file called "MyItem.vb". The class code is as follows:

[Code]....

The code I have for the sub that is supposed to add the items to the listbox is as follows:

[Code]....

View 6 Replies

Web Forms :: Getting Error While Adding New Control On Page - Invalid Argument

Aug 26, 2010

I am getting this wired error when I try to add another control on my user control. Is there a limitaion on how many controls we can have on a single user control?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved