Friday, September 23, 2011

How Does Your Website Look on Different Mobile Phones?

You have web site and want to test in different mobiles to see how it looks?

Here is the solution for you. Use .

 

Want to know more, Check this .

Wednesday, September 21, 2011

How To Take A Screenshot In HP TouchPad

Many of you want to take a screenshots with in their TouchPad for various reasons like show off to your friends, reviews in your blogs, etc., For whatever reason you want, you can do it using your TouchPad without purchasing any screenshot application.

Here is the quick tip which will show you how to take a screenshot in your HP TouchPad and transfer it to your PC.

  1. Go to the screen you would like to create a screenshot.
  2. Now hold down Home button and press the power button until you hear a sound something like camera click sound. HP-TouchPad
  3. Captured screenshots will be stored in “Screen Captures” folder and you can view them in “Photos & Videos” app under Apps tab in your TouchPad.
  4. To transfer files, you need to plug the TouchPad into your computer and turn on USB drive mode or you can email to yourself.
  5. That’s it. Simple ha…

 

Thursday, September 8, 2011

Blogger Template Design

I found a nice article on How to design your own custom blogger template? here

Tuesday, September 6, 2011

SharePoint DateTime Control Date Format

If you are working with DateTime Control in SharePoint, you might have a requirement to show date format (For example DD/MM/YYYY) based on the user regional setting instead of US date format (MM/DD/YYYY)

 

You can specify the regional settings locale id to DateTime local id on Page Load

 

int localId = Convert.ToInt32(SPContext.Current.RegionalSettings.LocaleId); 
dtpcStartDate.LocaleId = localId;


If you want to change the default date format, no matter what the user regional setting is, you can do it my writing the custom control by deriving from the Microsoft.SharePoint.WebControls.DateTimeControl.



 

public class CustomDatePicker : Microsoft.SharePoint.WebControls.DateTimeControl
{
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
TextBox tb= (TextBox)this.Controls[0];
DateTime dt = DateTime.Parse(tb.Text);
tb.Text = dt.ToString("dd/MM/yyyy");

}

}
}


Note: For above code, I used the Autopostback = true to trigger OnPreRender event until i figure it out how to trigger onDateChangeed event client side.