Clock tasks are Ms.SharePoint.Administration.SPJobDefinition things. To make a timer job, one should make a new category that gets from SPJobDefinition. Clock tasks can be implemented by using Features, customized programs, Power Spend, or customized STSADM orders.
Showing posts with label SharePoint 2010. Show all posts
Showing posts with label SharePoint 2010. Show all posts
Saturday, September 1, 2012
Sunday, July 22, 2012
SharePoint 2010 - Make Customized Minute Job
In this article we try creating a custom Timer Job in SharePoint. The tools we are going to use are the following:
- Visual Studio 2010
- SharePoint DevTools from CodePlex
We can start with analysing what is a Timer Job.
Sunday, January 1, 2012
Personalize Site Content in SharePoint 2010 Site Template
If you are using the out of the box SharePoint website and you want to change the structure of the content, this is how you do it. This needs you to make a new XSL design submit and then be connected that submit to the writing.
Thursday, December 22, 2011
Convert off Customer Notifies in SharePoint 2010
It would be simple to set up a customer notify in SharePoint 2010 collection however when someone comes again to you and say "Hey its annoying me with the notify emails as am getting 15, 20 emails everyday" you would say "No problems I can fix it" and then you would go again to the collection looking how you can do this and then you realize "What?? I can't do it" and by then you would have included 100 customers to the collection: S
Wednesday, December 14, 2011
Script to set up SharePoint 2010 in Microsoft windows 7
You are prepared to set up SharePoint 2010 in Windows 7? Then you are at the right location. For the set up you have to acquire all necessary and adhere to the finish MSDN document and then do comprehensive. If there is something which do all the actions for you then how it is? Excellent right?
Sunday, December 11, 2011
401 sign in problem with webparts on Customized made Masterpage SharePoint 2010
Over the last few times I have been very fast paced with a big issue. I designed a new Web page for myself. And off course began with the beginning expert web page of snreddy20 After developing the whole masterpage and managing (anonymous) it labored. Except for the websites where I used (custom) webparts.
How To Make SharePoint 2010 customized made graphic webpart properties
If you have designed SharePoint 2010 vintage web parts before, you know that you can easily determine customized made web element qualities which your web element code-behind can eat.
With the reputation of SharePoint 2010 Graphic Webpart, you are probably interested in having customized made qualities identified there too.
There are few items different about revealing your customized made qualities in a Graphic Web par
Let’s see the steps involved:
Add new or use existing Visual Web Part to your project, in our case called Webpart1
Open the Webpart1.cs file which will look something like this:
- Update your CreateChildControls logic to look like this:
- Switch to your user control … Webpart1UserControl.ascx.cs
01 | [ToolboxItemAttribute(false)] |
02 | public class Webpart1: WebPart |
03 | { |
04 | private const string _ascxPath = @"~/_CONTROLTEMPLATES/[your ASCX].ascx"; |
05 | protected override void CreateChildControls() |
06 | { |
07 | Control control = Page.LoadControl(_ascxPath); |
08 | Controls.Add(control); |
09 | } |
10 | } |
and add your custom property definition right below the CreateChildControls method, in our case the property will look something like this:
1 | [WebBrowsable(true), |
2 | Category("Configuration"), |
3 | Personalizable(PersonalizationScope.Shared), |
4 | WebDisplayName("Friendly Display Name"), |
5 | WebDescription("Values: Whatever value you need)] |
6 | public string PropertyValue { get; set; } |
In here, the PropertyValue is the actual variable which will be later consumed by your web part user control.
1 | protected override void CreateChildControls() |
2 | { |
3 | Control control = Page.LoadControl(_ascxPath); |
4 | if (control!= null) |
5 | { |
6 | ((Webpart1UserControl)control).WebPart = this; |
7 | } |
8 | Controls.Add(control); |
9 | } |
This piece here will pass in the properties every time the control is reloaded. In here, the only change you’ll need to make is to rename Webpart1UserControl to the [name of your webpart]UserControl. This will reference the ASCX used for the Visual Webpart.
and define public variable right below the class declaration:
1 | public Webpart1 WebPart { get; set; } |
Here the Webpart1 is referencing the actual web part class file (not ASCX).
That’s all, in your code you can get a hold of the web part property value by using this: this.WebPart.PropertyValue, where the PropertyValue is the name of the variable we’ve chosen earlier.
Subscribe to:
Posts (Atom)
