I have a problem in writing a coustom Control in Atlas toolkit...
I had been following Shawn Bruke's tutorails for this ....
he had give the code for extender.cs as
==========================================
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using Microsoft.Web.UI;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.AtlasControlExtender;
#region Assembly Resource Attribute
[assembly: System.Web.UI.WebResource("AtlasToolkitDemo.Opacit yBehavior.js", "text/javascript")]
#endregion
namespace AtlasToolkitDemo
{
[Designer(typeof(OpacityDesigner))]
[ClientScriptResource(null, "opacity")]
public class OpacityExtender : ExtenderControlBase<OpacityProperties, Control>
{
public OpacityExtender()
{
this.RequiredScripts.AddScriptReference(FrameworkS cript.AtlasUIGlitz);
}
}
}
================================================== ================
I was not able to use the same logic in my project since
There is no RequiredScript for me in the namespaces i use...
then i came across the note that "RequiredScripts property on ExtenderControlBase has been deprecated. Move to RequiredScriptsAttribute before next refresh. "
But even that is not available for me..
please help me out..
the code i was writng is....
================================================== ==
Imports System
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports AtlasControlToolkit
#Region "Assembly Resource Attribute"
<Assembly: System.Web.UI.WebResource("AtlasToolKitDemo.Opacit yBehavior.js", "text/javascript")>
#End Region
Namespace AtlasToolKitDemo
<Designer(GetType(OpacityDesigner))> _
<ClientScriptResource(Nothing, "opacity")> _
Public Class OpacityExtender
Inherits ExtenderControlBase(Of OpacityProperties, Control)
Sub New()
Me.. I am having problem here
End Sub
End Class
End Namespace