Thursday, October 18, 2012

Differences Between property and Method


 Property                                                                                   Method

  1. properties represent data                              1.methods perform actions
  2. Properties are accessed like fields.                  2.method returns an array
  3. Just add





Tuesday, October 16, 2012


ಮೊಸಳೆ ತರ ಇರುವ ಅಗಲಕಾಯಿ :)

ಲಿಫಾಲ್ಲಿ ಎಲ್ಲಾನು ಒಂದು ವಿಚಿತ್ರ  ವಿಷಮಯ- ವಿಸ್ಮಯ -  ಅಲ್ವಾ ಫ್ರೆಂಡ್ಸ್ ???

Thursday, September 6, 2012

http://sharepoint.microsoft.com/en-us/buy/Pages/Editions-Comparison.aspx


Web Services/Object Model
Available with SharePoint 2007:
§  Administration
§  Alerts
§  Authentication
§  Data Retrieval
§  Permissions
§  Sites
§  Search
§  People and Profiles
§  Workflow
New with SharePoint 2010:
§  List REST access with ADO.NET Data Services
§  Excel Services REST access
§  Client Object Model
§  WSRP (v1.1) Consumer Web Part




Monday, April 16, 2012

Need to know as sharepoint developr


You will find discussion topics for ASP.net, C#, JQuery, AJAX, SQL, VB.net, .Net Framework, WCF, WPF, WWF, WSS 3.0,MOSS 2007, OOPs Concepts, SQL Server, Programming.

Thursday, April 5, 2012

stsadm Operations:


Operations:


           activatefeature
           addalternatedomain
           addcontentdb
           addpath
           addpermissionpolicy
           addsolution
           addtemplate
           adduser
           addwppack
           addzoneurl
           authentication
           backup
           backuphistory
           binddrservice
           blockedfilelist
           canceldeployment
           changepermissionpolicy
           copyappbincontent
           createadminvs
           creategroup
           createsite
           createsiteinnewdb
           createweb
           databaserepair
           deactivatefeature
           deleteadminvs
           deletealternatedomain
           deleteconfigdb
           deletecontentdb
           deletegroup
           deletepath
           deletepermissionpolicy
           deletesite
           deletesolution
           deletetemplate
           deleteuser
           deleteweb
           deletewppack
           deletezoneurl
           deploysolution
           deploywppack
           disablessc
           displaysolution
           email
           enablessc
           enumallwebs
           enumalternatedomains
           enumcontentdbs
           enumdeployments
           enumgroups
           enumroles
           enumservices
           enumsites
           enumsolutions
           enumsubwebs
           enumtemplates
           enumusers
           enumwppacks
           enumzoneurls
           execadmsvcjobs
           export
           extendvs
           extendvsinwebfarm
           forcedeletelist
           getadminport
           getproperty
           getsitelock
           getsiteuseraccountdirectorypath
           geturlzone
           import
           installfeature
           listlogginglevels
           listregisteredsecuritytrimmers
           localupgradestatus
           managepermissionpolicylevel
           mergecontentdbs
           migrategroup
           migrateuser
           monitordb
           osearch
           osearchdiacriticsensitive
           patchpostaction
           provisionservice
           quiescefarm
           quiescefarmstatus
           refreshdms
           refreshsitedms
           refreshsitemap
           registersecuritytrimmer
           registerwsswriter
           removedrservice
           removesolutiondeploymentlock
           renameserver
           renamesite
           renameweb
           restore
           retractsolution
           retractwppack
           scanforfeatures
           setadminport
           setapppassword
           setconfigdb
           setlogginglevel
           setproperty
           setsitelock
           setsiteuseraccountdirectorypath
           setworkflowconfig
           siteowner
           spsearch
           spsearchdiacriticsensitive
           syncsolution
           unextendvs
           uninstallfeature
           unquiescefarm
           unregistersecuritytrimmer
           unregisterwsswriter
           updateaccountpassword
           updatealerttemplates
           updatefarmcredentials
           upgrade
           upgradesolution
           upgradetargetwebapplication
           userrole


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm -o retractsolution -name ".wsp" -url "server name"  -immedi
ate

