Solution for the QlikView, Biztalk, DotNet and MSBI real time development problems
Search This Blog
Wednesday, August 24, 2011
Passing a control.ClientID to a javascript function in asp.net
Use below code to pass control client id to javascript function:
<asp:TextBox ID="demo1" runat="server"></asp:TextBox>
<img src="images/cal.gif" onclick="javascript:NewCssCal('<%= demo1.ClientID %>')"
style="cursor: pointer" alt="sdf" />
how to implement facebook like button in asp.net pages or master page
1) One way to add the like button on your site.go to this page,
http://developers.facebook.com/docs/reference/plugins/like-box
just enter your facebook details then press on the "Get Code" button, u will get the copy & paste code like below.
This is an example:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&width=292&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:427px;" allowTransparency="true"></iframe>
2) Another way To implement facebook like button copy & paste the below code replace "MahindraHomestays" with "your facebook id"
http://developers.facebook.com/docs/reference/plugins/like-box
just enter your facebook details then press on the "Get Code" button, u will get the copy & paste code like below.
This is an example:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&width=292&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:427px;" allowTransparency="true"></iframe>
2) Another way To implement facebook like button copy & paste the below code replace "MahindraHomestays" with "your facebook id"
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FMahindraHomestays&layout=button_count&show_faces=false&width=50&action=like&font&colorscheme=light&height=21"
scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 80px;
height: 21px;" allowtransparency="true"></iframe>
scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 80px;
height: 21px;" allowtransparency="true"></iframe>
Subscribe to:
Posts (Atom)
Popular Posts
-
Error : Could not store transport type data for Receive Location 'EAISolutionReceiveRequestLocation' to config store. Prima...
-
Difference between C# var and Javascript var C# var i = 10; // implicitly typed int i = 10; //explicitly typed //Initialization is man...
-
I am getting below error while executing stored procedure from C# (Ado.net, entity framework) String[2]: the Size property has an invalid ...
-
Review the permissions of the user that you're trying to impersonate. In my situation, I was only getting the error on my development ...
-
Migration from Visual Studio 2008 to 2013 Without any code changes I successfully migrated from VS 2008 to 2013 but when running website f...