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...

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

image

In IE.

image

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 f...

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. fo...

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.

image

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 j...

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.

image

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 s...

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.

image

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.

http://fbdevwiki.com/wiki/Locales

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....

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.

April 18, 2013

My blog crossed 10000 views count

Hey its good news my blog has crossed 10000 views. Its good to see.

Hey its good news my blog has crossed 10000 views.

image

Its good to see.

January 7, 2013

Access parent page’s control on iframe page

When we are popping a popup using iframe and doing some changes reflection should come on parent page. Write a JavaScript on iframe page tha...

When we are popping a popup using iframe and doing some changes reflection should come on parent page.
Write a JavaScript on iframe page that will access parent page control.

<
script type="text/javascript">

   function SetParentValue(val)

     {

         window.parent.document.getElementById('<Put here parent page control ID>').value = val;

     }

</script>


Now you can call this function any where like button click event.


 

That’s It.
Enjoy Learning.

January 6, 2013

Pass multiple parameters query string run time in Data Control

How can we pass multiple query string values to query string run time in data control(Grid View,Repeater). We need to simply create one func...

How can we pass multiple query string values to query string run time in data control(Grid View,Repeater).
We need to simply create one function that will make URL run time.
Here is small example: 

On aspx page:
<a href="<%# MakeURL( Eval("PID"),Eval("UID") ) %>"/></a>

On CS page:
public string MakeURL(object PID, object UID)
{
   return "NewPage.aspx?PID=" + PID.ToString()  + "&UID=" + UID.ToString();
}

That’s It.
Enjoy Learning.