本文介绍了asp.net中的Fb共享按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在asp.net中有一个gridview,它绑定了从db ..中选择的值.
我想在该行的末尾为每行添加fb共享按钮
在此帮助我....
I am having a gridview in asp.net which binds the selected values from db..
i would like to add fb share button for each row at the end of the row
help me in this....
推荐答案
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"> </script>
<script type="text/javascript">
FB_RequireFeatures(["XFBML"], function() {
FB.Facebook.init("<sec code>", "xd_receiver.htm");
});
function logoutfb()
{
FB.Connect.logout();
}
</script>
现在,您可以将其用作gridView中的按钮:
Now you can use it as your button in gridView:
<fb:login-button length="long" önlogin="window.location='abc.aspx'"></fb:login-button>
这篇关于asp.net中的Fb共享按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!