http://www.softinterface.com/Convert-Doc%5CConvert-Doc.htm
Monday, 19 August 2013
Monday, 12 August 2013
Applying Document Retention in SharePoint 2010
http://blogs.msdn.com/b/mvpawardprogram/archive/2011/10/03/applying-document-retention-in-sharepoint-2010.aspx
E-mailing a Document from a SharePoint Document Library
http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=147
In outlook making Subject Mandatory
We often forget to write Subject in the outlook mail. These situations lead to embarrassment sometimes. Here’s a help:
1. In MS outlook Press Alt+F11. This opens the Visual Basic Editor and then Press Ctrl+R which in turn open Project-Project 1 (left side)
2. On the Left Pane, one can see "Microsoft Outlook Objects" or "Project1", expand this. Now one can see the "ThisOutLookSession".
3. Double click on "ThisOutLookSession". It will open up a Code Pane on the right hand side.
4. Copy and Paste the following code in the right pane (Code Pane) and save it
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim strSubject As String strSubject = Item.Subject If Len(Trim(strSubject)) = 0 Then Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?" If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then Cancel = True End If End If End Sub 5. Close Visiul aBasic Now whenever you try to send a mail without subject, a pop-up will be raised to remind you of the blank subject
1. In MS outlook Press Alt+F11. This opens the Visual Basic Editor and then Press Ctrl+R which in turn open Project-Project 1 (left side)
2. On the Left Pane, one can see "Microsoft Outlook Objects" or "Project1", expand this. Now one can see the "ThisOutLookSession".
3. Double click on "ThisOutLookSession". It will open up a Code Pane on the right hand side.
4. Copy and Paste the following code in the right pane (Code Pane) and save it
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim strSubject As String strSubject = Item.Subject If Len(Trim(strSubject)) = 0 Then Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?" If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then Cancel = True End If End If End Sub 5. Close Visiul aBasic Now whenever you try to send a mail without subject, a pop-up will be raised to remind you of the blank subject
Lock Any folder Without Any Software with Password
lock folders without any software, with passwords
1) first of all copy the following code in notepad from cls line.
*********************************************************************************************************************
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
*******************************************************************************************************************
2) Now you can see "type your password here" in the code (23rd line) . Delete that and type in your password there.
3) save this file with any name and extension ( .bat)
4) Now double click the batch file. It will create a folder named "Locker"
5) Put all the files u want to lock in that folder
6) Now double click on the batch file to lock the folder.
7) Now if you want to unlock the folder double click that batch file again and you will be prompted for password.
Note:- Such Folder can be open........to know........post comment with your E-mail Id
pc lock using mouse
1. Right click an empty spot on the desktop, point to New and click Shortcut.
2. In the Create Shortcut dialog box, copy the following into the 'Type the location' of the item text box:
rundll32 user32.dll,LockWorkStation
3. Click Next.
4. In "Type a name for this shortcut", type LOCK and Click Finish
5. Now just double click on the icon, your desktop will be locked.
2. In the Create Shortcut dialog box, copy the following into the 'Type the location' of the item text box:
rundll32 user32.dll,LockWorkStation
3. Click Next.
4. In "Type a name for this shortcut", type LOCK and Click Finish
5. Now just double click on the icon, your desktop will be locked.
Friday, 9 August 2013
Sharepoint-Farm Account
The Farm Account is the one you typed in when you ran the PSconfig utility when you installed SharePoint. It is the account used to run the Central Admin web site app pool and has dbo access to the configuration database. Because it has higher permissions than other service accounts in the farm it should only be used where SharePoint requires it. For example you can't run User Profile Synchronization without it. You can see more about it here:
http://technet.microsoft.com/en-us/library/cc263445.aspx
http://technet.microsoft.com/en-us/library/cc263445.aspx
Thursday, 8 August 2013
Sharepoint-Reading Constants from List as Key & Value pair
How to call:-
if (constantHashTable == null)
{
constantHashTable = CommonMethods.GetKeyElementValues(); }
Function:-
public static Hashtable GetKeyElementValues()
{
Hashtable hashTable = new Hashtable();
try
{
SPList constantList;
constantList = SPContext.Current.Web.Lists.TryGetList("AC_BVConstants");
if (constantList != null) {
SPListItemCollection listIemCollection = constantList.GetItems();
if (listIemCollection != null)
{
if (listIemCollection.Count > 0) {
foreach (SPListItem spLstItem in listIemCollection)
{
hashTable.Add(spLstItem["Key"], spLstItem["Value"]);
}
} }
} }
catch (Exception ex)
{
throw ex;
}
return hashTable;
}
How to use
Convert.ToString(constantHashTable["Msg_NoData"], CultureInfo.InvariantCulture);
if (constantHashTable == null)
{
constantHashTable = CommonMethods.GetKeyElementValues(); }
Function:-
public static Hashtable GetKeyElementValues()
{
Hashtable hashTable = new Hashtable();
try
{
SPList constantList;
constantList = SPContext.Current.Web.Lists.TryGetList("AC_BVConstants");
if (constantList != null) {
SPListItemCollection listIemCollection = constantList.GetItems();
if (listIemCollection != null)
{
if (listIemCollection.Count > 0) {
foreach (SPListItem spLstItem in listIemCollection)
{
hashTable.Add(spLstItem["Key"], spLstItem["Value"]);
}
} }
} }
catch (Exception ex)
{
throw ex;
}
return hashTable;
}
How to use
Convert.ToString(constantHashTable["Msg_NoData"], CultureInfo.InvariantCulture);
Limitations and thresholds for the sharepoint
http://support.microsoft.com/kb/2489707
http://technet.microsoft.com/en-us/library/cc262787.aspx
http://technet.microsoft.com/en-us/library/cc262787.aspx
Sharepoint Powershell cmdlets
http://technet.microsoft.com/en-us/library/ee890105(v=office.14).aspx
http://technet.microsoft.com/en-us/sharepoint/ff628785.aspx
SharePoint 2013 training material and new features by Microsoft
http://www.microsoft.com/en-in/download/details.aspx?id=30361#overview
Sharepoint 2013 information Links
http://msdn.microsoft.com/en-us/library/fp161348.aspx- Main Landing for general development
http://msdn.microsoft.com/en-us/library/jj901636.aspx - How to Link for SharePoint 2013
http://msdn.microsoft.com/en-us/library/jj163085.aspx - development in SharePoint 2013
http://msdn.microsoft.com/en-us/library/ee330921(v=vs.110).aspx – Development Visual Studio 2012 How to Links
http://msdn.microsoft.com/en-us/library/jj163091(v=office.12).aspx – What’s new in SharePoint 2013.
http://msdn.microsoft.com/en-us/library/jj901636.aspx - How to Link for SharePoint 2013
http://msdn.microsoft.com/en-us/library/jj163085.aspx - development in SharePoint 2013
http://msdn.microsoft.com/en-us/library/ee330921(v=vs.110).aspx – Development Visual Studio 2012 How to Links
http://msdn.microsoft.com/en-us/library/jj163091(v=office.12).aspx – What’s new in SharePoint 2013.
information on retention policy
http://blogs.msdn.com/b/mvpawardprogram/archive/2011/10/03/applying-document-retention-in-sharepoint-2010.aspx
Clipboard Hack Problem - Shocking news about CTRL+C
Ctrl+C may be the most important work we do everyday. But it's not a very safe thing to do. Read on to know why. What happens when you press Ctrl+C while you are online. We do copy various data by Ctrl + C for pasting elsewhere. This copied data is stored in clipboard and is accessible from the net by a combination of Javascripts and ASP. This is called clipboard hack problem.
Just try this:
1. Copy any text by Ctrl + C
2. Click the Link: http://www.sourcecodesworld.com/special/clipboard.asp
3. You will see the text you copied was accessed by this web page.
Surprised! I know you are because i was also surprised to see it. Do not keep sensitive data (like passwords, credit card numbers, PIN etc.) in the clipboard while surfing the web. It is extremely easy to extract the text stored in the clipboard to steal your sensitive information. Forward this information to as many friends as you can, to save them from online frauds!
It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.
How Cipboard Hack is done?
The Clipboard hack is done by the following Source Code:
How to safeguard yourself from Clipboard Hack Problem?
To avoid clipboard hack problem, do the following:
1. Go to internet options->security.
2. Press custom level.
3. In the security settings, select disable under Allow paste operations via script. (Scripting sub heading)
Now the contents of your clipboard are safe.
Interestingly, this hack works only on internet explorer, and not on Mozilla Firefox browser.
Just try this:
1. Copy any text by Ctrl + C
2. Click the Link: http://www.sourcecodesworld.com/special/clipboard.asp
3. You will see the text you copied was accessed by this web page.
Surprised! I know you are because i was also surprised to see it. Do not keep sensitive data (like passwords, credit card numbers, PIN etc.) in the clipboard while surfing the web. It is extremely easy to extract the text stored in the clipboard to steal your sensitive information. Forward this information to as many friends as you can, to save them from online frauds!
It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.
How Cipboard Hack is done?
The Clipboard hack is done by the following Source Code:
How to safeguard yourself from Clipboard Hack Problem?
To avoid clipboard hack problem, do the following:
1. Go to internet options->security.
2. Press custom level.
3. In the security settings, select disable under Allow paste operations via script. (Scripting sub heading)
Now the contents of your clipboard are safe.
Interestingly, this hack works only on internet explorer, and not on Mozilla Firefox browser.
If you are encountering problems with Copy and Paste on Remote Desktop Connection, here is the solution for it.
The problem is coming from a little process called rdpclip.
Rdpclip (remote desktop clipboard) is responsible for managing a shared clipboard between your local host and the remote desktop (the process runs on the remote machine not your local host).
So what do we need to do when clipboard stops working?
follow few simple steps.
1. Load up task manager (right click taskbar and select Task Manager)
2. Go to the Processes Tab
3. Select rdpclip.exe
Rdpclip (remote desktop clipboard) is responsible for managing a shared clipboard between your local host and the remote desktop (the process runs on the remote machine not your local host).
So what do we need to do when clipboard stops working?
follow few simple steps.
1. Load up task manager (right click taskbar and select Task Manager)
2. Go to the Processes Tab
3. Select rdpclip.exe
.Net-Maintaing State of Checkbox in Gridview with Paging
http://dotnetspeaks.net/post/Maintaining-State-of-CheckBoxes-in-a-GridView-with-Paging.aspx
.Net-Stop Watch Code for performance testing
//First Create the instance of Stopwatch Class
Stopwatch sw = new Stopwatch();
sw.Start();
//Stop the Timer
sw.Stop();
//Writing Execution Time in label
string ExecutionTimeTaken = string.Format("Minutes :{0}\nSeconds :{1}\n Mili seconds :{2}", sw.Elapsed.Minutes, sw.Elapsed.Seconds, sw.Elapsed.TotalMilliseconds);
Label1.Text=string.Format("Minutes :{0}\nSeconds :{1}\n Mili seconds :{2}", sw.Elapsed.Minutes, sw.Elapsed.Seconds, sw.Elapsed.TotalMilliseconds);
Sharepoint--Error while creating workflow related to State Service Application
Microsoft SharePoint Server State Service encountered an error executing a stored procedure for database key cd8f485620694a949d702a26d446eb8b_d5072e39b94045cfa2d1e0c9ad2e5e92. Details: Cannot open database "StateService_380322ea4fef4dc0892ab0b70c2bd813" requested by the login. The login failed. Login failed for user 'DomainName\UserName'.
Create a state service application using the following powershell commands
1. $serviceApp = New-SPStateServiceApplication -Name “State Service Application”
2. New-SPStateServiceDatabase -Name “SharePoint_Service_State” -ServiceApplication $serviceApp
3. New-SPStateServiceApplicationProxy -Name “State Service Application Proxy” -ServiceApplication $serviceApp -DefaultProxyGroup
once its done,go to centraladmin and configure this service to your webapplications andset it as default under Service Connections of your Web application. Before you set,make sure the newly created State Service Application is Activated.
1. $serviceApp = New-SPStateServiceApplication -Name “State Service Application”
2. New-SPStateServiceDatabase -Name “SharePoint_Service_State” -ServiceApplication $serviceApp
3. New-SPStateServiceApplicationProxy -Name “State Service Application Proxy” -ServiceApplication $serviceApp -DefaultProxyGroup
once its done,go to centraladmin and configure this service to your webapplications andset it as default under Service Connections of your Web application. Before you set,make sure the newly created State Service Application is Activated.
Subscribe to:
Posts (Atom)