Archive

Archive for November, 2010

How to add smart Object in K2 Blackpearl

Categories: Uncategorized

SharePoint Add Test Data to List

Categories: Uncategorized

microsoftpdc

Categories: Uncategorized

Enum to string


public enum WeekWorkingDays

{

Monday = 1,

Tuesday = 2,

Wednesday = 3,

Thursday = 4,

Friday = 5

}

protected void Button1_Click(object sender, EventArgs e)

{

string strCurrentWorkingDay = “Thursday”;

WeekWorkingDays CurrentDay = WeekWorkingDays.Monday;

try

{

CurrentDay = (WeekWorkingDays)Enum.Parse(typeof(WeekWorkingDays), strCurrentWorkingDay);

switch (CurrentDay)

{

case WeekWorkingDays.Monday:

//Your Action plan on this day

break;

case WeekWorkingDays.Tuesday:

//Your Action plan on this day

break;

case WeekWorkingDays.Wednesday:

//Your Action plan on this day

break;

case WeekWorkingDays.Thursday:

//Your Action plan on this day

break;

case WeekWorkingDays.Friday:

//Your Action plan on this day

break;

}

}

catch

{

}

}

Categories: Uncategorized

The following set of controls will persist value across requests even though the view state is disabled.


PRB: Server controls persist their state when EnableViewState is set to False

The following set of controls will persist value across requests even though the view state is disabled.

TextBox control, CheckBox control ,RadioButton control.

Categories: Uncategorized

Programmatically Adding and Removing Permission to a Group in SharePoint List

Categories: Uncategorized

Change new button order and default content type

Categories: Uncategorized

Document Information Panel to show only selected Site Columns


In your xml file add below attribute whatever field you don’t want show in the form.

ShowInFileDlg=”FALSE”

Categories: Uncategorized

SQL Server: Different ways to know the version


1. using @@Version

Select @@version

2. using System Stored Procedure sp_server_info

Exec SP_Server_info

3. using Extended Stored Procedure xp_msver

Exec xp_msver

4. Using @@MicrosoftVersion

SELECT @@Microsoftversion, cast(@@Microsoftversion as binary(5))as version

Here in the version the output is 0×0009000577

Now extract first non zero character after ’0×0′ from the binary value.

· If it is A which is represented in Hexadecimal format which denotes the number 10 so the version is 2008.

· If it is 9, the version is 2005

Categories: Uncategorized

Get a copy of dll in GAC (or) add Reference to a dll in GAC

Categories: Uncategorized