Monday 7 March 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">

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

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger