How to add smart Object in K2 Blackpearl
SharePoint Add Test Data to List
SharePoint Add Test Data to List
http://microsoft-techies.blogspot.com/2014/04/sharepoint-add-test-data-to-list.html
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
{
}
}
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.
Programmatically Adding and Removing Permission to a Group in SharePoint List
Change new button order and default content type
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”
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