Tuesday 3 April 2012

IMP URLS

domain:software-innovation.com;domain:no.org.software-innovation.com,no\vijaya.krishna,W3lc0me1;domain:dk.org.software-innovation.com,no\vijaya.krishna,W3lc0me1;domain:se.org.software-innovation.com,no\vijaya.krishna,W3lc0me1


Update-SPSolution -Literal D:\MySymphonyProjects\Symphony.
SymPulse.PhotoGallery.wsp -Identity Symphony.SymPulse.PhotoGallery.wsp -GACDeplo
yment
PS C:\Users\rkotha> Update-SPSolution -Literal E:\Alert\SI\SI.Community.Alerts\
SI.Community.Alerts\bin\Debug\SI.Community.Alerts.wsp -Identity SI.Community.Alerts.wsp -GACDeployment

====================custom webpart propeties==================
http://www.lamber.info/post/2010/05/21/How-do-I-create-custom-properties-in-Visual-Web-Parts.aspx
===============

webpart title none
=================
this.ChromeType = PartChromeType.None;


Get PageName
===========
http://www.bytemycode.com/snippets/snippet/919/

Get Site Owner
==============
http://stackoverflow.com/questions/1437430/how-to-programmatically-determine-the-3-permission-groups-visitors-members-owner

3f3aa9a1-4842-4950-b0a6-2f1a704b63e2




C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm-o enumdeployments

=================people editor==============
http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/multiple-user-insertion-in-sharepoint-list/
====================================
work process id
=================
C:\Windows\System32\inetsrv\appcmd list wp


Roles
=========
http://stackoverflow.com/questions/4930260/how-to-add-and-remove-group-programmativally-from-list-permissions-in-sharepoint
http://blog.concurrency.com/sharepoint/create-groups-and-roles-in-sharepoint-2010/


======

key words
==========
http://support.microsoft.com/kb/316063

speical chars valid
====================
# % & * { } \ : < > ? / +
http://stackoverflow.com/questions/2279433/how-to-check-for-special-characters-using-regex
http://www.moss2007.be/blogs/vandest/archive/2007/12/27/illegal-characters-in-site-url.aspx
==============

Update-SPSolution -Literal D:\MySymphonyProjects\Symphony.
SymPulse.PhotoGallery.wsp -Identity Symphony.SymPulse.PhotoGallery.wsp -GACDeplo
yment
PS C:\Users\rkotha> Update-SPSolution -Literal E:\Alert\SI\SI.Community.Alerts\
SI.Community.Alerts\bin\Debug\SI.Community.Alerts.wsp -Identity SI.Community.Alerts.wsp -GACDeployment


stsadm-o canceldeployment-id "GUID 3f3aa9a1-4842-4950-b0a6-2f1a704b63e2"
3f3aa9a1-4842-4950-b0a6-2f1a704b63e2

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsadm-o enumdeployments
"3f3aa9a1-4842-4950-b0a6-2f1a704b63e2">





Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>stsadm
'stsadm' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>cd\

C:\>cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\B
IN

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm-o enumdeployments
'stsadm-o' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm -o enumdeployments



Microsoft SharePoint Foundation Solution Deployment for "si.communi<br />ty.alerts.wsp"
Upgrade
Pending
10/31/2011 6:42 PM
si.community.alerts.wsp
Front-end Web server



C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN> sts
adm -o canceldeployment -id ""

The job id specified is invalid.

stsadm.exe -o canceldeployment
-id

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN> sts
adm -o canceldeployment -id "3f3aa9a1-4842-4950-b0a6-2f1a704b63e2"

Operation completed successfully.


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>

uninstallfeature
==============
stsadm-o canceldeployment-id PS C:\Users\rkotha> stsadm -o uninstallfeature -id "c17a8fb2-1a8c-4aaa-93fa-04be
e08eacfd" -force



stsadm.exe -o addpath -url http://server/sites -type wildcardinclusion
stsadm.exe -o adduser
-url http://server/site
-userlogin DOMAIN\name
-useremail someone@example.com
-role reader
-username "Your Name"
-siteadmin
stsadm.exe -o backup -url http://server/site -filename backup.dat -overwrite
stsadm.exe -o backup -directory c:\backup -backupmethod full
stsadm.exe -o createsite -url http://server/site
-ownerlogin DOMAIN\name
-owneremail someone@example.com
stsadm.exe -o createweb -url http://server/site/web
stsadm.exe -o deletesite -url http://server/site
stsadm.exe -o deleteweb -url http://server/site/web
stsadm.exe -o enumsites -url http://server
stsadm.exe -o enumsubwebs -url http://server/site/web
stsadm.exe -o enumusers -url http://server/site/web
stsadm.exe -o extendvs -url http://server:80
-ownerlogin DOMAIN\name
-owneremail someone@example.com
stsadm.exe -o renameweb -url http://server/site/web1 -newname web2
stsadm.exe -o restore -url http://server/site -filename backup.dat
stsadm.exe -o restore -directory c:\backup -restoremethod overwrite
stsadm.exe -o setconfigdb -databaseserver server
stsadm.exe -o unextendvs -url http://server

For information about other operations and parameters,
use "stsadm.exe -help" or "stsadm.exe -help "



C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>STSA
DM.EXE -o setproperty -pn peoplepicker-searchadforests -url https://test-communi
ty.software-innovation.com -pv domain:software-innovation.com;domain:no.org.soft
ware-innovation.com,no\vijaya.krishna,W3lc0me1;domain:dk.org.software-innovation
.com,no\vijaya.krishna,W3lc0me1;domain:se.org.software-innovation.com,no\vijaya.
krishna,W3lc0me1

Operation completed successfully.


C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>


welcome menu
============
http://sharepoint-snippets.com/adding-a-custom-action-to-sharepoint-personal-menu/


groups & users
=============
http://blog.concurrency.com/sharepoint/create-groups-and-roles-in-sharepoint-2010/



custom sitedeffination
=====================
http://community.bamboosolutions.com/blogs/sharepoint-2010/archive/2010/11/11/sharepoint-2010-cookbook-how-to-create-a-custom-site-definition-with-additional-content-in-sharepoint-2010-using-visual-studio-2010.aspx


========================code=====================


0x0120D52000890464D5ADFA7E42A1BFF897EF3199EE


SPWeb oWeb= SPContext.Current.Web;
foreach (SPContentType ct in oWeb.Lists["TEST"].ContentTypes)
{
string strContentTypeid = ct.Id.ToString();
string strContentTypename = ct.Name.ToString();
}



ex = {"The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again."}



string Activestep1 = properties.BeforeProperties[Constants.ListColumn_Project_ActiveStepId].ToString();
string Activestep = properties.AfterProperties[Constants.ListColumn_Project_ActiveStepId].ToString();


=============Title changed==============
http://social.msdn.microsoft.com/Forums/ar/sharepointcustomization/thread/e1195cb2-a816-4639-a17a-6d90c333e78b



==================add solution================
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>stsa
dm -o addsolution -filename "D:\SIPOCVSS\Schneider.SIPOC\Schneider.SIPOC\bin\Rel
ease\Schneider.SIPOC.wsp"



============================page title=======================
http://blogs.pointbridge.com/Blogs/becker_michael/Pages/Post.aspx?_ID=11
http://sharepointvenividivici.typepad.com/sharepoint-customization/2011/06/setting-an-application-page-title-from-code.html


=====================instsall ajax==================
C:\Windows\system32>gacutil -i D:\SIPOCVSS\AjaxControlToolkit.dll


===============database move============
http://www.dotnetspider.com/forum/301942-Moving-SharePoint-different-SQL-server.aspx


==============textlength======================
http://jquerybyexample.blogspot.com/2010/10/set-max-length-for-aspnet-multiline.html
http://www.codingforums.com/archive/index.php/t-121148.html


