Posts

Show Application Page in SharePoint 2010 Modal PopUp

Recently i was creating SharePoint webpart here we need to show application page in popup. After a lot of time to searching finally we found SharePoint Popup model as solution. here we give the brief explanation of using SharePoint model popup. call the JavaScript method in your code and pass URL as parameter as shown in below code.   <a href="javascript:OpenDialog(_layouts/xxxxxx/xxxxx.aspx');">MyPopUp</a> implement JavaScript method, in that calling sharepoint inbuilt method show model dialog as shown in below code. <script type="text/javascript">     function OpenDialog(URL)  {         var NewPopUp = SP.UI.$create_DialogOptions();         NewPopUp.url = URL;         NewPopUp.width = 400;         NewPopUp.height = 250;         SP.UI.Mo...

Custom SharePoint Timer Job

Know more about Timer Job A timer job runs in a specific Windows service for SharePoint Server. Timer jobs also perform infrastructure tasks for the Timer service, such as clearing the timer job history and recycling the Timer service; and tasks for Web applications, such as sending e-mail alerts. A timer job contains a definition of the service to run and specifies how frequently the service is started. The SharePoint 2010 Timer service (SPTimerv4) runs timer jobs. Many features in SharePoint Server rely on timer jobs to run services according to a schedule. For custom timer job creation need to follow the below steps or procedures: - Inherit class from SPJobDefintion (using Microsoft.SharePoint.Administration) - Creatig Timer Job in feature activated event receiver as per specifications as shown in below code //Create class derived from SPJonDefinition Class  class ListTimerJob : SPJobDefinition     {        ...