Custom Server Controls :: Custom Tag Not Found For Control / Error: Unknown Server Tag 'custom:AjaxValidator'

Jan 3, 2011

Hope this is the correct forum for this question. I am using VWD 2010 an have a web project and get the following error upon execution:

Parser Error Message: Unknown server tag 'custom:AjaxValidator'.

My code is as follows in the .cs file:

[Code]....
[Code]....

View 1 Replies


Similar Messages:

Custom Server Controls :: Custom Server Control - Not Found In .cs File?

May 27, 2010

I'm having a dumb problem that is killing me. I have created the simpelest custom server control in VS 2008 c# called MyMsgBox. On the ASP page I put it in and register it. But, in the .cs file, when I try to call one of its functions I get the compile error that it is not found. The funny thing is that intellesense has it in the list and all of the functions with their given arguements. At the top of the .cs file I am using the namespace. The code for the custom server control is in the App_Code folder.
Also when I remove all refrences to its functions, the code compiles and when debugging the constructor for the class MyMsgBox gets hit.

<%@ Register TagPrefix="cc1" Namespace="CustomServerControls" %>
...
<cc1:MyMsgBox ID="msgBox1" runat="server" />
Task.aspx.cs
...
Using CustomServerControls;
...

this.msgBox1.confirm("Would You Like to add a new Task for this PO/Contract? ", "hid_f"); Error Message: 'Tasks' does not contain a definition for 'msgBox1' and no extension method 'msgBox1' accepting a first argument of type 'Tasks' could be found (are you missing a using directive or an assembly reference?)

View 5 Replies

C# - Receive Error 'Unknown Server Tag' With Page.ParseControl On A Custom Server Control

Aug 4, 2010

I'm building a dynamic form using XML and XSLT. Anyway I'm using a custom asp.net control for CKEditor, it's an HTML editor.

When I try to add the controls from the XSLT using Page.ParseControl(<the-string-from-the-xslt-here>), I get a warning saying:

Unknown server tag 'FCKeditor.CKEditor'

And of course, if I remove the control from the XSLT everything is working fine and all the regular asp.net controls like TextBox etc get rendered to the string just fine. Does anyone know what I can do about it?

View 2 Replies

Custom Server Controls :: Custom Control Design View Error

Aug 13, 2010

I have created a custom control from scratch and it works fine as in you can build the project that uses it and it works fine at runtime. Problem is when you go to design view the control shows an error in the place of where the control should be rendered.

Error: '<SomeValue>' Could not be set to '<SomeProperty>'

This shows up on all my custom set properties. These properties are created as basic as possible. I can give the properties values in Source view and run the app just fine. I can even add a Onclick event. If I don't set any custom properties the control will render fine in Design view. It's only when I set a value to a custom property.

Property Code Example:

[Code]....

I've even removed the Category and Description tags with no difference.

I don't know if what I said makes sens, but I hope it does.

View 3 Replies

Custom Server Controls :: Custom Control Design Time SiteMap Provider Error?

May 13, 2010

I was referred here by MSDN forums hope this is the right place - I have a custom control (:WebControl) that renders web.sitemap in a specific way. While it runs error free and produces the expected result, at Design-Time it complains

[Code]....

and have tried the SiteMapDataProvider Tag with and without the SiteMapProvider
attribute.Does anybody have (a) any experience with this, or (b) any suggestions as to how to track down the problem?

View 3 Replies

Custom Server Controls :: Custom Composite Control With Custom Templated Child Controls?

Mar 22, 2011

I am trying to build a custom composite control, which allows me to add custom content to each child control. It's a similar concept to what you have with a GridView and TemplateColumn. The markup used to place the control on the page would end up being something like this:

[Code]....

I have the code below, which allows me to put that markup on the page without throwing any errors, and it renders all the correct HTML, except it doesn't render the contents of the ColumnTemplate. I have replaced the Render() code with a comment because it's quite long winded and doesn't add anything important here:

[Code]....

I have tried to follow examples on MSDN and other forums but I can't make this work. I think I'm missing the code to render the contents of the template, but I don't know how to hook that up.

View 1 Replies

Custom Server Controls :: Video Tutorial Link For Composite And Rendered Custom Server Control?

Aug 20, 2010

i am new to technology so go easy on this post according to what i read from web there are 3 type of custom server controls 1 superclass2 composite 3 renderedi found video tutorial for superclass custom server control but couldnt find video tutials for other 2.lease forward me link for composite and rendered custom server controls video tutorial

