.Net & SharePoint '07

Technical blog for .Net and all SharePoint 2007 related Information

About the author

Me(Prince) and my wife are B.E in I.T & C.S.E respectively.  I a certified MCPD: Web from 2007 Dec. I am Intrestes in Web Application, MOSS, EPM, etc.
Now working with Deira International School, as IT Application & Help Manager. I have started my career as "Software Developer" @  REACH Sewn Technologies and Consulting Pvt. Ltd, Bangalore India from Oct 2004 to Feb 2006, then as "Web & Intranet Developer" @ Fosroc International Ltd, Dubai from April 2006 to Sep 2009.
You can catch me on mail@jpy-tech.com or mail@princepy.com. Or on 00971 - 50 - 4284530 

Google Translate

Tag cloud

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

RecentComments

Comment RSS

Google Your Location


File submission/upload -exceeded the maximum length/Size

The form submission cannot be processed because it exceeded the maximum length allowed by the Web administrator. Please resubmit the form with less data.

Step 1: Go to Central Administration - Application Management - Web Application - General Settings and change the Maximum Upload size.
Step 2: If step 1 does not resolve, ensure that you changed the maxRequestLength in the correct web.config. Double-check in IIS for the right virtual directory and the configuration file.
Step 3: Note that the MaxRequestLength is in KB. Do your calculations accordingly.
Step 4: There could more than one web.config files and it could be overridden. Check the appropriate one.
Step 5: refer this KB article.


Categories: MOSS | WSS
Posted by Admin on Wednesday, March 03, 2010 9:52 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Installation Of SharePoint 2010

  1. SharePoint Joel's: 10 Tips Troubleshooting Installations for SharePoint 2010 and SharePoint Foundation
    Doc File:10 Tips Troubleshooting Installations for SharePoint 2010 and SharePoint Foundation.doc (37.50 kb)
    XPS File:10 Tips Troubleshooting Installations for SharePoint 2010 and SharePoint Foundation.xps (213.01 kb)

     

  2. CJG: SharePoint 2010 - Step by Step Install
    XPS File:SharePoint 2010 - Step by Step Install.xps (290.14 kb)

     

  3. Installation Notice for SharePoint 2010 Public Beta
    Doc File:Installation Notice for SharePoint 2010 Public Beta.doc (39.50 kb)
    XPS File:Installation Notice for SharePoint 2010 Public Beta.xps (276.22 kb)

     

  4. Microsoft (MSDN) for Win 7: Setting Up the Development Environment for SharePoint Server (Win 7 high level)
    PDF File:Setting Up the Development Environment for SharePoint Server.pdf (342.88 kb)

     

  5. Faizal: Step by Step SharePoint 2010 Installation Guide (Standalone on VMware Workstation)
    PDF File:Faizal’s Step by step SharePoint Server 2010 Installation guide.pdf (1.23 mb)

     

  6. CodeProject: Step by Step SharePoint Server 2010 Installation … (Standalone on VMware Workstation, good links to prerequisites)

     

  7. Install SharePoint 2010 on Windows 2008
    PDF File:Install SharePoint 2010 on Windows 2008.pdf (179.90 kb)

 

Welcome to the Microsoft SharePoint Server 2010 Beta Resource Center


Posted by Admin on Monday, March 01, 2010 6:21 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Dual / Multiple SharePoint Central Admin

  1. SharePoint Central Administration: High Availability, Load Balancing, Security & General Recommendations
    XPS File: SharePoint Central Administration - High Availability, Load Balancing, Security & General Recommendations.xps (823.79 kb)
  2. Scripted provisioning of multiple Central Admin web applications
    XPS File: Scripted provisioning of multiple Central Admin web applications.xps (237.35 kb)

Categories: MOSS | WSS
Posted by Admin on Monday, March 01, 2010 6:00 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Week with Starting and Ending for a specific Datein SharePoint

