June 26, 2013

Enable/Disable JavaScript in browser

You can enable/disable JavaScript in browser.
In Firefox go to options window and simply check/uncheck highlighted area.


In IE.


That’s It.
Enjoy Learning.

June 25, 2013

JWPlayer Issue for Youtube URL with hyphen

JWPlayer does not run video in IPad & IPhone when youtube URL contains hyphen.
If we upgrade JWPlayer version to 6.5 then it will work fine.

JWplayer team has fixed this issue in 6.5 version.

That’s it.
Enjoy Learning.

June 24, 2013

Some files are not supporting Web Application

If certain files are not supporting in your ASP.Net application.
It happens its a general case.You can simply enable them in web.config.

for my case here I have added .ico file.


That's It.
Enjoy Learning.

June 23, 2013

Check JavaScript Disabled

It may happens sometimes client's PC JavaScript will be disabled.
So What I want to display some message to client
"Please enable javascript in your browser for better viewing the site."

we can use noscript for that it fires when javascript disabled in the browser.
So we can put there relevent message in that section.


That’s It.
Enjoy Learning.

June 22, 2013

Show localized facebook Like Button

When we integrate facebook like button how can we show it as localized.
If you have generated code for like button from facebook developer site
and it is not iframe version.

Code will be displayed as below.


In above highlighted section its default en_US so it will come in english.
So if you want to change it locale wise make this parameter variable.

You can get locale wise value from here.


That's It.
Enjoy Learning

April 19, 2013

Make string title case in C#

We generally use ToLower or ToUpper in C#.But how can we change a string in title case.

Yes we can.We have System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase.
It takes string as parameter.

string strText = “my blog”;
string strTitleCase = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strText);

That's It.
Enjoy Learning.