check group
===============
http://forums.asp.net/t/1012092.aspx/1
http://www.sharepointsecurity.com/sharepoint/sharepoint-development/get-spgroup-if-not-available-create/
http://www.codeproject.com/Articles/82178/Check-Whether-User-Exists-in-Active-Directory

XML
=============
http://stackoverflow.com/questions/284324/what-is-the-best-way-to-build-xml-in-c-sharp-code
http://stackoverflow.com/questions/1123718/format-xml-string-to-print-friendly-xml-string





Get current user permissions
======================
http://david-rehak-sharepoint.blogspot.in/2011/08/check-if-current-user-has-permission.html
http://www.dhirendrayadav.com/2010/06/check-if-current-user-belongs-to-role.html


private bool UserAccessToSite(string spRole)
{

bool access = false;
try
{
SPRoleDefinition spRoleDef = SPContext.Current.Web.RoleDefinitions[spRole];
// SPRoleDefinitionBindingCollection usersRoles = SPContext.Current.Web.AllRolesForCurrentUser;
access = SPContext.Current.Web.AllRolesForCurrentUser.Contains(spRoleDef);
//access = SPContext.Current.Web.DoesUserHavePermissions(SPContext.Current.Web.CurrentUser.Name, PermissionType);

SPRoleDefinition spRoleDef1 = SPContext.Current.Web.RoleDefinitions["Full Control"];
access = SPContext.Current.Web.AllRolesForCurrentUser.Contains(spRoleDef1);
return access;
}
catch
{
access = false;
return access;
}

}



