Tuesday, December 2, 2008

Crystal Reports for Visual Studio 2005

How to create Web or Windows applications in Crystal Reports for Visual Studio 2005.

http://msdn.microsoft.com/en-us/library/ms225270(VS.80).aspx

Friday, October 3, 2008

Converting Decimal to Time Format

decimal sec=123456;
TimeSpan t = TimeSpan.FromSeconds(sec);
string strTime = String.Format("{0}:{1:00}:{2:00}", t.Hours, t.Minutes, t.Seconds).ToString();
Response.Write(strTime);

Tuesday, September 16, 2008

To Get Client Ip Address

string strIpAddress;
strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (strIpAddress == null)
{
strIpAddress = Request.ServerVariables["REMOTE_ADDR"];
}
Response.Write(strIpAddress);

Zipping files using GZipStream

http://www.geekpedia.com/tutorial190_Zipping-files-using-GZipStream.html

Compression and Decompression of Files using Visual Basic 2005

Compression_and_Decompression_of_Files_using_Visual_Basic_2005.4

The Zip, GZip, BZip2 and Tar Implementation For .NET

http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx

With Password Protected Zip File

http://www.eggheadcafe.com/tutorials/aspnet/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-f.aspx

http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/477302fe-22b2-47b3-a895-a90f24f2ea61
By Dolee - Posted on Monday, March 31, 2008 8:23:17 AM

The ASP.Net Media Suite

http://www.aspnetmedia.com/

URL Rewriting in ASP.NET

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

How to create OMA DRM v1.0 content

http://wiki.forum.nokia.com/index.php/How_to_create_OMA_DRM_v1.0_content

Protect Your Downloadable Files Using HTTP Handlers

http://www.devx.com/codemag/Article/34535/0/page/1
by Miguel A. Castro

For Secure ASP.NET Applications

http://msdn.microsoft.com/en-us/asp.net/aa336653.aspx

Thursday, May 1, 2008

Thursday, April 24, 2008

Dundas Online Documentation

http://support.dundas.com
http://support.dundas.com/OnlineDocumentation/WebChart2003/webframe.html

Wednesday, April 9, 2008

Installation Guide For Sharepoint With and Without Active Directory.

