17 February 2011
Advantages of MOSS 2007
* Document management enhancements
* The new Workflow engine
* Office 2007 Integration
* New Web Parts
* New Site-type templates
* Enhancements to List technology
* Web Content Management
* Business Data Catalog
* Search enhancements
* Report Center
* Records Management
* Business Intelligence and Excel Server
* Forms Server and InfoPath
* The ?Features? feature
* Alternate authentication providers and Forms-based authentication
19 January 2011
Steps to search a single document library
Side Note: Test the search. If it does not work you might need to contact the Site Adminstrator to enable your scope and display group or index(crawl) your document library for the search to work.Step 1: Go to "Site Actions", "Site Settings" and under "Site Collection Administration" click on "Search Scopes".Step 2: Click on "New Scope" and give it a title. Usually the document library you wish to search. Click "OK"Step 3: Now we need to add a rule. Go to the document library you wish to search and grab the URL. Then repeat Step 1 to get back to the search scope settings page. Click on the search scope you created in Step 2. Under the "Rules" section click on "New Rule". Select "Web Address" and enter the URL of your document library. Click "OK".Step 4: Click on "New Display Group" and give it a title and a description. In the "Scopes" section select the scope you created in Step 2. The "Default Section" should automatically become the scope you selected.Step 5: Wait for the server to recognize the new scope and display group.Step 6: Go back to the page you wish to add a search box. Go to "Site Actions", "Edit Page", click on "Add a Web Part". Select the "Search Box" web part and click "Add".Step 7: The page should be in "Edit Mode". In the "Search Box" web part click on the "edit" button and go to "Modified Shared Web Part".Step 8: Expand the "Miscellaneous" section. Uncheck "Use site level defaults". In the "Scope Display Group" sub-section the default display group scope will be "Search Dropdown" change this to the display group you created in Step 4. You cannot browse through the display groups so you will have to type your display group in exactly. Click on "OK".Step 9: Exit out of "Edit Mode". Your search box should now have the new search scope you created in Step 2 as the default choice.
18 January 2011
OnClick Event in SharePoint
< SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
< PageParserPaths>
< PageParserPath VirtualPath="/amu2/*" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths >
</SafeMode>
17 January 2011
Remote sharepoint debugging
http://msdn.microsoft.com/en-us/library/bt727f1t(VS.80).aspx
05 January 2011
Avoid authentication in Sharepoint
To avoid authentication in some cases write code between these below code..
SPSecurity.RunWithElevatedPrivileges(delegate()
{
//Code.. or Functionality
}
);
04 January 2011
Enable Paging in repeater control
//declare PgNum as public integer
public int PgNum
{
get
{
if (ViewState["PgNum"] != null)
return Convert.ToInt32(ViewState["PgNum"]);
else
return 0;
}
set { ViewState["PgNum"] = value; }
}
// write below code where you are assigning the data source to the repeater
PagedDataSource pgds = new PagedDataSource();
pgds.DataSource = Rs//Assign data here which you want to assign to repeater, Here Rs is the list data source
pgds.AllowPaging = true;
pgds.PageSize = 4;
pgds.CurrentPageIndex = PgNum;
int PgCount = Rs.Count;
int vcnt = PgCount / pgds.PageSize;
if (PgNum < 1)
lnkPrev.Visible = false;
else if (PgNum > 0)
lnkPrev.Visible = true;
if (PgNum == vcnt)
lnkNxt.Visible = false;
else if (PgNum < vcnt)
lnkNxt.Visible = true;
rptPosts.DataSource = pgds;
rptPosts.DataBind();
Sorting in List<> Generics in Csharp
// Create Resource class with variables(Members)
public class Resources
{
public string Name { get; set; }
public string url { get; set; }
public int id { get; set; }
public string Image { get; set; }
public string post { get; set; }
public DateTime Createddate { get; set; }
public string ListName { get; set; }
public static int Comparedate(Resources r1, Resources r2)
{
// To display in descending order multiply with -1
return r1.Createddate.CompareTo(r2.Createddate) * -1;
}
}
List
Add values to the list as below.
Resources r2 = new Resources();
r2.post = PostItem["Title"].ToString();
r2.Name = "";
r2.url = "";
r2.Image = ImageUrl.ToString();
r2.id = PostItem.ID;
r2.Createddate = Convert.ToDateTime(PostItem["Created"]);
r2.ListName = "Posts";
Rs.Add(r2);
Resources r3 = new Resources();
if (postedLink["Notes"] != null)
r3.post = postedLink["Notes"].ToString();
r3.Name = postedLink["URL"].ToString().Substring(0, postedLink["URL"].ToString().IndexOf(','));
r3.url = postedLink["URL"].ToString().Substring(0, postedLink["URL"].ToString().IndexOf(','));
r3.Image = ImageUrl.ToString();
r3.id = postedLink.ID;
r3.Createddate = Convert.ToDateTime(postedLink["Created"]);
r3.ListName = "Links";
Rs.Add(r3);
Comparison
Rs.Sort(ComparedList);
Assign ‘Rs’list to the repeater or gridview.
Source: http://shafaqat309.wordpress.com/2009/05/04/sorting-generic-collections-list-in-cnet-net-2-0-net-3-5-c-classes-collections-generics-sorting/
Enable Paging in repeater control
Page indexing in repeater
//declare PgNum as public integer
public int PgNum
{
get
{
if (ViewState["PgNum"] != null)
return Convert.ToInt32(ViewState["PgNum"]);
else
return 0;
}
set { ViewState["PgNum"] = value; }
}
// write below code where you are assigning the data source to the repeater
PagedDataSource pgds = new PagedDataSource();
pgds.DataSource = Rs//Assign data here which you want to assign to repeater, Here Rs is the list data source
pgds.AllowPaging = true;
pgds.PageSize = 4;
pgds.CurrentPageIndex = PgNum;
int PgCount = Rs.Count;
int vcnt = PgCount / pgds.PageSize;
if (PgNum < 1)
lnkPrev.Visible = false;
else if (PgNum > 0)
lnkPrev.Visible = true;
if (PgNum == vcnt)
lnkNxt.Visible = false;
else if (PgNum < vcnt)
lnkNxt.Visible = true;
rptPosts.DataSource = pgds;
rptPosts.DataBind();
Sorting in List<> Generics in Csharp
Sorting in List<> Generics in Csharp
// Create Resource class with variables(Members)
public class Resources
{
public string Name { get; set; }
public string url { get; set; }
public int id { get; set; }
public string Image { get; set; }
public string post { get; set; }
public DateTime Createddate { get; set; }
public string ListName { get; set; }
public static int Comparedate(Resources r1, Resources r2)
{
// To display in descending order multiply with -1
return r1.Createddate.CompareTo(r2.Createddate) * -1;
}
}
List<Resources> Rs = new List<Resources>();
Add values to the list as below.
Resources r2 = new Resources();
r2.post = PostItem["Title"].ToString();
r2.Name = "";
r2.url = "";
r2.Image = ImageUrl.ToString();
r2.id = PostItem.ID;
r2.Createddate = Convert.ToDateTime(PostItem["Created"]);
r2.ListName = "Posts";
Rs.Add(r2);
Resources r3 = new Resources();
if (postedLink["Notes"] != null)
r3.post = postedLink["Notes"].ToString();
r3.Name = postedLink["URL"].ToString().Substring(0, postedLink["URL"].ToString().IndexOf(','));
r3.url = postedLink["URL"].ToString().Substring(0, postedLink["URL"].ToString().IndexOf(','));
r3.Image = ImageUrl.ToString();
r3.id = postedLink.ID;
r3.Createddate = Convert.ToDateTime(postedLink["Created"]);
r3.ListName = "Links";
Rs.Add(r3);
Comparison<Resources> ComparedList = new Comparison<Resources>(Resources.Comparedate);
Rs.Sort(ComparedList);
Assign ‘Rs’list to the repeater or gridview.
Source: http://shafaqat309.wordpress.com/2009/05/04/sorting-generic-collections-list-in-cnet-net-2-0-net-3-5-c-classes-collections-generics-sorting/
27 December 2010
Allow onclick event in Sharepoint
between the
Note:
/amu2/* is the web site URL
17 December 2010
Sharepoint 2007 Keys
Setup Key for Standard: WFF2P-M8XYH-3B33C-6KPP9-XVQTG
Setup Key for Enterprise: F6YVR-4XY7K-RCVY4-37FBK-G44PY
Outlook.pst file location
C:\Documents and Settings\vijay.bhaskar\Local Settings\Application Data\Microsoft
You will get all the files including Calendar, Tasks and every thing.
14 December 2010
To get Users list from the MOSS
//Write this code
SPSite mySite = new SPSite("http://amu-sp:31273/amu2");
SPWeb web = mySite.OpenWeb();
ServerContext context = Microsoft.Office.Server.ServerContext.GetContext(new SPSite("http://amu-sp:31273/amu2"));
UserProfileManager upm = new Microsoft.Office.Server.UserProfiles.UserProfileManager(context);
// UserProfile user=upm.GetUserProfile(
foreach (UserProfile user in upm)
{
// Console.WriteLine(user[PropertyConstants.UserName]+":");
if (user[PropertyConstants.WorkEmail] !=null)
{
Console.WriteLine(user[PropertyConstants.WorkEmail]);
}
}
27 February 2010
Message box in asp.net
02 November 2009
www.india.gov (All government office related links are available)
All government office related links are available... ..
|
Register:
Check/Track:
Book/File/Lodge:
Contribute to:
Others:
Search for Available Services
Select from the menu to know the available Services contributed by Central Government Ministries/Departme nts, State Government, UT.
Recently Added Online Services
Tamil Nadu: Online application of marriage certificate for persons having registered their marriages
Tamil Nadu: Online District wise soil Details of Tamil Nadu
Tamil Nadu: View Water shed Atlas of Tamil Nadu
Tamil Nadu: E-Pension District Treasury Tirunelveli
Meghalaya: Search Electoral Roll Online by Name (2008)
Meghalaya: Search Electoral Roll Online by EPIC number (2008)
Meghalaya: Search Electoral Roll Online by House number (2008)
Himachal Pradesh: Revised Pay and Arrears Calculator-Fifth Pay
Meghalaya: Search Electoral Roll Online by Part number (2008)
Andhra Pradesh: Online Motor Driving School Information
Global Navigation
Add to Favorites (Refer the Help section)
16 October 2009
Images upload into server using Asp.net
- Design page as shown below
- Create a folder with named “Images” in Solution Explorer
- Write code as below for upload buttonprotected void Button1_Click(object sender, EventArgs e){string savedir = @"~/Images/";if (FileUpload1.HasFile){string filename = Server.HtmlEncode(FileUpload1.FileName);string exetension = System.IO.Path.GetExtension(filename);if ((exetension == ".jpg") || (exetension == ".gif")){string savepath = savedir + filename;FileUpload1.SaveAs(Server.MapPath(savepath));Image1.ImageUrl = savepath.ToString();Label1.Text = "Image Uploaded and path is: <br/><b>"+savepath.ToString()+"</b>";}else{Label1.Text ="Upload Images jpg or gif";}}else{Label1.Text ="Please upload files, Upload control is empty";}}
- The ouput should be like as below
- To download please click below
Example
11 October 2009
Evolution of Microsoft windows: 1985 - 2009
| It all began in Plaza Hotel, New York City on the 10th of November 1983.. Two Microsoft founders Paul Allen and Bill Gates officially announced their corporation’s first and next-generation graphical user interface operating system â€" Microsoft Windows. Despite the criticism on stability and constantly being compared to their rivals Apple Macintosh, Microsoft Windows is still the most widely used operating systems in the world.
Windows 1.01 (1985)Officially released on November 20, 1985, this 16-bit OS that cost less than 1MB in overall is Microsoft’s very first operating system that allows multi tasking with graphical user interface on PC platform that runs on MS-DOS 5.0. Windows 1..03 (1986)Introduced in 1986, Windows 1.03 is an upgrade to its previous predecessor Windows 1.01. Entire operating system cost about 2.2Mb hard disk space. Windows 2.03 (1987)Taking advantage of the speed of Intel 286/386 processor at that time, Windows 2.03 is a replacement for Windows 1.x. It also starts the era where users are able to overlap windows, customize screens, etc. Still the entire operating system cost no more than 2.5Mb. Windows 2.86 (1989)Windows 3.0 (1990)This is the third major released of Microsoft Windows with a improved set of Windows icons and applications like File Manager, Program Manager that is still being used in today’s Windows. This 22 May 1990 released operating system is then replaced by Windows 3.1 two years later. Windows 3.1 (1992)Windows 3.1 is probably the earliest Windows most of us are familiar with. Windows 3.1 and later Windows 3.1x is an upgrade to Windows 3.0 with bug fixes and multimedia support. Windows NT 3.1 (1993)The first Windows New Technology (NT) introduced. It maintains consistency with the Windows 3..1, a well-established home and business operating system at the time, the new Windows NT operating system began with version 3.1. Unlike Windows 3.1, however, Windows NT 3.1 was a 32-bit operating system. Windows 3.11 (1993)A superset of Windows 3.1, Windows for Workgroups 3.11 added peer-to-peer workgroup and domain networking support. For the first time, Windowsâ€"based PCs were network-aware and became an integral part of the emerging client/server computing evolution â€" Microsoft Windows NT 3.51 Workstation (1995)The Windows NT Workstation 3.5 release provided the highest degree of protection yet for critical business applications and data. With support for the OpenGL graphics standard, this operating system helped power high-end applications for software development, engineering, financial analysis, scientific, and business-critical tasks â€" Microsoft Windows 95 (1995)Previously code-named Chicago, Windows 95 is a successor to all the existing Windows operating system so far. It gives full graphical user interface support, integrated a 32-bit TCP/IP (Transmission Control Protocol/Internet Protocol) stack for built-in Internet support, dial-up networking, and new Plug and Play capabilities that made it easy for users to install hardware and software. Windows NT 4.0 (1996)Windows NT Workstation 4.0 included the popular Windows 95 user interface yet provided improved networking support for easier and more secure access to the Internet and corporate intranets â€" Microsoft. Windows NT Server 4.0 (1996)Windows 98 (1998)Windows 98 was the upgrade from Windows 95. Described as an operating system that "Works Better, Plays Better," Windows 98 was the first version of Windows designed specifically for consumers â€" Microsoft. Windows 2000 (2000)More than just the upgrade to Windows NT Workstation 4.0, Windows 2000 Professional was also designed to replace Windows 95, Windows 98, and Windows NT Workstation 4.0 on all business desktops and laptops. Built on top of the proven Windows NT Workstation 4.0 code base, Windows 2000 added major improvements in reliability, ease of use, Internet compatibility, and support for mobile computing â€" Microsoft. Windows 2000 Server (2000)Windows ME (2000)Designed for home computer users, Windows Me offered consumers numerous music, video, and home networking enhancements and reliability improvements â€" Microsoft. Windows XP (2001)Windows XP Professional brings the solid foundation of Windows 2000 to the PC desktop, enhancing reliability, security, and performance. With a fresh visual design, Windows XP Professional includes features for business and advanced home computing, including remote desktop support, an encrypting file system, and system restore and advanced networking features â€" Microsoft. Windows Server 2003 (2003)Released on April 2003, and also known as Win2k3, this operating system is a sucessor to it’s predecessor Windows Server 2000 (Win2k). Windows Vista (2006)Came more than 5 years after it’s predecessor Windows XP, Vista is the longest timeline break for Microsoft between two operating system. Windows 7 (2009)Codenamed Blackcomb, Windows 7 is one of the most anticipated operating system which should be available somewhere in Oct 2009. |
06 October 2009
Crystal Report on WebPages
- Add this Dataset to crystal Report
- Write below following code
04 October 2009
Earn online by easy way
These are the sites paying by using our time.. They are paying in dollars.. It is very just spend few minutes online and surf below given sites.. They will pay $s.. Try it once just for fun at least.. Click on images
- Aw$urveys
- It is a community site like facebook.. You can earn point and rewards by scraping to friends.. It is a paid community site..
- It is India Rupee mail..They send us advertisements as email.. We have to open and read email..
- Spice up your mobile and earn by receiving adds as SMS to your mobile..



