Difference between Target Audience and Attendees in SharePoint

Difference between Target Audience and Attendees in SharePoint
Target audience

  Target audience is a group of people.

             In Target audience we can display content such as list or library items and entire web parts to a group of people. If you want to present information to particular group of people.

Attendees

  Attendees are individual users.

Example:
  • "Target Audience" means to whom a particular event is scheduled.
  • "Attendees" means people who need to attend the event.
  •  "Target Audience" may be 100 but it is not that all 100 need to attend the meeting out of hundred there may be 75 who has to attend the meeting.

How to create Calculated Fields in SharePoint List

Calculated Field

                   Using calculated columns we can automatically generating data, adding days to a date column to calculate an expired or due date column, Number or Currency columns to get a total…


        In list, I want to create field “SP2013”, in 2013 I want to show year (yyyy). Now we are going to create calculated field for SP2013.  Navigate to list settings in any custom list, click on create column. Type your Column Name “Year” and select “Calculated” column and type  formula  “"SP"& (TEXT([Created],”yyyy”))” as shown in fig below.



Some Date and Time Formulas


"SP"& (TEXT([Created],”mmmm dd, yyyy”))                                                      October 17,2012


"SP"& (TEXT([Created],”yy”))                                                                                     SP13


"SP"& (TEXT([DateTimeField],”hh:mm:ss”))                                                           SP12:00:05


"SP"& (TEXT([Created],”dddd”))                                                                               SPWednesday


"SP"& (TEXT([Created],”mmmm”))                                                                              SPOctober

In my Article we can check to create Calculated Fields in SharePoint List Schema.

insert data using stored procedure in c#

insert data using stored procedure in c#
In this article i wll explain how to  insert data using stored procedure in c#.

 I am creating a table in sqlsever.
USE [dotnetdb]
GO

