Clock In javascript

Add belowe script in head tag <script type=”text/javascript” language=”JavaScript”>// <![CDATA[ var dayarray=new Array (“Sunday”,”Monday”,”Tuesday”,”Wednesday”, “Thursday”,”Friday”,”Saturday”) var montharray=new Array(“January”,”February”,”March”,”April”,”May”,”June”, “July”,”August”,”September”,”October”,”November”,”December”) function getthedate(){ var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym=”0″+daym var hours=mydate.getHours() var minutes=mydate.getMinutes() var seconds=mydate.getSeconds() var dn=”” if (hours>=12) dn=”” if (hours>12){ hours=hours-12 }Continue Reading “Clock In javascript”

Get a Font From Path at server side

public struct LoadedFont { public Font Font { get; set; } public FontFamily FontFamily { get; set; } } public static LoadedFont LoadFont(FileInfo file, int fontSize, FontStyle fontStyle) { var fontCollection = new PrivateFontCollection(); fontCollection.AddFontFile(file.FullName); if (fontCollection.Families.Length < 0) { throw new InvalidOperationException(“No font familiy found when loading font”); } var loadedFont = new LoadedFont();Continue Reading “Get a Font From Path at server side”

Paging with Datalist using pager control

Download pager control ASPnetPagerV2_8.dll Bind Datalist: string MulRowCol = Convert.ToString(PagerV2_1.PageSize); if (Request.QueryString[“pageindex”] != null) { PagerV2_1.CurrentIndex = Convert.ToInt32(Request.QueryString[“pageindex”]); PagerV2_2.CurrentIndex = Convert.ToInt32(Request.QueryString[“pageindex”]); } MatrixRow = Convert.ToInt32(MulRowCol); PagerV2_1.Visible = false; PagerV2_2.Visible = true; ViewState[“MatrixRow”] = MatrixRow; int Pagesize = PagerV2_1.PageSize; int CurrentPage = PagerV2_1.CurrentIndex;

Visual studio 2010 shortcut

Shortcut Description Ctrl-X or Shift-Delete Cuts the currently selected item to the clipboard Ctrl-C or Ctrl-Insert Copies the currently selected item to the clipboard Ctrl-V or Shift-Insert Pastes the item in the clipboard at the cursor Ctrl-Z or Alt-Backspace Undo previous editing action Ctrl-Y or Ctrl-Shift-Z Redo the previous undo action Ctrl-Shift-V or Ctrl-Shift-Insert PastesContinue Reading “Visual studio 2010 shortcut”