rrrajesh84in.blogspot.com
Rajesh: December 2012
http://rrrajesh84in.blogspot.com/2012_12_01_archive.html
Wednesday, December 12, 2012. Sql : Concate columns in group by. Subscribe to: Posts (Atom). Sql : Concate columns in group by. View my complete profile. Picture Window template. Powered by Blogger.
rrrajesh84in.blogspot.com
Rajesh: January 2009
http://rrrajesh84in.blogspot.com/2009_01_01_archive.html
Wednesday, January 7, 2009. Switch ON and OFF the monitor. How to turn off your monitor via code? This is an important question at least to me , because I use my computer for long time daily and frequently turn on and off the screen as a way to save energy and power . I hate to make that by using the monitor button(off/on) , because I hear sound from the monitor feel me that the screen may damage . So I will inform you here , How to turn off your monitor via code ( C# )? The display is being. To call a D...
poornis.blogspot.com
Poornima: To create Dynamic DataTable and display in GridView
http://poornis.blogspot.com/2009/01/to-create-dynamic-datatable-and-display.html
Thursday, January 22, 2009. To create Dynamic DataTable and display in GridView. We can create DataTable dynamically and display the content either in GridView or DataList or in Repeater. DataTable dataTable = new DataTable();. DataTable.Columns.Add(new DataColumn("Title", typeof(string) );. DataTable.Columns.Add(new DataColumn("Description", typeof(string) );. DataTable.Columns.Add(new DataColumn("Author", typeof(string) );. DataRow = dataTable.NewRow();. DataRow[0] = post.Title;.
poornis.blogspot.com
Poornima: December 2008
http://poornis.blogspot.com/2008_12_01_archive.html
Friday, December 26, 2008. To avoid overflow of div without using overflow:hidden. If you are using div. Sometimes the div may overflow in IE6 browser.This is due to nesting of various div.So check the div top position.If u find placing of any div, overflows the existing div. Plz change the top. Property to avoid overflow of particular div. Friday, December 19, 2008. Refresh() method in Windows Application. Wednesday, December 17, 2008. To get ShortMonth in C#.net. DateTime actualDate = (DateTime)aDate;.
rrrajesh84in.blogspot.com
Rajesh: April 2009
http://rrrajesh84in.blogspot.com/2009_04_01_archive.html
Tuesday, April 21, 2009. ResizeImage From source path to destination path. Public void ResizeImage(string sourFilePath, int MaxSideSize, string destFilePath). System.Drawing.Image imgInput = System.Drawing.Image.FromFile(sourFilePath);. ImageFormat fmtImageFormat = imgInput.RawFormat;. Get image original width and height. Int intOldWidth = imgInput.Width;. Int intOldHeight = imgInput.Height;. Determine if landscape or portrait. If (intOldWidth = intOldHeight). IntMaxSide = intOldWidth;. Using java.io;.
poornis.blogspot.com
Poornima: To get ShortMonth in C#.net
http://poornis.blogspot.com/2008/12/to-get-shortmonth-in-cnet.html
Wednesday, December 17, 2008. To get ShortMonth in C#.net. Use the below coding to get the short month,. Public static string GetShortMonth(object aDate). DateTime actualDate = (DateTime)aDate;. Int day = actualDate.Day;. Int monthNumber = actualDate.Month;. String month = " ;. If (monthNumber = 1). Month = "Jan,";. Else if (monthNumber = 2). Month = "Feb,";. Else if (monthNumber = 3). Month = "Mar,";. Else if (monthNumber = 4). Month = "Apr,";. Else if (monthNumber = 5). Month = "May,";. Month = "Jun,";.
rrrajesh84in.blogspot.com
Rajesh: Find Most Blocked Queries and Sp's
http://rrrajesh84in.blogspot.com/2012/03/find-most-blocked-queries-and-sps.html
Friday, March 16, 2012. Find Most Blocked Queries and Sp's. BlockTime = total elapsed time - total worker time. FROM sys.dm exec query stats qs. Cross apply sys.dm exec sql text(qs.sql handle). ORDER BY total elapsed time - total worker time DESC. Subscribe to: Post Comments (Atom). Find Most Blocked Queries and Sps. View my complete profile. Picture Window template. Powered by Blogger.
poornis.blogspot.com
Poornima: March 2009
http://poornis.blogspot.com/2009_03_01_archive.html
Saturday, March 7, 2009. SpinningImage in Windows appln. We need to create this class file. Public partial class ImageRotator. Public bool Rotate(RotationType type, string path). FileStream fs1 = new FileStream(path, FileMode.Open, FileAccess.Read);. Img = Image.FromStream(fs1);. ImgSave(AppDomain.CurrentDomain.BaseDirectory "output1.bmp", ImageFormat.Bmp);. ImageCodecInfo usedIC = this.GetEncoderInfo("image/bmp");. Encoder encoder = Encoder.Quality;. Encparams.Param[0] = encparam;. Img = null;. Image im...
poornis.blogspot.com
Poornima: To load data in dropdownlist
http://poornis.blogspot.com/2009/02/to-load-data-in-dropdownlist.html
Monday, February 2, 2009. To load data in dropdownlist. Using the following code, you can load the data in dropdownlist and make the desired value selected in the dropdown list while loading. ClientDropDownList.DataSource = client;. ClientDropDownList.DataTextField = "ClientName";. ClientDropDownList.DataValueField = "ClientID";. ClientDropDownList.Items.Insert(0, new ListItem("select", "0") ;. ClientDropDownList.Items.FindByText(clientList.ClientName).Selected = true;. Subscribe to: Post Comments (Atom).
rrrajesh84in.blogspot.com
Rajesh: May 2009
http://rrrajesh84in.blogspot.com/2009_05_01_archive.html
Thursday, May 28, 2009. Check date is valid javascript. Var datePat = / ( d{1,2})( / -)( d{1,2})( / -)( d{4})$/;. Var matchArray = dateStr.match(datePat); / is the format ok? If (matchArray = null) {. Alert(”Please enter your birth date as dd/mm/yyyy. Your current selection reads: ” dateStr);. Day = matchArray[1]; / p@rse date into variables. Month = matchArray[3];. Year = matchArray[5];. 12) { / check month range. Alert(”Month must be between 1 and 12.”);. If (month = 2) { / check for february 29th.