Install
1. Windows 2003 NT
2. Application Server
3. Active Directory (Start>Run>DCPromo) (optional)
4. Framework 2.0
5. Framework 3.0
6. WF Extension
7. Reg Asp.net (aspnet_regiss -i)
8.Sharepoint wss 3.0
9. Moss 2007 (optional)
Finally
Turn off IE Enhanced Security(Start>Control Panel>Add/Remove Programs>Add/Remove Windows Components>Un check IE Enhanced Security > Next

To Set Permission Level Depending upon Roles

SPRoleDefinitionCollection collRoleDefinitions = web.RoleDefinitions;
SPRoleAssignmentCollection collRoleAssignments = web.RoleAssignments;
SPRoleAssignment oRoleAssignment = new SPRoleAssignment(strLogin,"","","");
SPRoleDefinitionBindingCollection collRoleDefinitionBindings = oRoleAssignment.RoleDefinitionBindings;
collRoleDefinitionBindings.Add(collRoleDefinitions["Read"]);
web.AllowUnsafeUpdates=true;

To avoid Object message while openning a New window

javascript:void window.open('https://www.google.com')

Monday, March 31, 2008

train

Train Timetable


http://erail.in/

Sunday, March 30, 2008

To get Login User Information

ArrayList groups = new ArrayList();
foreach (System.Security.Principal.IdentityReference group in
System.Web.HttpContext.Current.Request.LogonUserIdentity.Groups)
{
groups.Add(group.Translate(typeof(System.Security.Principal.NTAccount)).ToString());
}

To Get SpGroup

foreach(SPGroup group in SPContext.Current.Web.CurrentUser.Groups)
{
string groupName = group.Name;
Response.Write(groupName);
}

Wednesday, March 19, 2008

How to Generate Public Key Token in VS 2005

  1. In Visual Studio 2005, click Tools -> External Tools...
  2. Click Add and enter the following into the different fields as displayed in the following screenshot:
    • Title: Get Public Key
    • Command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe
    • Arguments: -Tp "$(TargetPath)"
    • Uncheck all options, except Use Output window\
http://www.andrewconnell.com/blog/archive/2006/09/15/4587.aspx

Difference Between WSS and MOSS 2007

It is important that you know the difference between Windows SharePoint Services (WSS) and Microsoft Office SharePoint Server 2007 (MOSS). While WSS and MOSS are both pieces of software built by the Microsoft Office team, WSS is included as a part of the Windows Server 2003 operating system while MOSS is a separate product with its own SKU. You should think of WSS as the underlying platform and think of MOSS as a value-added set of components and services that has been built on top of this platform.

WSS does not have its own licensing model. Instead, the use of WSS is controlled through Windows Server 2003 licenses. This makes it very cost effective for companies to roll out applications that have been designed and built on top of the WSS platform. MOSS, on the other hand, has its own licensing model that includes server-side licenses and client access licenses (CALs). The MOSS licensing model is further broken out into a Standard Edition and an Enterprise Edition.

Refer:
Inside Microsoft Windows SharePoint Services 3.0
byTed PattisonandDaniel Larson

Wednesday, March 12, 2008

Understanding ASP.NET View State

Understanding ASP.NET View State

http://msdn2.microsoft.com/en-us/library/ms972976.aspx#viewstate_topic4

Tuesday, March 11, 2008

sample programs in wf

http://msdn2.microsoft.com/en-us/library/ms741723(VS.85).aspx

sharepoint and workflow

http://www.developer.com/net/net/article.php/3652346

web part overview

Web part Overview
http://msdn2.microsoft.com/en-us/library/ms432401.aspx


WebPart Class
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpart.aspx

To Find Date Difference

string[] strdate=Convert.ToString((DateTime.Parse(txtDate2.Text)-DateTime.Parse(txtDate1.Text))).Split(new char[] {'.'});
txtDiff.Text = strdate[0].ToString();

To install ASP.NET

>>cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
>>aspnet_regiis.exe -i

For Office outlook 2003 Add-in and Programmings Useful Links

http://www.aspnetemail.com/examples.aspx
http://email.about.com/od/windowsreturnreceipts/tp/certified_email.htm
http://www.activexperts.com/activemail/howto/aspnetb/
http://www.outlookcode.com/article.aspx
http://download.microsoft.com/download/1/6/c/16c03bcf-84a6-43d1-b185-bb34beea1b99/Code.msi
http://support.microsoft.com/?kbid=310244

extending outlook
http://msdn2.microsoft.com/en-us/library/aa479348.aspx
http://www.add-in-express.com/add-in-net/outlook.php
http://msdn2.microsoft.com/en-us/express/aa975050.aspx

Outlook Objects
http://msdn2.microsoft.com/en-us/library/ms268893(VS.80).aspx
http://msdn2.microsoft.com/hi-in/library/aa537182(en-us,office.11).aspx

Handy Tasks
http://msdn2.microsoft.com/hi-in/library/aa168022(en-us,office.11).aspx
http://msdn2.microsoft.com/hi-in/library/aa218785(en-us,office.11).aspx
http://www.microeye.com/resources/res_tech_vsnet.htm
http://msdn2.microsoft.com/hi-in/library/aa289167(en-us).aspx
http://www.helenfeddema.com/CodeSamples.htm
http://support.microsoft.com/ph/2520/en-us/?sid=19&aid=1&GSA_AC_More1

Monday, February 18, 2008

Deploy the SharePoint Solution

Step 1: Go to Command Mode
Path: Program Files\Common Files\Microsoft Shared\web server extensions\12\bin

Step 2 : run stsadm -o addsolution -filename [file path]\[template name]Step 3 :[template name]Step 4 :Step 1: run stsadm -o deletesolution -name [template_name].wsp