Timer job successfully created.


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm -o retractsolution -name "Wsp" -url "server name"  -immedi
ate

Timer job successfully created.



C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm -o addsolution -filename "D:\NV4.3\XPoint\XPointBase\XPointBase\bin\Debug\xpo
intbase.wsp"

Operation completed successfully.


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm -o deploysolution -name ".wsp" -url "server ame" -immed
iate -allowgacdeployment

Timer job successfully created.

GET LIST OF FEATURES THROUGH POWERSHALL COMMAND

Wednesday, April 4, 2012

Multiple cases


Switch (value)
{
case 1: case 2: case 3:          
    // Do Something
    break;
case 4: case 5: case 6: 
    // Do Something
    break;
default:
    // Do Something
    break;
}

Tuesday, March 13, 2012

Create a list, columns and view programmatically


Create a list, columns and view programmatically

Next task on my prep – create a list programmatically. Then I want to add some columns to it, and show these on the default view. Actually, it’s mostly pretty easy (apart from that last part).
Well, creating a list is pretty easy.
SPSite siteCol = new SPSite(@"http://vm-moss2007/test/");
SPWeb site = siteCol.OpenWeb();
site.Lists.Add("New Calendar", "This calendar was created programmatically", site.ListTemplates["Calendar"]);
Here you can see me getting an SPWeb object, and then adding to itsSPListCollection. You have to supply a template for the list, and this depends on the templates available on the site – hence getting the template from theSPListTemplateCollection.
I wanted a custom list, and I wanted it to appear on the left navigation:
site.Lists.Add("My Custom List", "This list was created programmatically", site.ListTemplates["Custom List"]);
SPList newList = site.Lists["My Custom List"];
newList.OnQuickLaunch = true;
newList.Update();
Great! And now I want to add some columns. First I added a text column:
newList.Fields.Add("NewText", SPFieldType.Text, true);
And then a lookup column (as I figured this would be a hard one):

SPList targetList = site.Lists["My Lookup Target"];
SPField targetField = targetList.Fields["My Target Lookup Column"];
newList.Fields.AddLookup("NewLookup", targetList.ID, false);
SPFieldLookup lkp = (SPFieldLookup)newList.Fields["NewLookup"];
lkp.LookupField = targetField.InternalName;
lkp.Update();
First I get the target list and the target field for the lookup. I add a new lookup column, but for some strange reason none of the SPFieldLookup class’s constructors allow me to create one supplying a target list and column. Also, none of the SPFieldCollection’s methods allow me to add a lookup supplying a target column.
Thus, I end up getting the column I’ve just created and assigning the column that I want use as the value of the lookup. Crazy. I’m sure that there must be a better way of doing this (i.e. in one call) but I don’t see how.
Anyway, it works; my columns are added. Now I want to show them in the default view:
//*** Doesn't work for some obscure reason ***
newList.DefaultView.ViewFields.Add("NewText");
newList.DefaultView.ViewFields.Add("NewLookup");
newList.DefaultView.Update();
As the code subtly hints, this code didn’t work – my columns weren’t shown in the default view. However, the code below does work:
SPView view = newList.DefaultView;
view.ViewFields.Add("NewText");
view.ViewFields.Add("NewLookup");
view.Update();

Friday, March 9, 2012

"Column Limit Exceeded"


Just run these power shall commands
By Default  MaxListItemRowStorage =6
$webApp = Get-SPWebApplication servername
$webApp.MaxListItemRowStorage = 8
$webApp.Update()

How to Deploy Your HTML Website on a Linux Server (Apache + SFTP)

Launching a simple HTML website on your own Linux server is easier than you might think. Whether you're sharing a static landing page or...