/****** Object:  Table [dbo].[Employee]    Script Date: 12/25/2013 14:25:42 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Employee](
      [EmpId] [nvarchar](50) NOT NULL,
      [EmpName] [nvarchar](50) NOT NULL,
      [EmpAddress] [nvarchar](50) NOT NULL,
      [EmpDesignation] [nvarchar](50) NULL
) ON [PRIMARY]

GO

For this table  I am creating a Stored procedure as shown.

USE [dotnetdb]
GO

/****** Object:  StoredProcedure [dbo].[SP_InsertEmpinfo]    Script Date: 12/25/2013 14:27:00 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

Create procedure [dbo].[SP_InsertEmpinfo]
(
@EmpId nvarchar(50),
@EmpName nvarchar(50),
@EmpAddress nvarchar(50),
@EmpDesignation nvarchar(50)
)

As Begin

Insert into Employee (EmpId,EmpName,EmpAddress,EmpDesignation) values (@EmpId,@EmpName,@EmpAddress,@EmpDesignation)
end

GO


Now I am designing UI.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="AspExample.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div>
    <label>EmpId</label>
    <asp:TextBox ID ="txtempid" runat ="server"></asp:TextBox>
    </div>
    <div>
    <label>EmpName</label>
    <asp:TextBox ID ="txtempname" runat ="server"></asp:TextBox>
   
    </div>
    <div>
    <label>EmpAddress</label>
    <asp:TextBox ID ="txtempaddress" runat ="server"></asp:TextBox>
   
    </div>
    <div>
    <label>EmpDesignation</label>
    <asp:DropDownList ID ="ddlempdes" runat = "server">
    <asp:ListItem>Select</asp:ListItem>
    <asp:ListItem>SE</asp:ListItem>
    <asp:ListItem>TL</asp:ListItem>
    <asp:ListItem>PL</asp:ListItem>
    </asp:DropDownList>
   
    </div>
    <div>
    <asp:Button ID ="btnsubmit" Text ="Submit" runat ="server"
            onclick="btnsubmit_Click" />
    </div>
    </div>
    </form>
</body>
</html>

In code behind I am implementing the logic as shown below.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

namespace AspExample
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        SqlConnection con = new SqlConnection("Data Source=Chinnu;Database=dotnetdb;User Id=sa;Password=password123;");
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnsubmit_Click(object sender, EventArgs e)
        {
            SqlCommand cmd = new SqlCommand("SP_InsertEmpinfo", con);
         cmd.CommandType = CommandType.StoredProcedure;

         cmd.Parameters.Add("@EmpId", SqlDbType.NVarChar).Value = txtempid.Text;
         cmd.Parameters.Add("@EmpName", SqlDbType.NVarChar).Value = txtempname.Text;
         cmd.Parameters.Add("@EmpAddress", SqlDbType.NVarChar).Value = txtempaddress.Text;
         cmd.Parameters.Add("@EmpDesignation", SqlDbType.NVarChar).Value = ddlempdes.SelectedValue;
         con.Open();

         cmd.ExecuteNonQuery();

         con.Close();  

        }
    }
}

In web.config give the database connection.

<connectionStrings>
    <add name="Connstring" connectionString="Data Source=DotNetSharePoint;Database=Chinnu;User Id=sa;Password=Password123;" providerName="System.Data.SqlClient" />
  </connectionStrings>






PowerShell Scripts in SharePoint

PowerShell Scripts in SharePoint

What is PowerShell?

It is a Extendable and scripting language can be used to manage and administer server environments in SharePoint. Using Poweshell we can do tasks easier.

Some PowerShell Scripts in SharePoint.


How to remove SPWebApplication using powershell script in SharePoint 2013


How to get a list of site collection with template for a web application



How to get a list of site collections without template names for a web application



How to get a list of site collections without template names for a web application 



Approve masterpage using PowerShell in SharePoint



How to Export particular Group in Term Store Management in SharePoint 2013 



How to import group to Term Store Management using PowerShell Script in SharePoint 2103



How to create Lookup Field List using Powershell Script in SharePoint 2013 



How to create List using Powershell Script in SharePoint 2013 



How to Remove particular zone



How to Remove Application Pool in SharePoint using power shell



How to deploy wsp in sharepoint 2013 using powershell



Delete App pool in Sharepoint Using PowerShell


How to send email using PowerShell in SharePoint



How to send email with attachment in powershell



How to connect sqlserver using powershell


Activating and Deactivating Features in a SharePoint Site Collection Using Power Shell


How to Create a Site Collection using Power Shell


How to delete list items using Power Shell


How to configure SharePoint Outgoing Email Settings using powershell


How to download WSP file Central Admin using PowerShell


How to download all WSP files from Central Admin using PowerShell


Copy Files between SharePoint Document Libraries Using Power Shell


How to create managed path in SharePoint using PowerShell   





What is the difference between Office 365 and Windows Azure?

What is the difference between Office 365 and Windows Azure?

     Before that we have know about few points.

What is Cloud?
Whatever we develop the application through the internet is called cloud.

What is Cloud Computing?
The term Cloud Computing and working in cloud refer to performing computer tasks using services delivered entirely over the Internet.
Services provided over the cloud computing
SAAS: Software Application As a service.
IAAS: Infrastructure As a service.
PAAS: Platform As a service.

Difference between office 365 and windows azure.

Office 365: Is a SAAS Software Application As a service. Which provides online versions of office suites includes Outlook, PowerPoint, word, Excel, Lync and OneNote

SAAS: Software Application As a service.
Software as a service is a way of delivering application over the internet as a service.Insted of installing and maintaining software you can simply access it via the internet. It manages access to the application including security, availability and performance, sometimes we can also call web based software.


Windows azure: IAAS and PAAS
IAAS: Infrastructure as a Service is the virtual delivery of computing resources in the form of hardware, networking and storage services. It is also refereed some times as Hardware as a service

PAAS: Plat form as a service A software distributed model in which hosted application are made available to customers over the internet. In PAAS services having Application services, Operations services, Platform services.

How to get a list of site collection for a web application using PowerShell Script

How to get a list of site collection for a web application using PowerShell Script
How to get a list of site collection with template for a web application

       The following PowerShell  script can be used to get a list of site collections with template for a web application.

Get-SPSite -WebApplication http://c4968397007/-Limit All |
Select -ExpandProperty AllWebs |
ft url, Title,WebTemplate, Created -auto |
out-string -width 1024 > c:\sites\sitetemplate.txt

How to get a list of site collections without template names for a web application

     This script will get only list of site collections without template names for a web application.

function GenerateAllSitecollections ($url)
{
    try
      {
         $Site=Get-SPSite $url        
         $spWebApp = $Site.WebApplication
         $TotalList = @()
          write-host "Below is the list of all site collections for a web application" + $spWebApp + "….." -foregroundcolor red
         foreach($allsites in $spWebApp.Sites)
         {
           $list =  $allsites.url
                   $listtemplatename = $allsites.WebTemplate
           write-host $list –foregroundcolor  blue   
                   write-host $listtemplatename -foregroundcolor blue  
         }                      
      }
   catch
      {
          write-host "Unable to Extract Site collection List in web application" -foregroundcolor red
          break
      }
} 

GenerateAllSitecollections  -Url " http://c4968397007/" > c:\sites\sitecollections.txt

Approve masterpage using PowerShell in SharePoint

Approve masterpage using PowerShell  in SharePoint
           I have a problem with my custom masterpage approve, i have edited my masterpage, save the page and check-in the masterpage but i con't able to approvel the masterpage. To solve this issue i use one PowerShell Script.

 The following PowerShell Script will help you to approve the masterpage in SharePoint.

$SPWeb = Get-SPWeb "http://localhost/site/mysite"
$file = $SPWeb.GetFile("_catalogs/masterpage/v4_my.master")
$file.CheckIn("")
$file.Publish()

insert data into SharePoint list using c#.

insert data into SharePoint list using c#.
In this Article I will explain how to insert data into SharePoint list using C#.
I am designing a UI with all the fields in Button Click I am writing this logic.

ClientInformation is my list name,Is already created in SharePoint Site.
Once we deploy we can able to insert this data in to list.

protected void btnsubmit_Click1(object sender, EventArgs e)
{
SPSite site = SPContext.Current.Site;
SPWeb web = site.OpenWeb();
SPList list = web.Lists["ClientInformation"];
SPListItem listitem = list.Items.Add();
listitem["ClientName"] = txtclientname.Text;
listitem["ClientLocation"] = txtclientlocation.Text;
listitem["Address"] = txtclientaddress.Text;
listitem["ContactPerson"] = txtcontactperson.Text;
listitem["Email"] = txtEmailId.Text;
listitem.Update();


}

SharePoint 2013 list Error "The server was unable to save the form at this time. please try again."


  While working with simple custom list,we tried to  add the data in to the list,suddenly we  got an error saying that "The server was unable to save the form at this time. please try again." as shown in fig below.



To solve this issue we have to restart "SharePoint Search Host Controller",  its working now. I was able to add items in list.


 For reference check the following links.                                                                  
                                                            
http://sharepointerthilosh.blogspot.in/2013/03/the-server-was-unable-to-save-form-at.html
http://onceinawhilescribble.blogspot.in/2013/09/when-creating-folder-in-library-server.html
     




     

how to create custom master page in sharepoint 2010 using visual studio

how to create custom master page in sharepoint 2010 using visual studio

In this Article I will explain how to create and deploy master page using visual studio 2010.
I am created an Empty solution with name MasterPageTest as shown Below.
 Now right click on the solution add new item Module as shown below

 Now we can able to see the txt file
              Now I am rename sample.txt as SampleMaster.Master.
              After completing these steps.
              Go to site setting->MasterPage->

             Select the V4 master page Download a copy in to your system.
            Copy that code and paste in to SampleMaster.Master.
             In Element.xml we have to modify the code like this

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="TestExample" Url="_catalogs/masterpage">
<File Path="TestExample\SampleMaster.Master" Type="GhostableInLibrary" Url="TestExample/SampleMaster.Master" IgnoreIfAlreadyExists="TRUE" />
</Module>
</Elements>
          I am adding the H1 tag DotNet SharePoint Site in my Master Page.

           Deploy the Solution,After Deploying Successfully.

            Go to site setting → Galleries->
                                         
                     We can able to see the Module name with Pending Status  

                  Click on that Module name select Approved option Click ok  

      We have active two features,One is in Site Setting->Site Collection administration ->Site         Collection features.
                             

     In Site Actions->Manage Site Features.

                                                                        

  
         After Activating go to Look and Feel ->MasterPage
        Select our master we deployed from VS2010  
                             
        After Selecting master page at site master page and system master page Click ok .

       Finally we can able to see my master page .











How to get image names inside a folder and move names to text file in c#

How to get  image names inside a folder and move names to text file in c#
       In this article i am going to explain how to get image names inside a folder and move names to text file in c#.
             I am having 2000 images(.jpg) in image folder and want to get all the image names, that stores in one text file. The following code will help you to get all image names which stores in one text file.


string[] array1 = Directory.GetFiles(@"C:\Images\", "*.jpg");
            Console.WriteLine(array1.Count().ToString());
            int count = 1;
            using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Imgs.txt"))
            {
                foreach (string name in array1)
                {
                    string[] spltname = name.Split('\\');

                    Console.WriteLine(spltname[spltname.Length-1]);
                    file.WriteLine(count.ToString()+","+spltname[spltname.Length - 1]);
                    count++;
                }
            }
           
          

Labels

.Net Interview Questions add custom button in sharepoint using javascript Add custom column property into a PageLayout in SharePoint Add Page Title on their browser's title bar in SharePoint Customly add zip files in blogger Add-SPOSiteCollectionAppCatalog : Must have Manage Web Site permissions or be a tenant admin in order to add or remove sites from the site collection app catalog allow list Advance SmartObject An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. Angular 2 Angular JS Angularjs Angularjs 1 anonymous users accessing lists and libraries App Permissions for SharePoint 2013 asp.net membership unique email Asp.net TreeView Control asp.net. Attendees in SharePoint Auto refresh list using Content Editor WebPart in SharePoint 2013. Auto Refresh SharePoint list using JavaScript Block and unblock of attachment types in SharePoint Blogger C# Callouts in SharePoint 2013 Cascading Dropdown list in SharePoint change onenote to another location. change SuiteBarLeft in SharePoint 2013 check if userid exists in database c# click node text to expand/collapse in Treeview client object model Close webpart CQWP crate chart using BI site in PPS Create a modern team site collection in SharePoint online Create BI chart in PPS SharePoint 2013 create filter in dashboard designer. create kpi's in dashboard designer create kpi's in SharePoint 2013 dashboard designer Create List Create List In SharePoint Create List using Power Shell Script Create Lookup Field in List using Power Shell Script Create lookup field in List create SharePoint List custom view. create SharePoint List views in List Schema create site collection in site collection in SharePoint using powershell created Date Time calculated field in SharePoint Cross site Collection in SharePoint 2013 Crud Operation in Asp.net Using Stored Procedure Custom MasterPage Approval in SharePoint custom view for survey list Customly add SharePoint List view in Page. delete items in sharepoint using powershell Difference between Angular 1.x & Angular 2 difference between Office 365 and Windows Azure difference between Windows Azure and Office 365 in sharepoint? DifferenceBetween discussion board Display Data in Grid View display radio buttons and choice fields horizontally in SharePoint 2013 Document library DotNet Drag and drop documents in document library in SharePoint dynamically populating values from one list to another list using jquery in sharepoint edit and delete buttons in datagridview Edit Links email notification using Nintex enable anonymous access in SharePoint 2013 enable app catalog sharepoint online site collection powershell Enable appcatalog site collection level using PowerShell based on Input file Enable versions for list and library except the hidden lists using PowerShell Script Error occurred in deployment step 'Recycle IIS Application Pool': Cannot resolve model for the project package Errors&Solutions Export document library in sharepoint using powershell Export particular Group in Term Store Management in SharePoint 2013 Export to Excel first release Flow Flow features free disk space on servers using powershell Friendly URLs and Managed Navigation in SharePoint 2013 get a list of site collection with template in web application using PowerShell Script in SharePoint Get attachments in SharePoint custom list using c# get current list item id sharepoint programmatically Get current url using jquery Get data from SharePoint list using Rest api & Angular JS Get Random Get Random SharePoint items using PowerShell Get Random values from SharePoint list using PowerShell Get url of the last value using jquery Get-SPOSite : The managed path sites/yoursitename is not a managed path in this tenant. Getting Email From User Hide “Edit Links” in left navigation SharePoint 2013 hide button in sharepoint based on permissions Hide column in SharePoint List view hide fields using client side object model Hide list in Quick Launch in SharePoint using PowerShell How to add Custom Tiles to SharePoint site Page. How to add extension files in Search Navigation in SharePoint 2013 How to Add Multiple users Using SharePoint People Picker How to add SharePoint list view in Page using C# How to Approve MasterPage using PowerShell in SharePoint How to bind Multiple users Using SharePoint People Picker how to change indicators on kpi performance how to check if an email address already exists in the database in asp.net how to configure workflow manager platform for SharePoint 2013 how to create calculated value using powershell how to create certificate in SharePoint How to create flow. how to create gantt chart webpart in sharepoint how to create KPI indicators in Dashboard designer How to create moden communication site in SharePoint online How to create Multi selected filter in Dashboard How to create nintex workflow in sharepoint how to create rdlc reports in asp.net How to Display Data Grid View in ASP.net How to enable anonymous access in SharePoint How to find data in datagridview in c# How to get image names from the folder using C# how to get particular list content type id in SharePoint 2013 How to get QueryString value in SharePoint WebPart Programatically how to get the current item id for newly created item using REST API and JQuery how to hide list in sharepoint how to know who created list in sharepoint How to make a Site Collection Read-Only in SharePoint 2010 How to overlay Office 365 shared calendar on SharePoint Site how to pass jquery value to asp.net textbox control How to pass pagename as a browser's title bar in the page how to remove unused Application Pool in SharePoint how to remove zone using powershell script How to send mail to particular group of people using PowerShell how to update modified by and created by using powershell how to uplaod RAR files in blogger import csv data into sharepoint import data using powershell Import group to term store management using SharePoint 2013. InfoPath InfoPath Cascading Dropdown list Insert update delete in datagridview in C# winforms Integration from SharePoint to k2. K2 Smart Forms for SharePoint JavaScript Injection jquery JSON K2 blackpearl K2 Designer K2 Designer Workflow. K2 smartform cascading dropdown list k2 Workflow K2 workflow to send a mail with PDF left navigation Local Term Set in managed meta data Managed meta data navigation in SharePoint 2013 Managed metadata service in SharePoint 2013. Managed Navigation in SharePoint 2013. Managed Promoted Sites. meta data navigation Microsoft Flow New Features New-SPConfigurationDatabase The user does not exist or is not unique NintexWorkFlow Office 365 OneDrive OneNote overwrite existing document in sharepoint using javascript PDF Converter PDF Method in K2 Performance Point Service in SharePoint 2013 PerformancePoint Services Configurtion PerformancePoint Services Configurtion for SharePoint 2013 PerformancePoint Services in SharePoint Server 2013 Popularity trends in SharePoint 2013 Pages populate dropdown list dynamicallyusing jquery Power Power Automate Power Shell Power shell script to get SharePoint site size. PowerApps powershell read xml PowerShell Script PowerShell script to get list of users from SharePoint groups PowerShell Scripts in SharePoint 2013 Powershell to set the masterpage in SharePoint Promoted Links Promoted Sites psconfig.exe quick launch Rdlc reports Readonly Column in SharePoint Editview Realtime DotNet Interview Questions Recent Dotnet interview questions Recent SharePoint interview questions recover deleted OneNote page. OneNote content is missing Regional Settings in SharePoint 2013 Replace New Item text in SharePoint Rest API Schedule PowerShell Script Search in SharePoint 2013 Search navigation in SharePoint 2013 Secure store service SecureStore Services SecureStore Services configuration for SharePoint 2013 self-signed certificate on IIS Server Send email to members of SharePoint Group using PowerShell sharepint2010 sharepoin2010 SharePoint 2013 SharePoint 2010 SharePoint 2013 SharePoint 2013 Dashboard Designer SharePoint 2013 features SharePoint 2013 Interview Questions SharePoint 2013. SharePoint 2013.disable views from user to create SharePoint 2013.Power shell SharePoint 2013.SharePoint 2010 SharePoint 2016 SharePoint Administration SharePoint Alerts and Reminders SharePoint App Configuration SharePoint Apps SharePoint Bulk upload SharePoint Calculated field SharePoint Calendar View sharepoint interview questions SharePoint online interview questions SharePoint online training SharePoint Onprem vs Online SharePoint RealTime Online Training SharePoint2010 SharePoint2013 SharePoint2016 SharePointInterview SharePointOnline SharePointOnline;Restore deleted site;SharePoint 2013 show data in datagridview in C# Simple Insert update Delete Retrieve Clear in asp.net. Site Collection Operations in SharePoint 2013 Site Collection Read-Only in SharePoint 2013 site contents Sorting & Filtering SPO SPSite Site Collection Operation parameters in SharePoint 2013 Step by step to create rdlc report in .Net Store names in text files in C# Sub site Subsite Term store management. The server was unable to save the form at this time. please try again UI New look update created by using client side object model update field values in SharePoint using powershell update items in SharePoint list using client object model update modified by field using client side object model upload zip files in blog use IsNullOrEmpty in PowerShell VirtoSoftware VirtoSofware vitrosoftware WebParts what is Document Set in SharePoint 2010 What is Filter in SharePoint Dashboard what is Limited-access user permission lock down mode feature What is Modern Team site What is Target Audience in SharePoint Who Created Site Using PowerShell Workflow in SharePoint 2013 Workflow management platform in SharePoint 2013 Workflow manager for SharePoint 2013 XSL-Template.