View 1 Replies

Custom Server Controls :: Custom Server Control Rendering Method In Multiple Class?

May 17, 2010

I am creating custom server control. I have two classes in project. One is main class that render control and another will be used to render content based on condition.I just want to know how to render content from other classes in main class.For example. This isjust an example.My main class code

[Code]....

My TopLeftPane class

[Code]....

My page code on page load event

[Code]....

When I run the page, Header title always getting null. This is a just sample code. I will have more than 20 classes so I dont want to write a code in main class to render whole control.I hope all of you understand my problem.

View 3 Replies

Custom Server Controls :: TemplateField [TextBox] Binded To DataSource (Custom Server Control)?

Jul 28, 2010

Case : a templatefield Text Box created by class TemplateHandler and added to the composite

control Grid .how to bind it to the DataSource Object of the Grid Class ?

View 2 Replies

Custom Server Controls :: How To Use A Custom Server Control That Is Defined In Inline Code In The Same Page

Oct 22, 2010

I have to use inline code for an aspx page and I need to use a custom server control that is defined in the same aspx page but the control does not get processed as a server control. it gets returned as is as static html tag.

View 3 Replies

Custom Server Controls :: How To Add A Dropdownlist Of Available Values For A Custom Server Control Property

Sep 13, 2010

How would I add a (dropdown) list of available values for a custom server control property?

(Just like 'Visible' property of most controls has valid values of 'True/False' and nothing else can be entered or selected)

View 3 Replies

Custom Server Controls :: Embedded Javascript File In Custom Server Control?

Oct 19, 2010

I am creating a custom server control, and I am wanting to include a JavaScript file in the dll file when the control is built. I have tried suggestions from the following websites:[URL] But after following the directions, If I use firebug to see what errors show up, the JavaScript functions that are being called all say "goNext is not defined" which leads me to believe the JavaScript file is not being added correctly.

Some information on what my control looks like

I have the JavaScript File in a folder called Script. The namespace of the project is CustomControl, and the Name of the project is MaskedDateTextbox.

In my AssemblyInfo I have the following:

<Assembly: AssemblyVersion("1.0.*")>

View 24 Replies

Custom Server Controls :: Client Side Functionality In A Custom Server Control Using Vb?

Oct 4, 2010

is it posible to add client side functionality to a custom server control in vb.net?i am looking at msdn library and there is no code for vb :/ http://msdn.microsoft.com/en-us/library/aa719700%28v=VS.71%29.aspxI fount this on MSDN Library Adding Client Capabilities to a Web Server ControlWhat i'm trying to do is to add some client functionality to my control, so that you can get or set some properties/values on client side. From the above link i see that this is doable with Ajax Server Control, but i don't have it, i have Custom Server Control. Can i do this with Custom Server Control and how?

View 16 Replies

Custom Server Controls :: Implementing PostBackUrl Feature In A Custom Server Control?

Dec 20, 2010

I've build a custom server control inheriting from WebControl. Basically it is a kind of button. All is working perfectly except one thing: the PostBackUrl is inoperative.

I probably forgot to implement something. Actually I just added the property PostBackUrl. Probably I should also implement an interface of call something.

View 4 Replies

Custom Server Controls :: Error - Embedded Resources Not Found

Jan 22, 2010

I'm trying to create a web server control with a css embedded in the assembly.

I marked it as an embedded resource, add assembly attribute to reference it and use the proper methods to include the link to that

css in html code... my page renders ok witk something like <link href='/WebResources.axd?....' />

That's when the problem appears! My control isn't using the css as it appears to not found webResources.axd

I tried directly in web browser to locate http://locahost/mysite/WebResources.axd and it came with http code 404 NOT FOUND

In my IIS i have uncheked "Verify if file exists" on my extensions mapping related to .axd I add HEAD verb in Web.Config to path WebResources.axd and the result is always the same

View 3 Replies

Custom Server Controls :: Custom Server Control From Datalist Not Binding?

Feb 24, 2010

I have a control inherited from datalist because I want all the same functionality but with a couple of extra properties.

I have a method that goes off and gets the data inside the control (instead of using a separate datasource ID). It's reading it from XML into a datatable.

If on the code behind of the aspx page I put the control on I put a thecontrol.databind() in the page load, all works well.

However I'd rather not have to do this, instead the control should bind itself.

