Issue in custom delegate control

hi 
 am  creating a custom delegate control with controlid ="AdditionalPageHead" . i deployed and activated as a  site collection feature.
but i am not sure how to see the activated control/  how to see this control in action.
below is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Diagnostics;
namespace OPUserDispName
  public  class EcmaScriptDelegateControl :WebControl
      protected override void OnLoad(EventArgs e)
          base.OnLoad(e);
          string helloAlert = "alert('Hello, world!');";
          this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "popup", helloAlert, true);
//          if(!HttpContext.Current.User.Identity.IsAuthenticated)
   //              return;
      //       SPUser user = //SPContext.Current.Web.EnsureUser("i:0#.f|OPMembership|OPAdmin");
   //          user.Name = "OPAdmin";
      //       user.Update();
in my  elements.xml file  of my module :
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Control Id="AdditionalPageHead" ControlAssembly="OPUserDispName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=467af93481413beb" ControlClass="OPUserDispName.EcmaScriptDelegateControl"
></Control>
</Elements>
here i wanna see alert when the activated/or page load happened.
may i know, how to see this, in working. as per the current scenario, am unable to see any output even after feature activation. 
do i need to do any settings in master page? do i need to perform any changes in web.config.
help is appreciated!

This has complete solution.
http://www.codeproject.com/Articles/113704/SharePoint-Master-Page-Customizations-Through
can you try RegisterStartupScript instead
of RegisterClientScriptBlock?
Bala

Similar Messages

  • Custom Table Control in VA21/22/23 Tranaction Issue

    Hi Friends,
    Working on SAP R/3 Release 4.6C.
    There is a custom Table Control in one of the screen of VA21 Transaction.
    My requirement is to insert one more Field/Column to this table Control.
    The following are the sequence of fields in Table Control.
    Column1
    Column2
    Column3
    Column4
    After Inserting the Field in the middle of Column1 and Column2.
    The Sequence of Table Control is getting Changed.
    The Table Control has to show like this.
    Column1
    Column2     "New Field which is added
    Column3
    Column4
    Column5
    But I'm getting as below
    Column5
    Column3
    Column2     "New Field which is added
    Column1
    Column4
    When executing the Table Control Screen in SE51 with Screen Name and Screen Number,I am getting the perfect output.
    When executing thro VA21/22/23, Iam getting sequence mismatch.
    Anyone come across this scenario. Please guide to solve this.
    Thanks.

    Solved.
    Thanks.

  • Question about Delegate Control to Desktop Support

    I am working on delegating control to a newly formed/reclassified position in my company. This role will primarily provide Desktop Support. They will have little to no need to log into servers.
    I have already gave them admin rights to the end users machines, now I just need to grant them the proper rights in ADUC/Exchange so they can properly perform their role.
    Here is what they will need to do:
    User account lifecycle management (Create, change, delete, change password, etc)
    Computer account lifecycle management (Create, change, delete)
    Security & Distribution Group membership management (Create, change, delete)
    Exchange mailbox creation (Exchange Recipient Administrators)
    Run RSOP for GPO
    Basically, I want them to have full control over user, computer and group objects. This way they can create users, change group memberships,  add computers to domain, delete computer objects, etc.
    The problem I am having, I am not sure what rights I need to grant them via the delegate control wizard to accomplish all of that. I know I could just grant them "Full Control" of the OU structure containing all of our user, computer and group
    objects, but would like to avoid that unless its really what I need to do in the end.
    Any assistance would be appreciated!
    Thanks!

    I would not recommend providing Full control over user, computer and group objects. Provide permission based on the tasks that they need to perform. The following articles
    should help you:
    User/computer/Add remove members to Groups Delegation
    http://kpytko.pl/2012/05/16/active-directory-rights-delegation-overview/
    http://kpytko.pl/2012/05/26/active-directory-rights-delegation-part-2/
    http://social.technet.microsoft.com/wiki/contents/articles/6477.how-to-view-or-delete-active-directory-delegated-permissions.aspx
    Exchange Mailbox Delegation :
    http://blogs.technet.com/b/matabra/archive/2011/09/16/how-to-create-a-custom-recipient-management-group-using-exchange-2010-rbac.aspx
    Run RSOP for GPO Delegation:
    http://technet.microsoft.com/en-us/library/cc758756(v=ws.10).aspx

  • CProjects -error after modifying and then reverting custom field control

    Hi,
    We want to make a field non-mandatory in cProjects. We first changed the config of the field in the custom field control  in SPRO by making it changeable.But after that cProjects is giving a dump when we try to view or create any project.
    We reverted this change and restarted the servers but still see the dump.
    Any pointers on how to solve this issue will be helpful.
    Thanks,
    Simmi

    Vivek, Thanks for your reply.
    We did not modify the standard field control.We just tried to make the one of the standard fields 'Changeable' in the custom field control we have.But we got the dump, so we reverted the change back to 'Mandatory'.
    Now everything is same in the development server as other servers.. but still the dump shows up. Tried clearing IE cache , restarting server.. but the dump doesn't want to leave it seems.. Any ideas on what else we can try ?
    Thanks,
    Simmi
    Edited by: Simmi Balakrishnan on Sep 15, 2010 4:15 PM

  • Delegate Control of an OU

    how do i Delegate control for an OU so that members of a group that has been delegated control and move computer objects from one OU to another?
    I can delegate control for users and groups but can't seem to be able to delegate control of computers in a way that allows me give admins rights to move them from OU to OU
    Systems is Windows Server 2008 Active Directory.paddy ryan

    Hi,
    You can use the following steps to grant a group to control the two OUs. Then, members in this group could move computer objects between these two OUs.
    1. In ADUC, right click the first OU and select Delegate Control.
    2. Add the group you want.
    3. Select the "Create a custom task to delegate" option and click Next.
    4. Select "Only the following objects in the folder".
    5. Check the box before "Computer objects" in the list.
    6. Check the box before "Create selected objects in this folder" and "Delete selected objects in this folder". Click Next.
    7. Check the box for "Write".
    8. Click Next and Finish.
    9. Perform the same steps on another OU.
    After that, members in the group could move computer objects between these two OUs.
    If anything is unclear, please let me know.
    Regards,
    Bruce

  • Delegate Control on OU for Non-Admins

    Hello. I have an OU for a remote office. There is a local IT person who is able to join computers to the domain and manage the OU. I created a security group and this person is in this group. I have given the delegate control permission to this group and
    everything is working fine. The IT person can join computers to the domain and do other things in the OU. The issue is that a new IT person has joined the team in that remote office and he needs the same rights. I added him to the security group but for some
    reason he cannot join computers to the domain. He gets an access denied error. What am I missing??
    Asif Shah

    Hello. I have an OU for a remote office. There is a local IT person who is able to join computers to the domain and manage the OU. I created a security group and this person is in this group. I have given the delegate control permission to this
    group and everything is working fine. The IT person can join computers to the domain and do other things in the OU. The issue is that a new IT person has joined the team in that remote office and he needs the same rights. I added him to the security group
    but for some reason he cannot join computers to the domain. He gets an access denied error. What am I missing?
    In addition check the user membership in other groups. Maybe he has Deny access somewhere in the domain.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • Custom Java Control vs EJB

    Hello experts,
    IHAC , who has implemented few Portals on Weblogic 8.1sp . The customer is now keen on moving to 10.3.2 version.
    As a part of upgrade they also want to do a code refactoring as they are seeing many performance issues due to heavy user-traffic in some occassions.
    Can someone point out the pros-cons of using an EJB ( distributed components ) vs Custom Java Control + JDBC Control
    for implementing the Business Logic layer.
    If we move to an EJB based soultion , how can we levarage on the huge investment that customer had already done on the Data-Access using JDBC Control ?
    -thanks
    reju

    Jean,
    I created and built the ldapcontrol and in the jpf, I choose Insert ->
    Control ->LDAPControl from the menu. This did not cause the control to be
    displayed twice.
    Can you provide more info on how and where you dragged the LDAPControl from.
    Can you try cleaning the project control and building it again ?
    This can be done by choosing Build -> Clean Project -> your control project
    name.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Jean-Philippe Degand" <[email protected]> wrote in
    message news:[email protected]..
    >
    Hi,
    I made a custom Java control with bea Workshop 8.1 and it seems ok. Thiscontrol
    has one method to validate a username and password and to retreive someldap data.
    (SearchLDAP)
    I have created a small JPF with a login and a welcome page. When I dragthe LDAP
    custom control on the JPF control, the "method" appears twice in theAction view
    of the JPF (one with the type method and one with the type operation)
    Except that fact, evything seems to work but is it normal?
    Sources of the control implementation, of the interface and the jpegshowing the
    Action view of the JPF are in the attached zip.
    Thanks for your help.

  • Delegate Control - Add/Remove Computers

    We are looking at a way to delegate control to our client services group so that they can add and remove computers from the domain.  I am not seeing this in the available options.  We'll be applying this to certain OU's within the domain to ensure
    they cannot remove critical server accidentally such as a DC.  Ideas or links are appreciated.
    Thanks!

    These articles cover delegating these rights to users.  In general delegating these rigths creates issues because the user that created the object is given full control, and therefore they can do things other users can't.  Moving an object requires
    special rights in the source and target OU, while managing all computers in multiple OUs requires additional rights.
    How to allow specific users to add workstations to the domain
    http://networkadminkb.com/kb/Knowledge%20Base/ActiveDirectory/How%20to%20allow%20specific%20users%20to%20add%20workstations%20to%20the%20domain.aspx
    How to overcome issues related to specific users adding workstations to the domain
    http://networkadminkb.com/kb/Knowledge%20Base/ActiveDirectory/How%20to%20overcome%20issues%20related%20to%20specific%20users%20adding%20workstations%20to%20the%20domain.aspx
    How to allow users to fully manage Computer objects in an OU
    http://networkadminkb.com/kb/Knowledge%20Base/ActiveDirectory/How%20to%20allow%20users%20to%20fully%20manage%20Computer%20objects%20in%20an%20OU.aspx
    How to allow users to move computer objects between OUs
    http://networkadminkb.com/kb/Knowledge%20Base/ActiveDirectory/How%20to%20allow%20users%20to%20move%20computer%20objects%20between%20OUs.aspx

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How do I reuse a custom java control in another project?

    Relatively simple question, but I am having a lot of trouble with this. Documentation
    alludes to this being possible and easy, but never says how (and the only tutorials
    I can find describe creating a custom java control in the same project where they
    are used):
    "You can design a custom control for use in one project, or you can design a custom
    control for easy reuse in multiple projects." (from WLS docs on Java Controls)
    "When the control project builds, all of the controls and associated files are
    compiled into a single jar file and pushed onto the classpath of the containing
    application for immediate use and testing by other projects in the application.
    This jar is self-contained and can be moved to any other application by adding
    it to the application’s Library folder. Appropriately marked controls in the Library
    it will automatically appear on the user’s palette, ready for incorporation into
    an application." (from dev2dev article on controls, P. Hussey)
    I have a Workshop application which contains a few projects. One project is a
    component project, another is a web project. I created a custom java control in
    the control project and built it (JAR appeared in the Libraries folder). Now I
    open up the page flow in my web app project, and try to drag the java control
    onto my page flow - but I get an eror that the control must reside in the same
    project! It does not automatically appear on my palate, so if I go over to the
    palate on the right, and try to "add control" I only get a list containing the
    BEA controls - no custom controls are listed.
    What am I doing wrong? How can I incorporate my custom control into a web project?
    I don't want to move the control in the web project, since this contradicts the
    concept of a separate shared library. I should be able to build a library of controls
    and reuse them in our web projects right?
    -Bob

    Please disregard... I got it to work. For some reason I had to close Workshop,
    restart it, then I reloaded the application, rebuilt the control project, and
    now my control appears in the list of controls and can be easliy added to the
    palette.
    "Bob" <[email protected]> wrote:
    >
    Relatively simple question, but I am having a lot of trouble with this.
    Documentation
    alludes to this being possible and easy, but never says how (and the
    only tutorials
    I can find describe creating a custom java control in the same project
    where they
    are used):
    "You can design a custom control for use in one project, or you can design
    a custom
    control for easy reuse in multiple projects." (from WLS docs on Java
    Controls)
    "When the control project builds, all of the controls and associated
    files are
    compiled into a single jar file and pushed onto the classpath of the
    containing
    application for immediate use and testing by other projects in the application.
    This jar is self-contained and can be moved to any other application
    by adding
    it to the application’s Library folder. Appropriately marked controls
    in the Library
    it will automatically appear on the user’s palette, ready for incorporation
    into
    an application." (from dev2dev article on controls, P. Hussey)
    I have a Workshop application which contains a few projects. One project
    is a
    component project, another is a web project. I created a custom java
    control in
    the control project and built it (JAR appeared in the Libraries folder).
    Now I
    open up the page flow in my web app project, and try to drag the java
    control
    onto my page flow - but I get an eror that the control must reside in
    the same
    project! It does not automatically appear on my palate, so if I go over
    to the
    palate on the right, and try to "add control" I only get a list containing
    the
    BEA controls - no custom controls are listed.
    What am I doing wrong? How can I incorporate my custom control into a
    web project?
    I don't want to move the control in the web project, since this contradicts
    the
    concept of a separate shared library. I should be able to build a library
    of controls
    and reuse them in our web projects right?
    -Bob

  • Is it possible to create a custom filter control in SSRS 2005?

    Hello!
    I need to make a custom filter control for my reports which will provide some options for date parameter:
    - year and month selection
    - Some RadioButtons: "Yesterday", "Today", "Tommorow", "Last week", "Next week"
    - Date range
    Please, give any suggestion which can help to solve this task.

    Vsevolod,
    Unfortunately there is no built-in support for this customization in SSRS so far. You have to code to implement this feature in your custom application. For example, use a ReportViewer control in an ASP.NET application or a Win Form application.
    Anyway I think that you promote a good suggestion to improve Microsoft product's feature. Could you please give your feedback to our product team here?
    https://connect.microsoft.com/sql
    Thank you.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Goods issue to customer without sales order or Outbound delivery

    Dear all gurus,
    I have a case like that: Supposing we don't have neither Sales Order nor Outbound Delivery (because not implement SD, for eg).
    Then, we stil want goods issue to customer. So can u advise me how to do: which Tcode, which movement type,...
    Thanks,

    Hi,
    Create a cost center for customer and issue the goods with respect to this cost center in MB1A transaction using movement type 201.
    Then all the issues will be tracked based on this cost center.
    Regards,
    Bharat

  • Delegate Control in the masterpage viewable in a single web page?

    Hi,
    I am working on a emergency banner that will appear across all site collections' root website of a SharePoint Web Application using delegate control on the masterpage and user control on a feature.  I was wondering if there is a way to restrict
    the delegate/user control to activate only on a single webpage of a website.
    For example:
    I want the emergency banner to appear on the welcome page (e.g.
    http://mywebapp.com/sites/SiteA/Pages/default.aspx), but not in Site Settings/Contents (e.g.
    http://mywebapp.com/sites/SiteA/_layouts/15/viewlsts.aspx)
    Any help is greatly appreciated.

    ok, then try only second part: create feature of Web scope with Control element and activate it only on particular sites. Did you try it?
    Another option is to change logic of control itself: e.g. it may check some value in property bag of current SPWeb (e.g. ShowControl = true), and if it contains this flag, control will be rendered, if not just set this.IsVisible = false. I.e. you will be
    able to control on what sites to show the control via property bag.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Disable Toolbar in custom TextEditor Control

    Dear Gurus ,
    I made a custom Texteditor control in my own screen. The problem is that i can't disable the toolbat above the control .
    Please see my code ....
    CREATE OBJECT G_EDITOR_3
        EXPORTING
           PARENT = G_EDITOR_CONTAINER_3
           WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
           WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE
           WORDWRAP_POSITION          = 70
        EXCEPTIONS
            OTHERS = 1.
        IF SY-SUBRC NE 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              TITEL = G_REPID
              TXT2  = SPACE
              TXT1  = TEXT-001.
        ENDIF.
    Thanks a lot ....

    Hi,
    Try this code to disable your custom designed texteditor.
      CALL METHOD: editor_s->set_toolbar_mode
                       EXPORTING toolbar_mode = '0'.
    pls don't forget to place your container name inplace of mine,i.e  "editor_s".
    do rply if it's workable.
    Edited by: izullah on Feb 16, 2010 7:24 AM

  • Goods Issue to Customer not done

    Dear All,
    We have customize service module. We can select Return, Goods Issue to Customer, Inventory Transfer activity from activity tab on Service call itself.
    Problem is..first i have return material from Customer , then i have transfer inventory from branch whs to repair center whs and now i like to issue material to customer after repairing.
    When i am doing Goods issue to customer, it is giving error i.e. Inventory falls below minimum level.
    Can any body guide me for this.
    Warm Regards,
    Chintesh Soni

    HI Chintesh,
    Check out whether in the item master  you have selected " Manage Inventory By Warehouse" and whether you have maintained  the stock figure in the Required (Purchase UoM) field,the Minimum and the Maximum field in the items rows. In the Required (Purchase UoM) field the system displays the quantity needed to keep the stock at the minimum level.
    The system:
    1.   Issues alerts when the quantity goes below the minimum (Release Stock Below Minimum Level in Document Settings must be selected)
    2.    Does not let you enter stock documents when stock reaches maximum quantity
    Nagesh

Maybe you are looking for

  • Trouble connecting macbookpro to hdmi tv

    I have the cable going from my macbook pro to hdmi on my samsung tv.  when I choose the hdmi source a message pops up saying that there is no connection. I have tried both hdmi1 and hdmi2-- same message appears.  has anyone else run into this problem

  • Automatic Email generation for Payment run F110

    Hi Friends I am working on to send email automatically when Payment program runs . The program which we are using is RFFOEDI1 to generate payment . I followed all steps as been posted in this forum ,which did worked for many of other member but not f

  • Pass table name as parameter PLS-00357

    create or replace PROCEDURE universal_p ( tab IN VARCHAR2, col IN VARCHAR2, whr IN VARCHAR2 := NULL) IS TYPE cv_type IS REF CURSOR; cv cv_type; val VARCHAR2(32767); BEGIN OPEN cv FOR 'SELECT ' || col || ' FROM ' || tab || ' WHERE ' || NVL (whr, '1 =

  • IPod will not show up in iTunes even after trouble shooting

    For some reason, I cannot get m iPod touch to show up in my iTunes. It charges when it is plugged into my macbook and everything, but I cannot get it to be recognized by iTunes, even after following the trouble shooting. The closest i got to it worki

  • Sytem won't detect array

    I've had the system set up and running fine as a standard non-RAID.  Set up RAID 0 and all worked OK.  Then (big mistake) tried to set up RAID0+1.  Now, when I enable RAID in BIOS, enable RAID on SATA3 and 4, save and close BIOS menu, system restarts