Week : 7 (Sunday 07/02/2010 - Saturday 13/02/2010)
=CONCATENATE(INT(([Task Date]-DATE(YEAR([Task Date]),1,1)+(TEXT(WEEKDAY(DATE(YEAR([Task Date]),1,1)),"d")))/7)+1, " (", TEXT([Task Date]-WEEKDAY([Task Date])+1,"dddd"), " ", TEXT([Task Date]-WEEKDAY([Task Date])+1,"dd/mm/yyyy"), " - " , TEXT([Task Date]+7-WEEKDAY([Task Date]),"dddd"), " " , TEXT([Task Date]+7-WEEKDAY([Task Date]),"dd/mm/yyyy"), ")")

Week : 7
=INT(([Task Date]-DATE(YEAR([Task Date]),1,1)+(TEXT(WEEKDAY(DATE(YEAR([Task Date]),1,1)),"d")))/7)+1

Week : Sunday 07/02/2010
=TEXT([Task Date]-WEEKDAY([Task Date])+1,"dddd"), " ", TEXT([Task Date]-WEEKDAY([Task Date])+1,"dd/mm/yyyy")

Week : Saturday 13/02/2010
=TEXT([Task Date]+7-WEEKDAY([Task Date]),"dddd"), " ", TEXT([Task Date]+7-WEEKDAY([Task Date]),"dd/mm/yyyy")

*************************************************************************
Common Date Time formulas for Sharepoint – Calculated Fields

Get Week of the year
=DATE(YEAR([Start Time]),MONTH([Start Time]),DAY([Start Time]))+0.5-WEEKDAY(DATE(YEAR([Start Time]),MONTH([Start Time]),DAY([Start Time])),2)+1

First day of the week for a given date:
=[Start Date]-WEEKDAY([Start Date])+1

Last day of the week for a given date:
=[End Date]+7-WEEKDAY([End Date])

First day of the month for a given date:
=DATEVALUE(“1/”&MONTH([Start Date])&”/”&YEAR([Start Date]))

Last day of the month for a given year (does not handle Feb 29). Result is in date format:
=DATEVALUE (CHOOSE(MONTH([End Date]),31,28,31,30,31,30,31,31,30,31,30,31) &”/” & MONTH([End Date])&”/”&YEAR([End Date]))

Day Name of the week : e.g Monday, Mon
=TEXT(WEEKDAY([Start Date]), “dddd”)
=TEXT(WEEKDAY([Start Date]), “ddd”)

The name of the month for a given date – numbered for sorting – e.g. 01. January:
=CHOOSE(MONTH([Date Created]),”01. January”, “02. February”, “03. March”, “04. April”, “05. May” , “06. June” , “07. July” , “08. August” , “09. September” , “10. October” , “11. November” , “12. December”)

Get Hours difference between two Date-Time :
=IF(NOT(ISBLANK([End Time])),([End Time]-[Start Time])*24,0)

Date Difference in days – Hours – Min format : e.g 4days 5hours 10min :
=YEAR(Today)-YEAR(Created)-IF(OR(MONTH(Today)<MONTH(Created),AND(MONTH(Today)=MONTH(Created), DAY(Today)<DAY(Created))),1,0)&” years, “&MONTH(Today)-MONTH(Created)+IF(AND(MONTH(Today)<=MONTH(Created),DAY(Today)<DAY(Created)),11,IF(AND(MONTH(Today)<MONTH(Created),DAY(Today)>=DAY(Created)),12,IF(AND(MONTH(Today)>MONTH(Created),DAY(Today)<DAY(Created)),-1)))&” months,“&Today-DATE(YEAR(Today),MONTH(Today)-IF(DAY(Today)<DAY(Created),1,0),DAY(Created))&” days”
OR
=IF(HOUR([Ending Date])>HOUR([Starting Date]),DATEDIF([Starting Date],[Ending Date],”d”)&” days “&HOUR([Ending Date]-[Starting Date])&” hours “,(DATEDIF([Starting Date],[Ending Date],”d”)-1)&” days “& HOUR([Ending Date]-[Starting Date])&” hours “)&MINUTE([Ending Date]-[Starting Date])&” minutes”


