By Udayakumar Ethirajulu , on April 17th, 2008
To deploy the solution package like *.wsp or *.cab in SharePoint FARM.
first we need to add the solution package file to the solution store, then it can be deployed at web application level or in FARM level(Global Deployment).
Use the following stsadm command to add the solution to the deployment store.
stsadm -0 addsolution -filename solutionpackage.wsp
Now the [...]
By Udayakumar Ethirajulu , on April 14th, 2008
Hi Devs,
The following is the piece of code to send Email from webpart.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.ObjectModel;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint;
using System.Data;
using System.Collections;
namespace SendMail
{
public class SendMail : Microsoft.SharePoint.WebPartPages.WebPart
{
private TextBox txtTo;
private Button btnSendMail;
protected override void CreateChildControls()
{
txtTo = new TextBox();
this.Controls.Add(txtTo);
btnSendMail = new Button();
btnSendMail.Text = “Send Email”;
btnSendMail.Click += new EventHandler(SendMail_Click);
this.Controls.Add(btnSendMail);
}
void SendMail_Click(object sender, EventArgs e)
{
SPSite _site = [...]
Popular Articles