I gather it's something to do with the order of events but I'm not sure what to do about it.

I don't want to reinvent the datalist wheel, just add a couple of properties and get it's own data

Sample code (some code removed for clarity)

[Code]....

View 1 Replies

Custom Server Controls :: Embedding Images In Custom Server Control?

Jan 8, 2010

i am making a custom server control. I have embedded images and javascript in class library.But images are not displaying when i use that control in aspx page.my code is

[assembly: WebResource("ClassLibrary1.mail2mohanpyare.skins.kama.icons.png", "img/png")]

and how can i convert ckeditor in class library.

View 10 Replies

Custom Server Controls :: Use Image Inside Custom Server Control?

Aug 12, 2010

I want to use an image inside a Custom Web server control! Do I need to use Web.resources ? if so , how to do ?

View 9 Replies

Custom Server Controls :: Custom Control's Children Do Not Persist Contents After Postback

Feb 25, 2011

I have created a really simple custom control to render panels into a page. The code is below. When I use my control and add any webcontrol to it, after each page postback the contents of these child controls vanishes.

I must have missed something really simple but run the example to reproduce this. Can anyone please enlighten me as to why the controls are being 'emptied' of their contents, and how I stop this occuring?

Here is the code for the control

[Code]....

And here's how I am using it in a sample page:

[Code]....

[Code]....

View 16 Replies

Custom Server Controls :: Implementing An Interface From A Class Library In A Custom Control?

Jul 8, 2010

I'm building an n-tier application, with the web client and the class library separate. I'm also using the factory pattern of development, using interfaces to act as containers for different objects they are associated with. The problem I'm expreriencing is that I declared a public interface class in the class library and I can create an instance of it in in my aspx pages but whenever I declare it in my custom control code-side, i get an error, like so:

Error 20 The type or namespace name 'IContentMaker' could not be found (are you missing a using directive or an assembly reference?)

notge that I have inherited the class library namespace using the 'using' keyword just in case you are wondering. My code is like so:

using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using TQO_Classes ; //importing the class library project
public partial class PageContentMgr : System.Web.UI.UserControl
{
private IContentMaker _data; //this line throws the error, it works fine on aspx pages

View 1 Replies

Custom Server Controls :: Register Tagprefix For A Custom Control That Inherits Treeview?

Jun 15, 2010

I have an ASP.net web application project written in VB. Am trying to test a cobbed-together "MyTreeview" control put together from C# code that's been converted.

I think this will come "close" to what I'm trying to do - just get a treenode to have a CSS tag and render properly.

I have an App_LocalResources directory and a file called CustomTreeNode.vb. Inside that file is the following code:

[Code]....

[Code]....

[Code]....

View 1 Replies

Custom Server Controls :: Custom Control With Collapsible Panel Extender - Keep State?

Dec 31, 2010

I have a Custom Server Control with a Collapsible Panel Extender. I want to be able to keep the Collapsable state (open or closed) when doing a Post Back.

Here is my Custom Control's ASP code:

[Code]....

View 1 Replies

Custom Server Controls :: Custom Checkbox Control 'checked' Property Is Not Working?

Sep 3, 2010

Iam developing a custom checkbox control deriving from the 'compositecontrol' which i need to use it for a composite control purpose.

public
class
TngCheckBox :
CompositeControl
{

i have written the required properties which are working fine except the "checked" property. here is my code for 'checked' property. i tried both the below ways (commented one and not commneted) . the problem is the 'checked' value is not setting the value at the get set part of the property.its assigning the value at the design time , but when i check and uncheck its not updating the property value.which is resulting me wrong .

[Code]....

View 2 Replies

Custom Server Controls :: Custom Checkbox Control 'checked' Property Is Not Working ?

Oct 15, 2010

Iam developing a custom checkbox control deriving from the 'compositecontrol' which i need to use it for a composite control purpose.

public
class
TngCheckBox :
CompositeControl
{

i have written the required properties which are working fine except the "checked" property. here is my code for 'checked' property. i tried both the below ways (commented one and not commneted) . the problem is the 'checked' value is not setting the value at the get set part of the property.its assigning the value at the design time , but when i check and uncheck its not updating the property value.which is resulting me wrong .

[Code]....

View 4 Replies

Custom Server Controls :: Why Custom Control Write Data Only One Time

Dec 26, 2010

I have built a custom control. when i add this custom control in my page twice or more then the it write only one time of its render contest data.

View 4 Replies







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