query string changed
========================
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/ac31dc48-308e-497d-94d1-ddba577e1841
http://stackoverflow.com/questions/529551/how-can-i-remove-item-from-querystring-in-asp-net-using-c
if (IsPostBack)
{
PropertyInfo isreadonly = typeof(System.Collections.Specialized.NameValueCollection).GetProperty("IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic);
// // make collection editable
isreadonly.SetValue(this.Request.QueryString, false, null);
Request.QueryString["ParentStepId"] = id.ToString();
}


Role
==========
http://www.c-sharpcorner.com/uploadfile/Ravish001/programmatically-add-or-remove-item-level-permission-in-sharepoint-2007/

Interview Questions
===================
http://sharepointgauravgoyal.blogspot.in/2011/04/sharepoint-interview-questions-and.html
Schneider.SIPOC.CONTROLTEMPLATES.Schneider.SIPOC.UCManageRemainders
!Important


gotomeeting
===========
https://www1.gotomeeting.com/join/769636408
http://channel9.msdn.com/Blogs/funkyonex/Best-Practices-on-Building-SharePoint-2010-Web-Parts-with-Visual-Studio-2010


============logo's==============
http://www.iconfinder.com/search/?q=in+progress
9491925847
bdwnsp02

9008422559


SIPOC is a workflow management system which keeps track of all the projects.
It contains the customizable template from which user can create the projects.
A project contains the different Stage Gate and the Activities.
Activities are associated with Document Set. Once all the activities are completed in a Stage Gate,
Stage Gate can be approved. In the same way when the Stage Gates are completed and approved,
a Project is completed.


HttpContext context = HttpContext.Current;
string kk = HttpContext.Current.Request.Url.ToString();
kk = kk.Replace(SPContext.Current.Web.Url, Web.Url);
SPUtility.Redirect(kk, SPRedirectFlags.Default, HttpContext.Current);



3520A1


===================Source path======================
string SourcePath = Page.Request.Url.ToString();

string urlHostName = Page.Request.Url.Host;

string urlReferrerHostName = SPContext.Current.Site.UpgradeRedirectUri.Host;

if (!urlHostName.Equals(urlReferrerHostName))

{

SourcePath = SourcePath.Replace(urlHostName, urlReferrerHostName);

}
http://stackoverflow.com/questions/2104502/spweb-url-returns-wrong-url
http://sharepoint.stackexchange.com/questions/1190/using-spcontext-current-to-get-public-url-of-the-current-zone
======================charts=============
http://www.codeproject.com/Articles/235117/ASP-NET-4-0-Chart-Control

http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx




================save webpart chromtype using code==================
http://social.msdn.microsoft.com/Forums/en-ZW/sharepoint2010general/thread/df3e5f9a-a8ac-47de-b6bb-271f2770bf50




=====================================================================================
http://www.mountaindragon.com/html/marquee.htm#TOC
cmntest1-dmz
http://bdsi301a:14444/
06421140053747
https://www.nothingbutsharepoint.com/sites/eusp/Pages/redirect-a-sharepoint-site-by-using-the-content-editor-web-part.aspx


http://msdn.microsoft.com/en-us/library/dd584174(v=office.11).aspx


http://msdn.microsoft.com/en-us/library/ms415817.aspx

http://nishantrana.wordpress.com/2009/01/01/writing-custom-properties-for-web-parts-in-sharepoint/


\\10.99.4.84\microsoft\DotNet\Microsoft .NET Framework 4 (Standalone Installer)


This is an example of a scrolling marquee

activate feture using code
=========================
spSite.Features.Add(“d3e16526-3d8c-4df7-888e-a81d30f57243”)
spSite.Features.Add(“featureid”)
spSite.Features.Remove(“featureId”)


timerunablejobs
===============
http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx
http://dotnetfinder.wordpress.com/2010/07/24/creatingcustomsharepointtimerjob2010/

Deploye the solution
========================
http://technet.microsoft.com/en-us/library/cc262995.aspx




Adding/Removing web part in SharePoint website programmatically using C# Code

================================================================================
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3afc6422-7402-4d34-9682-89fa69586813/

create webapp
=============
http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template/

popup window
=============
http://www.surveygizmo.com/survey-support/tutorials/pop-up-window/

listviewwebpart
=================
http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/e7eda00c-14c7-41f9-87b1-09d911c30378/
http://www.sharepointkings.com/2008/08/create-custom-listviewwebpart.html
http://msdn.microsoft.com/EN-US/library/0y1tbt21


suvey
=====
http://msmvps.com/blogs/sundar_narasiman/archive/2008/08/14/programmatically-create-sharepoint-survey-questions.aspx

Uday Kumar
=========
http://bestofcyber.wordpress.com/


User Control
===============

http://stackoverflow.com/questions/2275625/asp-net-custom-user-control-to-add-dynamically
http://msdn.microsoft.com/en-us/library/5d0t5fak(v=vs.71).aspx

=====================================================================================
package
======
Update-SpSolution -Literal D:\Projects\Sympulse\Symphony.Sympulse.Portal\Symphony.Sympulse.Portal\bin\Debug\Symphony.Sympulse.Portal.wsp -Identity Symphony.Sympulse.Portal.wsp -GACDeployment


feature
========
http://vspug.com/nicksevens/2007/09/04/activate-features-through-code/
add fetures using code

=======
http://www.mossgeek.com/2008/07/how-to-activate-or-deactivate-feature-using-sharepoint-object-model/
style
=====
lblMessage.Attributes.Add("style", "color:Red;font-weight:bold;");

toolpart
======
http://sharepoint-insight.blogspot.com/2008/10/sharepoint-creating-web-part-with.html


servey respond check
====================
imp
====
http://social.technet.microsoft.com/Forums/en-MY/sharepoint2010customization/thread/7378f60a-4f3e-448d-911d-ba606cf032ae


http://www.jasonlcolon.com/2008/11/10/how-to-configure-a-sharepoint-blog-rating-system/

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b27fe5ec-fd52-4dde-9adc-54ad713cfe46/


http://sharepoint-guru.blogspot.com/2007/07/how-to-programmatically-check-whether.html

http://blogs.msdn.com/b/sharepointdev/archive/2011/06/23/how-to-open-a-list-form-in-a-modal-dialog-box.aspx





try {
SPWeb web = SPControl.GetContextWeb(Context);
SPUser sUser = web.CurrentUser;
string str = "Name:" + sUser.Name + "
"; "Login Name :" + sUser.LoginName + "
"; "Email:" + sUser.Email + "
"; "Groups:" + sUser.Groups.Count + "
";
foreach (SPGroup grp in sUser.Groups)

{

" * " + grp.Name + " total Members:" + grp.Users.Count + "
";

catch (Exception ex)
{ "No Current User" ;



str +=

str +=

str +=





str +=

}

lblInfo.Text = str;

}



lblInfo.Text=

}




// SPUser user = web.CurrentUser;
// string username = user.Name;




string siteUrl="http://****";
string userForCheck="Domain\\useraccount";
//Check whether the user has responded to the survey
bool result=false;
//Check whether the user has completed the answer
bool isRespondComplete=false;

SPSecurity.RunWithElevatedPrivileges(delegate()
{

using(SPSite site =new SPSite(siteUrl))
{

using (SPWeb web=site.RootWeb)
{
SPUser imitationUser = web.EnsureUser(userForCheck);
using(SPSite siteWithUser = new SPSite(siteUrl, user.UserToken))
{
using ( SPWeb webWithUser = siteWithUser.RootWeb)
{
SPQuery q = new SPQuery();
q.Query = @"" + SPUser.Name + @"'";
SPList list=webWithUser.Lists["your survey's name"];
SPListItemCollection items=list.GetItems(q);

if(items.Count>0)
{
result=true;
isRespondComplete=items[0]["Completed"].ToString()=="1";
}
}
}
}
}
});



foundation instal
==================
http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx

http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/7c741e8d-3092-4bbe-b275-5e1fcadfc81a


linq
==========
http://msdn.microsoft.com/en-us/library/ff742312.aspx


adding webpart to site
======================
http://blogs.msdn.com/b/bethmassi/archive/2010/01/28/creating-a-sharepoint-visual-web-part-using-visual-studio-2010.aspx
http://www.a2zdotnet.com/View.aspx?Id=100
http://bdsi982a/SitePages/Home.aspx?content=1


share point 2010 managed shell
=============================
http://blogs.technet.com/b/wbaer/archive/2010/04/11/managed-accounts.aspx
http://www.sharepointedutech.com/2011/02/06/sharepoint-2010-management-shell-run-as-admin-always/



Announcement : To change your login password of LLM ,Click on "Welcome" menu -> Change Password option available on your right hand side of the page.(i.e Welcome menu is available just below the FAQ icon)
public static void GetListData(string listUrl)
{
SPList objList = null;
char [] chrSplitter={'/'};
try
{
listUrl = listUrl.TrimEnd(chrSplitter);
string[] arrList = listUrl.Split(chrSplitter);
if (arrList != null && arrList.Length > 0)
{

using (SPSite site = new SPSite(listUrl))
{
using (SPWeb web = site.OpenWeb())
{
if(CheckListExists(SPEncode.UrlDecodeAsUrl(arrList[arrList.Length - 1]),web,ref objList))
{
//Add business logic here
}
}
}
}


}
catch (Exception ex)
{

}
}




public static bool CheckListExists(string listName, SPWeb web,ref SPList list)
{
try
{
//---Check list exist or not
if (web.Lists[listName]!=null)
{
list = web.Lists[listName];
return true;
}
return false;
}
catch (ArgumentException ex)
{
return false;
}
catch (Exception ex)
{
return false;

}
}

=========================
http://cmntest1-dmz:10000/_admin/ServiceApplications.aspx


ids
====
https://test-community.software-innovation.com/_layouts/sitemanager.aspx?Source=%2FPages%2FHome%2Easpx


listdeffination change title
===========================
http://social.msdn.microsoft.com/Forums/en-IE/sharepoint2010general/thread/3cf4fb35-4910-4506-a57e-c7667a5a8a6e

No comments:

Post a Comment