You can get Get more formulas from
http://office.microsoft.com/en-us/sharepointtechnology/HA011609471033.aspx

Reference

Taming the Elusive “Calculated Column” – Text and Data (Part V)


Posted by Admin on Thursday, February 25, 2010 3:41 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Tab control using MultiView and View

Tab control using MultiView and View in asp.net C#

Source : Tab control.aspx (2.38 kb)


Tags: ,
Posted by Admin on Sunday, January 31, 2010 10:33 AM
Permalink | Comments (0) | Post RSSRSS comment feed

runas - command

To create a shortcut to

Type

Description

A command prompt with administrator credentials

runas /user: ComputerName \administrator cmd

The title bar of this window will indicate the credentials under which it is running.

Computer Management with administrator credentials

runas /user: ComputerName \administrator "mmc %windir% \system32\compmgmt.msc"

The Computer Management window provides no indication of the credentials under which it is running. This could cause confusion if you start two or more Computer Management windows in different security contexts.

Active Directory Users and Computers with domain administrator credentials (Windows 2000 Server only)

runas /user: DomainName \administrator "mmc %windir% \system32\dsa.msc"

The Active Directory Users and Computers window provides no indication of the credentials under which it is running. This could cause confusion if you start two or more Active Directory Users and Computers windows in different security contexts.

Active Directory Users and Computers in another forest (Windows 2000 Server only)

runas /netonly /user: DomainName \ UserName "mmc.exe dsa.msc"

The Active Directory Users and Computers window provides no indication of the credentials under which it is running. This could cause confusion if you start two or more Active Directory Users and Computers windows in different security contexts.

 

