call today Call Today 320.281.0605

Adding a Tab to Facebook Business Page

December 10, 2010    Author: Jessica

To create a new tab on your Facebook Business page you have to install “Static FBML”.  To do this login to Facebook and in the FaceBook Search type Static FBML.  This will bring you to the Static FBML page and under the Logo image click a link that say “Add to my Page”.  You will then be asked to select the page you want to add it to (hint: you want to select your business page).

On your Business Page, under the logo, click Edit page.  On the left of the screen, select Applications.  You will now see the Static FBML application listed.  Click “Go to Application”.  This will take you to a simple page that has a Box Title and FBML box.

The Box Title is the name of the tab (“Welcome, Menu, Shop” or whatever you want).  In the FBML box you can use HTML or FBML.  For the work I’ve done with this application, I just used HTML. When you are done, click Save Changes and your tab should now be on your Business Page.

Note: You must be an Administrator of your Business Page to use this feature.
You can only use this application once for each Business Page.

Here is a helpful link: Click Here

Share

Setting GroupName of RadioButton in ListView

December 5, 2010    Author: Joel

Problem: It seems there is a bug in asp.net where if you add a radio button to a control such as a ListView, Repeater, etc, the GroupName will not be the same for every RadioButton because of the asp.net naming convention adding the control hierarchy to the name.

For example I have a ListView that I include a RadioButton with the ID of “rbMorning”.   3 ListItems are dynamically created with a rendered output name of:

name="ctl00$cphMain$lvMorningSessions$ctrl0$rbMorning"
name="ctl00$cphMain$lvMorningSessions$ctrl1$rbMorning"
and
name="ctl00$cphMain$lvMorningSessions$ctrl2$rbMorning"

In this case a user would be allowed to select all 3 RadioButtons, defeating the purpose of using a RadioButton control.

Solution: Update the names with jQuery.  You will notice that that each name ends with the id of the RadioButton that you set in the ListView.  So I basically search for that and update the name to a name that all radio buttons will share.

Just a few lines of code to do this.  It all is included right here.  I am assuming you need to add jQuery to the page here as well.

 
    <script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('input[name$="rbMorning"]').attr('name', 'rbMorning');
        });
    </script>

That’s it. I hope this helps someone. I am really surprised this is still an issue in asp.net 4.0 even.

Share
Agent Cody Banks 2 Destination London full lenght movie download Afghan Knights download movie Inside the Smiths download movie Beverly Hills Chihuahua download movie Permanent Vacation download movie Indiana Jones and the Kingdom of the Crystal Skull download movie Afghan Knights download movie Inside the Smiths download movie Beverly Hills Chihuahua download movie Permanent Vacation download movie Indiana Jones and the Kingdom of the Crystal Skull download movie