Breaking News

Editors Picks

Monday, March 7, 2011

sharing your data on facebook using asp.net


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm12.aspx.cs" Inherits="WebApplication1.WebForm12" %>

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Pagetitle>
head>
<body>
    <form id="form1" runat="server">
    <div>
    <script type="text/javascript">

    function fbs_click() {

        u=location.href;

        t=document.title;

        window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');

        return false;

    }

   

script>

<a href="#" onclick="return fbs_click();" target="_blank" class="shareCtrlLink"><img src="export_icons/facebook.png" border="0" alt="Share on Facebook" align="middle" />Facebooka>

    div>
    form>
body>
html>

Read more ...

Contact Us

Name

Email *

Message *