Some Useful Windows Run Commands
ADDUSERS Add or list users to/from a CSV file
ARP Address Resolution Protocol
ASSOC Change file extension associations
ASSOCIAT One step file association
AT Schedule a command to run at a later time
ATTRIB Change file attributes
BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info
CACLS Change file permissions
CALL Call one batch program from another
CD Change Directory – move to a specific Folder
CHANGE Change Terminal Server Session properties
CHKDSK Check Disk check and repair disk problems
CHKNTFS Check the NTFS file system
CHOICE Accept keyboard input to a batch file
CIPHER Encrypt or Decrypt files/folders
CleanMgr Automated cleanup of Temp files, recycle bin
CLEARMEM Clear memory leaks
CLIP Copy STDIN to the Windows clipboard.
CLS Clear the screen
CLUSTER Windows Clustering
CMD Start a new CMD shell
COLOR Change colors of the CMD window
COMP Compare the contents of two files or sets of files
COMPACT Compress files or folders on an NTFS partition
COMPRESS Compress individual files on an NTFS partition
CON2PRT Connect or disconnect a Printer
CONVERT Convert a FAT drive to NTFS.
COPY Copy one or more files to another location
CSCcmd Client side caching (Offline Files)
CSVDE Import or Export Active Directory data
DATE Display or set the date
Dcomcnfg DCOM Configuration Utility
DEFRAG Defragment hard drive
DEL Delete one or more files
DELPROF Delete NT user profiles
DELTREE Delete a folder and all subfolders
DevCon Device Manager Command Line Utility
DIR Display a list of files and folders
DIRUSE Display disk usage
DISKCOMP Compare the contents of two floppy disks
DISKCOPY Copy the contents of one floppy disk to another
DNSSTAT DNS Statistics
DOSKEY Edit command line, recall commands, and create macros
DSADD Add user (computer, group..) to active directory
DSMOD Modify user (computer, group..) in active directory
DSQUERY List items in active directory
ECHO Display message on screen
ENDLOCAL End localisation of environment changes in a batch file
ERASE Delete one or more files
EXIT Quit the CMD shell
EXPAND Uncompress files
EXTRACT Uncompress CAB files
FC Compare two files
FDISK Disk Format and partition
FIND Search for a text string in a file
FINDSTR Search for strings in files
FOR /F Loop command: against a set of files
FOR /F Loop command: against the results of another command
FOR Loop command: all options Files, Directory, List
FORFILES Batch process multiple files
FORMAT Format a disk
FREEDISK Check free disk space (in bytes)
FSUTIL File and Volume utilities
FTP File Transfer Protocol
FTYPE Display or modify file types used in file extension associations
GLOBAL Display membership of global groups
GOTO Direct a batch program to jump to a labelled line
HELP Online Help
HFNETCHK Network Security Hotfix Checker
IF Conditionally perform a command
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP
KILL Remove a program from memory
LABEL Edit a disk label
LOCAL Display membership of local groups
LOGEVENT Write text to the NT event viewer.
LOGOFF Log a user off
LOGTIME Log the date and time in a file
MAPISEND Send email from the command line
MD Create new folders
MEM Display memory usage
MKLINK Create a symbolic link (linkd)
MODE Configure a system device
MORE Display output, one screen at a time
MOUNTVOL Manage a volume mount point
MOVE Move files from one folder to another
MOVEUSER Move a user from one domain to another
MSG Send a message
MSIEXEC Microsoft Windows Installer
MSINFO Windows NT diagnostics
MSTSC Terminal Server Connection (Remote Desktop Protocol)
MUNGE Find and Replace text within file(s)
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETDOM Domain Manager
NETSH Configure network protocols
NETSTAT Display networking statistics (TCP/IP)
NETSVC Command line Service Controller
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights
PATH Display or set a search path for executable files
PATHPING Trace route plus network latency and packet loss
PAUSE Suspend processing of a batch file and display a message
PERFMON Performance Monitor
PERMS Show permissions for a user
PING Test a network connection
POPD Restore the previous value of the current directory saved by PUSHD
PORTQRY Display the status of ports and services
PRINT Print a text file
PRNCNFG Display, configure or rename a printer
PRNMNGR Add, delete, list printers set the default printer
PROMPT Change the command prompt
PsExec Execute process remotely
PsFile Show files opened remotely
PsGetSid Display the SID of a computer or a user
PsInfo List information about a system
PsKill Kill processes by name or process ID
PsList List detailed information about processes
PsLoggedOn Who’s logged on (locally or via resource sharing)
PsLogList Event log records
PsPasswd Change account password
PsService View and control services
PsShutdown Shutdown or reboot a computer
PsSuspend Suspend processes
PUSHD Save and then change the current directory
QGREP Search file(s) for lines that match a given pattern.
RASDIAL Manage RAS connections
RASPHONE Manage RAS connections
RD Delete folder(s)
RDISK Create a Recovery Disk
RECOVER Recover a damaged file from a defective disk.
REG Registry: Read, Set, Export, Delete keys and values
REGEDIT Import or export registry settings
REGINI Change Registry Permissions
REGSVR32 Register or unregister a DLL
REM Record comments (remarks) in a batch file
REN Rename a file or files.
REPLACE Replace or update one file with another
RMTSHARE Share a folder or a printer
ROBOCOPY Robust File and Folder Copy
ROUTE Manipulate network routing tables
RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)
SC Service Control
SCHTASKS Create or Edit Scheduled Tasks
SCLIST Display NT Services
ScriptIt Control GUI applications
SET Display, set, or remove environment variables
SETLOCAL Control the visibility of environment variables
SETX Set environment variables permanently
SHARE List or edit a file share or print share
SHIFT Shift the position of replaceable parameters in a batch file
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SOON Schedule a command to run in the near future
SORT Sort input
START Start a separate window to run a specified program or command
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
SYSTEMINFO List system configuration
TASKLIST List running applications and services
TIME Display or set the system time
TIMEOUT Delay processing of a batch file
TITLE Set the window title for a CMD.EXE session
TOUCH Change file timestamps
TRACERT Trace route to a remote host
TREE Graphical display of folder structure
TYPE Display the contents of a text file
Useful Run Commands for Windows
USRSTAT List domain usernames and last login
VER Display version information
VERIFY Verify that files have been saved
VOL Display a disk label
WHERE Locate and display files in a directory tree
WHOAMI Output the current UserName and domain
WINDIFF Compare the contents of two files or sets of files
WINMSD Windows system diagnostics
WINMSDP Windows system diagnostics II
WMIC WMI Commands
XCACLS Change file permissions
XCOPY Copy files and folders

