Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 23, 2012 01:49 PM by BU XI - MSFT
Member
65 Points
110 Posts
Jul 20, 2012 10:04 AM|LINK
in my App_Code folder i have a class and into the class------
using System; using System.Collections.Generic; using System.Linq; using System.Web; using AjaxControlToolkit.HTMLEditor; namespace Office.WEB.App_Code { public class CustomEditor:Editor { protected override void FillTopToolbar() { TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold()); TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic()); } protected override void FillBottomToolbar() { BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode()); BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode()); } } }
in my aspx page-------
<%@ Register Namespace="Office.WEB.App_Code" TagPrefix="ED" %>
<ED:CustomEditor ID="EditorArticle" runat="server" Height="350px" AutoFocus="false" />
till now its ok.......but when i'm trying to run my project.......
Error 70 The type or namespace name 'App_Code' does not exist in the namespace 'SaiRam.WEB' (are you missing an assembly reference?)
this error occure......... please tell me how do i solve it............
710 Points
129 Posts
Jul 20, 2012 10:25 AM|LINK
Is 'SaiRam.WEB' is the name o f your application? Then change the name snamespace of App_Code as SaiRam.WEB.App_Code .
Jul 20, 2012 10:26 AM|LINK
Jul 20, 2012 10:39 AM|LINK
shit...............sorry .......im very very sorry............ it is Office.web.App_Code..... and application name is Office.Web
......... now........... what shoud i do ?
Jul 20, 2012 11:29 AM|LINK
http://forums.asp.net/t/1665361.aspx/1
App_Code does not work in web application projects.
All-Star
65839 Points
11163 Posts
Jul 23, 2012 03:28 AM|LINK
This will help you out
http://www.codeguru.com/csharp/sample_chapter/article.php/c13471
22367 Points
2704 Posts
Microsoft
Jul 23, 2012 01:49 PM|LINK
Hello
You'll see if in your project, you have correctly reference the necessary resources. http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.80).aspx
AXEL BLAZE
Member
65 Points
110 Posts
problem regarding App_Code
Jul 20, 2012 10:04 AM|LINK
in my App_Code folder i have a class and into the class------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AjaxControlToolkit.HTMLEditor;
namespace Office.WEB.App_Code
{
public class CustomEditor:Editor
{
protected override void FillTopToolbar()
{
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());
}
protected override void FillBottomToolbar()
{
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode());
}
}
}
in my aspx page-------
<%@ Register Namespace="Office.WEB.App_Code" TagPrefix="ED" %>
<ED:CustomEditor ID="EditorArticle" runat="server" Height="350px"
AutoFocus="false" />
till now its ok.......but when i'm trying to run my project.......
Error 70 The type or namespace name 'App_Code' does not exist in the namespace 'SaiRam.WEB' (are you missing an assembly reference?)
this error occure......... please tell me how do i solve it............
Usha82
Member
710 Points
129 Posts
Re: problem regarding App_Code
Jul 20, 2012 10:25 AM|LINK
Is 'SaiRam.WEB' is the name o f your application? Then change the name snamespace of App_Code as SaiRam.WEB.App_Code .
Usha82
Member
710 Points
129 Posts
Re: problem regarding App_Code
Jul 20, 2012 10:26 AM|LINK
Is 'SaiRam.WEB' is the name o f your application? Then change the name snamespace of App_Code as SaiRam.WEB.App_Code .
AXEL BLAZE
Member
65 Points
110 Posts
Re: problem regarding App_Code
Jul 20, 2012 10:39 AM|LINK
shit...............sorry .......im very very sorry............ it is Office.web.App_Code..... and application name is Office.Web
......... now........... what shoud i do ?
AXEL BLAZE
Member
65 Points
110 Posts
Re: problem regarding App_Code
Jul 20, 2012 11:29 AM|LINK
http://forums.asp.net/t/1665361.aspx/1
App_Code does not work in web application projects.
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: problem regarding App_Code
Jul 23, 2012 03:28 AM|LINK
This will help you out
http://www.codeguru.com/csharp/sample_chapter/article.php/c13471
http://forums.asp.net/t/1665361.aspx/1
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: problem regarding App_Code
Jul 23, 2012 01:49 PM|LINK
Hello
You'll see if in your project, you have correctly reference the necessary resources. http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.80).aspx
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework