Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

my problem is that I want to pop up a status bar in SP2010 after a File was uploaded via a single uploadform to a List.

Found this in the net: http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprevious/thread/1730052b-d8ad-47a5-997f-23c046eb936c

Problem of all is that I do not really find a site for a description to access a Page over the event handler.

Could anyone help me pls or give me another way to do that?

Thanks for all effort!

share|improve this question
add comment

1 Answer

Can't you do it from code behind instead? Like the following:

using (SPSite site = new SPSite("http://localhost")) 
        {
            using (SPWeb web = site.OpenWeb())
            {
                SPList list = web.Lists["Shared Documents"];

                SPEventReceiverDefinition def = list.EventReceivers.Add();

                def.Assembly = "ERDefinition, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=704f58d28567dc00";
                def.Class = "ERDefinition.ItemEvents";
                def.Name = "ItemAdded Event";
                def.Type = SPEventReceiverType.ItemAdded;
                def.SequenceNumber = 1000;
                def.Synchronization = SPEventReceiverSynchronization.Synchronous;
                def.Update();
            }
        }

Reference: Binding an Event Handler by Using the SharePoint Object Model


Edit:

Maybe you can try parts of this script, where you access a list via jQuery?

jQuery client list access

Reference: SharePoint list access – Part III – How to access SharePoint Windows Communication Foundation (WCF) REST (Representational State Transfer) services using jQuery (entirely client side only).

share|improve this answer
    
Maybe but I dont know really how. Normally I write scripts so is it possible to those stuff over ECMA script? –  Felix Zeidler Dec 10 '12 at 18:51
    
@FelixZeidler I've edited the answer, hope it's useful! –  Benny Skogberg Dec 10 '12 at 20:02
    
Thanks for your help, but at this time I don´t get the breakthrough –  Felix Zeidler Dec 11 '12 at 15:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.