To Access Run Command.csv (7.51 kb)


Tags:
Posted by Admin on Wednesday, January 27, 2010 3:39 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Getting Query String Values In JavaScript

thanks Ben for the funtastic article

Reading querry stringparameter to an array in javascript

Ask-Ben-Getting-Query-String-Values-In-JavaScript-695-1.txt (2.27 kb)


Posted by Admin on Friday, January 22, 2010 11:50 AM
Permalink | Comments (0) | Post RSSRSS comment feed

JavaScript String Replace All

The JavaScript function for String Replace replaces the first occurrence in the string. The function is similar to the php function str_replace and takes two simple parameters. The first parameter is the pattern to find and the second parameter is the string to replace the pattern with when found. The javascript function does not Replace All...
str = str.replace(”find”,”replace”)

To ReplaceAll you have to do it a little differently. To replace all occurrences in the string, use the g modifier like this:
str = str.replace(/find/g,”replace”)


Categories: JScript
Posted by Admin on Friday, January 22, 2010 11:42 AM
Permalink | Comments (0) | Post RSSRSS comment feed

SharePoint: For my bro

SharePoint 2007

Links

Files


Categories: MOSS
Posted by Admin on Tuesday, January 19, 2010 4:42 AM
Permalink | Comments (0) | Post RSSRSS comment feed

SQL: Duplicate Rows from a Table

How to Delete SQL Server Database Duplicate Rows from a Table Using a Specified Column List and No Temp Tables

 

SELECT COUNT(*),
	Column1,
	Column2,
	.
	.
	Columnn
FROM TestTable
GROUP BY 
	Column1,
	Column2,
	.
	.
	Columnn
HAVING COUNT(*) > 1

--find duplicate emails in a 'users' table:
SELECT id, email, count(email) FROM users GROUP BY email HAVING count(email) > 1

--Another approach is to list all the duplicate entries. We assume the field 'id' is the primary key of the table 'users'
SELECT DISTINCT t1.id, t1.email FROM users t1, users t2 WHERE t1.email = t2.email AND t1.id <> t2.id


/*
How to find duplicates in multiple columns
I have a table with columns b and c that links two other tables b and c, and I want to find all rows that have duplicates in either b or c.
*/

create table a_b_c(
   a int not null primary key auto_increment,
   b int,
   c int
);

insert into a_b_c(b,c) values (1, 1);
insert into a_b_c(b,c) values (1, 2);
insert into a_b_c(b,c) values (1, 3);
insert into a_b_c(b,c) values (2, 1);
insert into a_b_c(b,c) values (2, 2);
insert into a_b_c(b,c) values (2, 3);
insert into a_b_c(b,c) values (3, 1);
insert into a_b_c(b,c) values (3, 2);
insert into a_b_c(b,c) values (3, 3);

select b, c, count(*) 
from a_b_c
group by b, c
having 
	count(distinct b) > 1
	or count(distinct c) > 1;

 


Categories: SQL 2005 | SSRS
Posted by Admin on Tuesday, January 19, 2010 1:28 AM
Permalink | Comments (0) | Post RSSRSS comment feed