ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.why i cant get email with facebook login in asp.net<p>Hi.</p> <p>I use&nbsp;aspsnippets.facebookapi.dll for login into facebook in my web site.&nbsp;But when login into facebook, returned username and email is empty. In my facebook account, email is public. Where is my Fault.</p> <p>Thank a lot.</p> <pre class="brush: csharp">FaceBookConnect.API_Key = &#34;...&#34;; FaceBookConnect.API_Secret = &#34;...&#34;; if (!IsPostBack) { if (Request.QueryString[&#34;error&#34;] == &#34;access_denied&#34;) { ClientScript.RegisterStartupScript(this.GetType(), &#34;alert&#34;, &#34;alert(&#39;User has denied access.&#39;)&#34;, true); return; } string code = Request.QueryString[&#34;code&#34;]; if (!string.IsNullOrEmpty(code)) { string data = FaceBookConnect.Fetch(code, &#34;me&#34;); FaceBookUser faceBookUser = new JavaScriptSerializer().Deserialize&lt;FaceBookUser&gt;(data); string Pass = faceBookUser.Id; string Username = faceBookUser.UserName; string Fullname = faceBookUser.Name; string User_Email = faceBookUser.Email; } }</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/113954/why-i-cant-get-email-with-facebook-login-in-aspnet/http://www.aspforums.net/Threads/113954/why-i-cant-get-email-with-facebook-login-in-aspnet/Wed, 03 Feb 2016 07:21:50 GMTWhat is the logic behind same login for all Google sites can we do same in ASP.Net<p>Hi,</p> <p><em>we have login&nbsp; the any one iof the&nbsp; Google Group site</em> .it not required login to another.its automatically open requested page.</p> <p>when i close the one site. another site working. what is the login behind this.</p> <p>Please suggest me. Thanks in advance.</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/901627/What-is-the-logic-behind-same-login-for-all-Google-sites-can-we-do-same-in-ASPNet/http://www.aspforums.net/Threads/901627/What-is-the-logic-behind-same-login-for-all-Google-sites-can-we-do-same-in-ASPNet/Sat, 17 Aug 2013 09:16:36 GMTUsing Google Translate API with asp.net<p>Hello please I came along this article</p> <p><a href="https://www.aspsnippets.com/Articles/Using-Google-Translation-Translate-API-in-ASPNet-using-C-and-VBNet.aspx">https://www.aspsnippets.com/Articles/Using-Google-Translation-Translate-API-in-ASPNet-using-C-and-VBNet.aspx</a></p> <p>I've gotten my API key and fixed it properly in the code.</p> <p>But when I run it, it is showing the error:</p> <h2><em>The remote server returned an error: (403) Forbidden.</em></h2> <p><strong><em></em></strong><em><code></code></em></p> <pre>Line 12: url += "&amp;q=" + Server.UrlEncode(txtSource.Text.Trim()) Line 13: Dim client As New WebClient() <font color="red">Line 14: Dim json As String = client.DownloadString(url) </font>Line 15: Dim jsonData As JsonData = (New JavaScriptSerializer()).Deserialize(Of JsonData)(json) Line 16: txtTarget.Text = jsonData.Data.Translations(0).TranslatedText</pre> <p>&nbsp;</p> <p><em><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">please what should i fix to get it resolved?</font></em></p>http://www.aspforums.net/Threads/139867/Using-Google-Translate-API-with-aspnet/http://www.aspforums.net/Threads/139867/Using-Google-Translate-API-with-aspnet/Thu, 20 Jul 2017 13:51:14 GMTUpload Files to Google Drive using Google Drive API using C# and VB.Net in ASP.Net<p>Hi,&nbsp;</p> <p>Please let me know how to upload&nbsp;&nbsp;image from local folder to google drive by&nbsp;programmatically C#, Please Explain in brief.&nbsp;</p> <p>Thanks in advance..</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/452417/Upload-Files-to-Google-Drive-using-Google-Drive-API-using-C-and-VBNet-in-ASPNet/http://www.aspforums.net/Threads/452417/Upload-Files-to-Google-Drive-using-Google-Drive-API-using-C-and-VBNet-in-ASPNet/Tue, 31 Jan 2017 05:26:27 GMTUpload file to Google Drive directly from Folder (Directory) without using FileUpload control in ASP.Net<p>i want to know how to upload local file to google drive without using file upload or html input file control.. i have file path and other information</p> <p>i m using web application and vb language</p>http://www.aspforums.net/Threads/212966/Upload-file-to-Google-Drive-directly-from-Folder-Directory-without-using-FileUpload-control-in-ASPNet/http://www.aspforums.net/Threads/212966/Upload-file-to-Google-Drive-directly-from-Folder-Directory-without-using-FileUpload-control-in-ASPNet/Tue, 12 Jan 2016 02:27:52 GMTUpload Video on Facebook wall using asp.net c#<p>Hi,</p> <p>I am trying to upload video on facebook using asp.net with c#. But my code is not working.</p> <p>Please help me out to upload video on facebook using asp.net application with c#.</p> <p>&nbsp;</p> <p>I am using code from here http://aspnetpk.wikispaces.com/Facebook+Video+Upload</p>http://www.aspforums.net/Threads/149911/Upload-Video-on-Facebook-wall-using-aspnet-c/http://www.aspforums.net/Threads/149911/Upload-Video-on-Facebook-wall-using-aspnet-c/Wed, 19 Jun 2013 23:29:40 GMTUpdate Twitter status through ASP.Net Web Application using Twitter API<p>Hi</p> <p>I need to update the status in Twitter&nbsp; in asp.net.</p> <p>I need to use Twitter API to acheive this.</p> <p>Thanks in advance.</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/103309/Update-Twitter-status-through-ASPNet-Web-Application-using-Twitter-API/http://www.aspforums.net/Threads/103309/Update-Twitter-status-through-ASPNet-Web-Application-using-Twitter-API/Mon, 06 Aug 2012 04:18:40 GMTUpdate Twitter status through ASP.Net Web Application<p>Hi <a class="username">Mudassar</a>,</p> <p>I have tried the demo and the code example and it did not work. I was reading that some of the Twitter request uri's have changed and that some are not in use anymore, not sure what that means.</p> <p>When I run the code it authenticates but when I post I get a 404 error on the Tweet_Click on this line - twitter.Tweet(txtTweet.Text)</p> <p>On the demo it does not do anything when the button is pressed, the page only refreshes.</p> <p>Any help would be much appreciated.</p> <p>Kind regards, Carlo</p>http://www.aspforums.net/Threads/722851/Update-Twitter-status-through-ASPNet-Web-Application/http://www.aspforums.net/Threads/722851/Update-Twitter-status-through-ASPNet-Web-Application/Wed, 16 Jan 2013 09:44:46 GMTUpdate google map after 40 seconds so that my google map updated in ASP.Net<p>dear sir<br />i have add google map on my project but i have to do it update or set timer for 40 seconds.<br /><br />i have to update my google map after 40 seconds or apply time so that my google map updated according to my database latitude and longtitude values. my java script cod is .....</p>http://www.aspforums.net/Threads/880408/Update-google-map-after-40-seconds-so-that-my-google-map-updated-in-ASPNet/http://www.aspforums.net/Threads/880408/Update-google-map-after-40-seconds-so-that-my-google-map-updated-in-ASPNet/Thu, 16 Jun 2016 03:15:28 GMTUnable to Show google map on Page in ASP.Net<p>I went through your article of reverse geocoding, this is the link where i found your article:</p> <p><a href="http://www.aspsnippets.com/Articles/ASPNet-Google-Maps-V3-with-Multiple-Markers-Database-Example.aspx">http://www.aspsnippets.com/Articles/ASPNet-Google-Maps-V3-with-Multiple-Markers-Database-Example.aspx</a></p> <p>but unfortunately it is not working and i am getting code error in htm. Following is the picture of the code and error</p> <p><img src="http://i.imgur.com/zLTGgkb.png" alt="" width="472" height="298" /></p> <p>&nbsp;</p>http://www.aspforums.net/Threads/205836/Unable-to-Show-google-map-on-Page-in-ASPNet/http://www.aspforums.net/Threads/205836/Unable-to-Show-google-map-on-Page-in-ASPNet/Mon, 20 Jun 2016 02:03:06 GMTTwitter like TextBox AutoComplete for selecting multiple items in ASP.Net<p><span lang="EN-GB">i would like to fill the textbox autocomplete stringcollection "on the fly" while typing.</span> using with the Particular symbols Like @,#</p> <p>&nbsp;Same as twitter "Compose new tweet" textbox</p> <p>And the Data from the backend</p>http://www.aspforums.net/Threads/138243/Twitter-like-TextBox-AutoComplete-for-selecting-multiple-items-in-ASPNet/http://www.aspforums.net/Threads/138243/Twitter-like-TextBox-AutoComplete-for-selecting-multiple-items-in-ASPNet/Mon, 05 Aug 2013 01:59:39 GMTtwitter integration code<p>How can we integtate twitter(contact,id,twitt) in our own website.......plz respond as soon as possible</p>http://www.aspforums.net/Threads/385107/twitter-integration-code/http://www.aspforums.net/Threads/385107/twitter-integration-code/Thu, 11 Oct 2012 02:44:57 GMTShow direction Arrow on Routes in Google Maps V3<p>Hi,</p> <p>I have per minute Lat-Lang values of user and using it i want to draw a Route on Google Maps with arrow to show direction after some distance.</p> <p>I am using <a href="http://www.aspsnippets.com/Articles/Google-Maps-V3-Draw-route-line-between-two-geographic-locations-Coordinates-Latitude-and-Longitude-points.aspx" target="_blank">this tutorial</a>&nbsp;for refrence but unable to modify the same.</p> <p>Kindly Guide me.</p>http://www.aspforums.net/Threads/796366/Show-direction-Arrow-on-Routes-in-Google-Maps-V3/http://www.aspforums.net/Threads/796366/Show-direction-Arrow-on-Routes-in-Google-Maps-V3/Fri, 26 Sep 2014 03:08:29 GMTShare TextBox Text on Facebook in ASP.Net<p>Sir,</p> <p>&nbsp;</p> <ul> <li>having 4 radio buttons, a mutiline textbox and button on page.</li> <li>all radio button getting values from database</li> </ul> <ul> <li>all radiobutton having same group name.</li> </ul> <ul> <li>I want if user selects any radiobutton and write something on textbox , then clicks on button should get posted on facebook.</li> </ul> <p>any suggetion..</p>http://www.aspforums.net/Threads/644823/Share-TextBox-Text-on-Facebook-in-ASPNet/http://www.aspforums.net/Threads/644823/Share-TextBox-Text-on-Facebook-in-ASPNet/Mon, 09 Dec 2013 03:57:22 GMTShare text and images on Google Plus using C#<p>I want to share text and images on Google Plus using C# asp.net application.</p>http://www.aspforums.net/Threads/528268/Share-text-and-images-on-Google-Plus-using-C/http://www.aspforums.net/Threads/528268/Share-text-and-images-on-Google-Plus-using-C/Tue, 26 Aug 2014 02:48:49 GMTTwitter API: Space Character gets changed to 2520 when Tweet is liked<p>I have a url&nbsp;http://www.abc.com/Colors/View Catalogues . when i click on Like tweet then it is changed into&nbsp;http://www.abc.com/Colors/View%2520Catalogues. Except Tweet Like i have no problem. In others it is changed into&nbsp;http://www.abc.com/Colors/View%20Catalogues. So i don't have any problem. For Twitter Like I am using this Code:</p> <p>&nbsp;&lt;a href="https://twitter.com/share" class="twitter-share-button"&gt;Tweet&lt;/a&gt; &nbsp;</p> <pre> &lt;script language="javascript" type="text/javascript"&gt; !function(d, s, id) {<br /> var js, fjs = d.getElementsByTagName(s)[0];<br /> if (!d.getElementById(id)) {<br /> js = d.createElement(s);<br /> js.id = id; js.src = "//platform.twitter.com/widgets.js";<br /> fjs.parentNode.insertBefore(js, fjs); <br /> } } (document, "script", "twitter-wjs");&lt;/script&gt;</pre> <pre>&nbsp;</pre> <pre>I have done URL Routing:</pre> <pre> System.Web.Routing.RouteTable.Routes.MapPageRoute("View Catalogues", "Colors/View Catalogues", "~/ViewCatalogues.aspx");</pre> <pre>&nbsp;</pre> <pre>Please suggest me what is the solution of this problem<br /> </pre> <pre class="brush: csharp">&nbsp;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/769955/Twitter-API-Space-Character-gets-changed-to-2520-when-Tweet-is-liked/http://www.aspforums.net/Threads/769955/Twitter-API-Space-Character-gets-changed-to-2520-when-Tweet-is-liked/Wed, 12 Dec 2012 04:08:41 GMTTwitter API ASP.Net not (working) posting to the tweet on the wall.<p>I have commented things which caused error as suggested by you&nbsp;</p> <p>Now no error persists but not posting as well</p> <pre class="brush: csharp"> &lt;configSections&gt; &lt;sectionGroup name=&#34;system.web.extensions&#34; type=&#34;System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34;&gt; &lt;sectionGroup name=&#34;scripting&#34; type=&#34;System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34;&gt; &lt;!--&lt;section name=&#34;scriptResourceHandler&#34; type=&#34;System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34; requirePermission=&#34;false&#34; allowDefinition=&#34;MachineToApplication&#34;/&gt;--&gt; &lt;sectionGroup name=&#34;webServices&#34; type=&#34;System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34;&gt; &lt;!--&lt;section name=&#34;jsonSerialization&#34; type=&#34;System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34; requirePermission=&#34;false&#34; allowDefinition=&#34;Everywhere&#34;/&gt;--&gt; &lt;!--&lt;section name=&#34;profileService&#34; type=&#34;System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34; requirePermission=&#34;false&#34; allowDefinition=&#34;MachineToApplication&#34;/&gt;--&gt; &lt;!--&lt;section name=&#34;authenticationService&#34; type=&#34;System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34; requirePermission=&#34;false&#34; allowDefinition=&#34;MachineToApplication&#34;/&gt; &lt;section name=&#34;roleService&#34; type=&#34;System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&#34; requirePermission=&#34;false&#34; allowDefinition=&#34;MachineToApplication&#34;/&gt;--&gt; &lt;/sectionGroup&gt; &lt;/sectionGroup&gt; &lt;/sectionGroup&gt; &lt;/configSections&gt;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/932168/Twitter-API-ASPNet-not-working-posting-to-the-tweet-on-the-wall/http://www.aspforums.net/Threads/932168/Twitter-API-ASPNet-not-working-posting-to-the-tweet-on-the-wall/Thu, 05 Mar 2015 09:26:18 GMTTranslate TextBox Text using Google Translate API in ASP.Net<div>Respected Sir,<br clear="all" />I want use Google API to Translate&nbsp; the English to Marathi and vice-versa.</div> <p>this below code successfully run .but i want to the use a&nbsp; TextBox control to</p> <pre class="brush: html"> &lt;textarea id=&#34;transliterateTextarea&#34; style=&#34;width:600px;height:100px&#34;&gt;&lt;/textarea&gt;</pre> <p>replce the this code like wise</p> <pre class="brush: html">&lt;asp:TextBox ID=&#34;transliterateTextarea&#34; runat=&#34;server&#34;&gt;&lt;/asp:TextBox&gt;</pre> <p>&nbsp;Please help me</p> <pre class="brush: html">&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="googleAPI.aspx.cs" Inherits="WebApplication1.googleAPI" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt; &lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt; &lt;/script&gt; &lt;%--&lt;script type="text/javascript"&gt;--%&gt; &lt;%--&lt;script type="text/javascript" src="google.js"&gt;&lt;/script&gt;--%&gt; &lt;%-- &lt;/script&gt;--%&gt; &lt;script type="text/javascript"&gt; // Load the Google Transliterate API google.load("elements", "1", { packages: "transliteration" }); function onLoad() { var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: [google.elements.transliteration.LanguageCode.MARATHI], shortcutKey: 'ctrl+e', transliterationEnabled: true }; // Create an instance on TransliterationControl with the required // options. var control = new google.elements.transliteration.TransliterationControl(options); // Enable transliteration in the textbox with id // 'transliterateTextarea'. control.makeTransliteratable(['transliterateTextarea']); } google.setOnLoadCallback(onLoad); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;span&gt; English to Marathi&lt;/span&gt;&lt;br&gt; &lt;textarea id=&#34;transliterateTextarea&#34; style=&#34;width:600px;height:100px&#34;&gt;&lt;/textarea&gt; &lt;/body&gt; &lt;/html&gt; </pre>http://www.aspforums.net/Threads/744135/Translate-TextBox-Text-using-Google-Translate-API-in-ASPNet/http://www.aspforums.net/Threads/744135/Translate-TextBox-Text-using-Google-Translate-API-in-ASPNet/Thu, 17 Apr 2014 08:42:15 GMTShare text and images on Google Plus in ASP.Net<p>Hello Sir/Mam,</p> <p>I want to share text and images on Google Plus using C# asp.net application. I have alredy implemented this &nbsp;for &nbsp;Facebook wall Post and Twitter Twitt using your refrance code.</p> <p>Please do help full. (I am using 3- tire architeture (C# ASP.NET) for implementing website )</p> <p>Thanks and Regards</p> <p>Amol Salunke</p> <p>+91 88051019910&nbsp;</p>http://www.aspforums.net/Threads/264040/Share-text-and-images-on-Google-Plus-in-ASPNet/http://www.aspforums.net/Threads/264040/Share-text-and-images-on-Google-Plus-in-ASPNet/Wed, 11 Dec 2013 22:40:45 GMTShare images on Facebook using Share Button in ASP.Net<p>I am showing thumbnail images in dataList on a page of my website. When i click on any image they open in big size. How i will share(Facebook). that particular big size image. My code is given below:</p> <pre class="brush: xml">&lt;script type=&#34;text/javascript&#34;&gt; var CurrentPage = 1; function GetImageIndex(obj) { while (obj.parentNode.tagName != &#34;TD&#34;) obj = obj.parentNode; var td = obj.parentNode; var tr = td.parentNode; if (td.rowIndex % 3 == 0) { return td.cellIndex + tr.rowIndex; } else { return td.cellIndex + (tr.rowIndex * 3); } } // function LoadTextDiv(url, lnk) { debugger; var img = new Image(); var bcgDiv = document.getElementById(&#34;divBackground&#34;); var imgDiv = document.getElementById(&#34;divImage&#34;); var imgFull = document.getElementById(&#34;imgFull&#34;); var imgLoader = document.getElementById(&#34;imgLoader&#34;); var dl = document.getElementById(&#34;&lt;%=dList.ClientID%&gt;&#34;); var imgs = dl.getElementsByTagName(&#34;img&#34;); CurrentPage = GetImageIndex(lnk.parentNode) + 1; imgLoader.style.display = &#34;block&#34;; img.onload = function () { imgFull.src = img.src; document.getElementById(&#34;hdnId&#34;).value = imgFull.src; imgFull.style.display = &#34;block&#34;; imgLoader.style.display = &#34;none&#34;; }; img.src = url; Prepare_Pager(imgs.length); var width = document.body.clientWidth; if (document.body.clientHeight &gt; document.body.scrollHeight) { bcgDiv.style.height = document.body.clientHeight + &#34;px&#34;; } else { bcgDiv.style.height = document.body.scrollHeight + &#34;px&#34;; } imgDiv.style.left = (width - 650) / 2 + &#34;px&#34;; imgDiv.style.top = &#34;20px&#34;; bcgDiv.style.width = &#34;100%&#34;; bcgDiv.style.display = &#34;block&#34;; imgDiv.style.display = &#34;block&#34;; // ProductGallery.getProductName(img.src, retC); return true; function retC(response) { document.getElementById(&#34;lblPdtName&#34;).innerHTML = response.value; document.getElementById(&#34;hdnPdtName&#34;).innerHTML = response.value; } return false; } // function LoadDiv(url, lnk) { debugger; var img = new Image(); var bcgDiv = document.getElementById(&#34;divBackground&#34;); var imgDiv = document.getElementById(&#34;divImage&#34;); var imgFull = document.getElementById(&#34;imgFull&#34;); var imgLoader = document.getElementById(&#34;imgLoader&#34;); var dl = document.getElementById(&#34;&lt;%=dList.ClientID%&gt;&#34;); var imgs = dl.getElementsByTagName(&#34;img&#34;); CurrentPage = GetImageIndex(lnk.parentNode) + 1; imgLoader.style.display = &#34;block&#34;; img.onload = function () { imgFull.src = img.src; document.getElementById(&#34;hdnId&#34;).value = imgFull.src; imgFull.style.display = &#34;block&#34;; imgLoader.style.display = &#34;none&#34;; }; img.src = url; Prepare_Pager(imgs.length); var width = document.body.clientWidth; if (document.body.clientHeight &gt; document.body.scrollHeight) { bcgDiv.style.height = document.body.clientHeight + &#34;px&#34;; } else { bcgDiv.style.height = document.body.scrollHeight + &#34;px&#34;; } imgDiv.style.left = (width - 650) / 2 + &#34;px&#34;; imgDiv.style.top = &#34;20px&#34;; bcgDiv.style.width = &#34;100%&#34;; bcgDiv.style.display = &#34;block&#34;; imgDiv.style.display = &#34;block&#34;; // ProductGallery.getProductName(img.src, retC); return true; function retC(response) { document.getElementById(&#34;lblPdtName&#34;).innerHTML = response.value; document.getElementById(&#34;hdnPdtName&#34;).innerHTML = response.value; } return false; } function HideDiv() { var bcgDiv = document.getElementById(&#34;divBackground&#34;); var imgDiv = document.getElementById(&#34;divImage&#34;); var imgFull = document.getElementById(&#34;imgFull&#34;); bcgDiv.style.display = &#34;none&#34;; imgDiv.style.display = &#34;none&#34;; imgFull.style.display = &#34;none&#34;; } function doPaging(lnk) { // debugger; var dl = document.getElementById(&#34;&lt;%=dList.ClientID%&gt;&#34;); var imgs = dl.getElementsByTagName(&#34;img&#34;); var imgLoader = document.getElementById(&#34;imgLoader&#34;); var imgFull = document.getElementById(&#34;imgFull&#34;); var pdtName = document.getElementById(&#34;lblPdtName&#34;); var img = new Image(); if (lnk.id == &#34;Next&#34;) { if (CurrentPage &lt; imgs.length) { CurrentPage++; imgLoader.style.display = &#34;block&#34;; imgFull.style.display = &#34;none&#34;; img.onload = function () { imgFull.src = imgs[CurrentPage - 1].src; imgFull.style.display = &#34;block&#34;; imgLoader.style.display = &#34;none&#34;; document.getElementById(&#34;hdnId&#34;).value = imgFull.src; ProductGallery.getProductName(imgFull.src, retB); return true; }; function retB(response) { document.getElementById(&#34;lblPdtName&#34;).innerHTML = response.value; document.getElementById(&#34;hdnPdtName&#34;).innerHTML = response.value; } } } else { if (CurrentPage &gt; 1) { CurrentPage--; imgLoader.style.display = &#34;block&#34;; imgLoader.style.display = &#34;none&#34;; img.onload = function () { imgFull.src = imgs[CurrentPage - 1].src; imgFull.style.display = &#34;block&#34;; imgLoader.style.display = &#34;none&#34;; document.getElementById(&#34;hdnId&#34;).value = imgFull.src; ProductGallery.getProductName(imgFull.src, retA); return true; }; function retA(response) { document.getElementById(&#34;lblPdtName&#34;).innerHTML = response.value; document.getElementById(&#34;hdnPdtName&#34;).innerHTML = response.value; } } } Prepare_Pager(imgs.length); img.src = imgs[CurrentPage - 1].src; } function Prepare_Pager(imgCount) { var Previous = document.getElementById(&#34;Previous&#34;); var Next = document.getElementById(&#34;Next&#34;); var lblPrevious = document.getElementById(&#34;lblPrevious&#34;); var lblNext = document.getElementById(&#34;lblNext&#34;); if (CurrentPage &lt; imgCount) { lblNext.style.display = &#34;none&#34;; Next.style.display = &#34;block&#34;; } else { lblNext.style.display = &#34;block&#34;; Next.style.display = &#34;none&#34;; } if (CurrentPage &gt; 1) { Previous.style.display = &#34;block&#34;; lblPrevious.style.display = &#34;none&#34;; } else { Previous.style.display = &#34;none&#34;; lblPrevious.style.display = &#34;block&#34;; } } &lt;/script&gt; &lt;style type = &#34;text/css&#34;&gt; .modal { display: none; position: absolute; top: 0px; left: 0px; background-color:black; z-index:100; opacity: 0.8; filter: alpha(opacity=60); -moz-opacity:0.8; min-height: 100%; } #divImage { display: none; z-index: 1000; position: fixed; top: 0; left: 0; background-color:White; height: 550px; width: 630px; padding: 3px; border: solid 1px black; } .dlTable { width:144px; text-align:left; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;div id=&#34;main&#34;&gt;&lt;!-- Main starts here --&gt; &lt;div&gt;&lt;Overlay:OverlayWindow ID=&#34;overlay&#34; runat =&#34;server&#34; /&gt;&lt;/div&gt; &lt;div&gt;&lt;FHeader:Header ID=&#34;Fheader1&#34; runat=&#34;server&#34; /&gt;&lt;/div&gt; &lt;div&gt;&lt;!----Start body Container----&gt; &lt;div id=&#34;BodyHolder&#34;&gt;&lt;!--Start of Body holder--&gt; &lt;!----------------------------Body code start Here----------------------------------------&gt; &lt;div id=&#34;pagePath&#34;&gt;&lt;a href=&#34;Homepage&#34;&gt; Home&lt;/a&gt; -&gt; Product Gallery&lt;/div&gt;&lt;!--page path--&gt; &lt;div id=&#34;titlecont_photogallery&#34;&gt;&lt;!--open title cont --&gt; &lt;div id=&#34;pagetitle&#34;&gt;Product Gallery&lt;/div&gt; &lt;div id=&#34;smallicons&#34;&gt;&lt;!--Open small icons --&gt; &lt;%-- &lt;a href=&#34;#&#34;&gt;&lt;img src=&#34;images/fav_ico.gif&#34; alt=&#34;My favorites&#34; width=&#34;21&#34; height=&#34;19&#34; title=&#34;My favorites&#34; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;a id=&#34;friendemail&#34; href=&#34;#&#34;&gt;&lt;img src=&#34;images/sentto_ico.gif&#34; alt=&#34;Send to Friend&#34; width=&#34;21&#34; height=&#34;19&#34; title=&#34;Send to Friend&#34; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;--%&gt; &lt;MyFavourate:MyFav ID=&#34;Favourate&#34; runat=&#34;server&#34; /&gt; &lt;/div&gt;&lt;!--Close small icons --&gt; &lt;/div&gt;&lt;!--Close title cont --&gt; &lt;div id=&#34;blocksContainer_photogallery&#34;&gt;&lt;!-- Open Blocks Container --&gt; &lt;div id=&#34;column&#34;&gt; &lt;asp:DataList ID=&#34;dList&#34; runat=&#34;server&#34; RepeatColumns=&#34;3&#34; RepeatDirection=&#34;Horizontal&#34; RepeatLayout=&#34;Table&#34; DataKeyField=&#34;PId&#34; &gt; &lt;ItemTemplate&gt; &lt;div id=&#34;block&#34;&gt;- &lt;table class=&#34;dlTable&#34;&gt; &lt;tr&gt; &lt;td width=&#34;277&#34; align=&#34;left&#34;&gt; &lt;img id=&#34;Image1&#34; src=&#34;images/Product/Gallery/&lt;%#Eval(&#34;Image&#34;)%&gt;&#34; onclick =&#34;javascript:LoadDiv(this.src, this); return false;&#34; height=&#34;210px&#34; width=&#34;277px&#34; alt=&#39;&lt;%#Eval(&#34;Sona&#34;)%&gt;&#39; style =&#34;cursor:pointer&#34;&gt;&lt;/img&gt; &lt;div id=&#34;blacktxt&#34; class=&#34;IEblacktxt&#34; &gt; &lt;a href=&#39;images/Product/Gallery/&lt;%#Eval(&#34;Image&#34;)%&gt;&#39; onclick=&#34;javascript:LoadTextDiv(this.href, this); return false;&#34;&gt;&lt;asp:Label ID=&#34;lblCatName&#34; runat=&#34;server&#34; Text=&#39;&lt;%#Eval(&#34;Sona&#34;)%&gt;&#39;&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;%--div&gt;--%&gt; &lt;/ItemTemplate&gt; &lt;/asp:DataList&gt; &lt;%--&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;--%&gt; &lt;/div&gt; &lt;table border=&#34;0&#34; align=&#34;left&#34; id=&#34;counter&#34; runat=&#34;server&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; style=&#34;margin-left:35px; width:865px&#34;&gt; &lt;tr&gt; &lt;td&gt;&lt;br/&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;hr/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;table width=&#34;0%&#34; border=&#34;0&#34; align=&#34;right&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; &gt; &lt;tr&gt; &lt;td&gt;&lt;asp:Label ID=&#34;lblPageInfo&#34; runat=&#34;server&#34;&gt;&lt;/asp:Label&gt;&lt;/td&gt; &lt;td width=&#34;20px&#34;&gt;&lt;/td&gt; &lt;td&gt;&lt;asp:LinkButton ID=&#34;lbtnFirst&#34; Text=&#34;lblFirst&#34; runat=&#34;server&#34; CausesValidation=&#34;false&#34; OnClick=&#34;lbtnFirst_Click&#34; ToolTip=&#34;First Page&#34;&gt;&lt;img src=&#34;images/first.jpg&#34; width=&#34;13&#34; height=&#34;13&#34; alt=&#34;First Page&#34; /&gt;&lt;/asp:LinkButton&gt;&lt;/td&gt; &lt;td&gt; &lt;asp:LinkButton ID=&#34;lbtnPrevious&#34; runat=&#34;server&#34; CausesValidation=&#34;false&#34; OnClick=&#34;lbtnPrevious_Click&#34; ToolTip=&#34;Previous Page&#34;&gt;&lt;img src=&#34;images/previous.jpg&#34; width=&#34;13&#34; height=&#34;13&#34; alt=&#34;Previous Page&#34;/&gt;&lt;/asp:LinkButton&gt; &lt;/td&gt; &lt;td&gt;&lt;asp:LinkButton ID=&#34;lbtnNext&#34; runat=&#34;server&#34; CausesValidation=&#34;false&#34; OnClick=&#34;lbtnNext_Click&#34; ToolTip=&#34;Next Page&#34;&gt;&lt;img src=&#34;images/next.jpg&#34; width=&#34;13&#34; height=&#34;13&#34; alt=&#34;Next Page&#34; /&gt;&lt;/asp:LinkButton&gt;&lt;/td&gt; &lt;td&gt;&lt;asp:LinkButton ID=&#34;lbtnLast&#34; runat=&#34;server&#34; CausesValidation=&#34;false&#34; OnClick=&#34;lbtnLast_Click&#34; ToolTip=&#34;Last Page&#34;&gt;&lt;img src=&#34;images/last_page.jpg&#34; width=&#34;13&#34; height=&#34;13&#34; alt=&#34;Last Page&#34; /&gt;&lt;/asp:LinkButton&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/div&gt;&lt;!--Close block--&gt; &lt;/div&gt;&lt;!--Close Blocks Container --&gt; &lt;!----------------------------Body Code End Here----------------------------------------&gt; &lt;div id=&#34;divBackground&#34; class=&#34;modal&#34;&gt; &lt;/div&gt; &lt;div id=&#34;divImage&#34; &gt; &lt;table style=&#34;height: 100%; width: 100%&#34;&gt; &lt;tr&gt; &lt;td valign=&#34;middle&#34; align=&#34;center&#34; colspan =&#34;4&#34; style =&#34;height:468px;&#34;&gt; &lt;img id=&#34;imgLoader&#34; runat=&#34;server&#34; alt=&#34;&#34; src=&#34;images/loader.gif&#34; /&gt; &lt;img id=&#34;imgFull&#34; alt=&#34;&#34; src=&#34;&#34; runat=&#34;server&#34; style=&#34;display: none; height: 468px;width: 617px&#34; /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td colspan=&#34;3&#34; align=&#34;center&#34;&gt;&lt;asp:Label ID=&#34;lblPdtName&#34; runat=&#34;server&#34; Text=&#34;&#34;&gt;&lt;/asp:Label&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td align = &#34;left&#34; style=&#34;padding:10px;width:100px&#34; valign=&#34;middle&#34; &gt; &lt;a id = &#34;Previous&#34; href =&#34;javascript:&#34; onclick =&#34;javascript:doPaging(this); return false;&#34;&gt;&lt;img src=&#34;images/Arrows-Left-round-icon.png&#34; width=&#34;20&#34; height=&#34;20&#34; alt=&#34;Previous&#34; title=&#34;Previous&#34;/&gt;&lt;/a&gt; &lt;span id = &#34;lblPrevious&#34; style =&#34;display:none&#34;&gt;&lt;img src=&#34;images/Arrows-Left-round-icon.png&#34; width=&#34;20&#34; height=&#34;20&#34; alt=&#34;Previous&#34; title=&#34;Previous&#34;/&gt;&lt;/span&gt; &lt;/td&gt; &lt;td align =&#34;left&#34; valign=&#34;middle&#34; style=&#34;padding:10px;width:217px&#34; &gt;&lt;asp:HiddenField runat=&#34;server&#34; ID=&#34;hdnId&#34; /&gt;&lt;asp:HiddenField runat=&#34;server&#34; ID=&#34;hdnPdtName&#34; /&gt; &lt;asp:ImageButton ID=&#34;imgDownLoad&#34; runat=&#34;server&#34; ToolTip=&#34;Download&#34; ImageUrl=&#34;images/download.jpg&#34; onclick=&#34;Download_Click&#34; AlternateText=&#34;Download&#34; /&gt; &lt;/td&gt; &lt;td align=&#34;right&#34; valign=&#34;middle&#34; style =&#34;padding:10px;width:200px&#34;&gt; &lt;a href=&#34;#&#34;&gt; &lt;img id=&#34;btnClose&#34; onclick=&#34;HideDiv()&#34; src=&#34;images/close-round-icon.png&#34; alt=&#34;Close&#34; title=&#34;Close&#34; width=&#34;20&#34; height=&#34;20&#34;/&gt;&lt;/a&gt; &lt;/td&gt; &lt;td align = &#34;right&#34; valign=&#34;middle&#34; style =&#34;padding:10px;width:100px&#34;&gt; &lt;a id = &#34;Next&#34; href =&#34;javascript:&#34; onclick =&#34;javascript:doPaging(this); return false;&#34; style=&#34;text-decoration:none; font-size:10px&#34; &gt;&lt;img src=&#34;images/Arrows-right-round-icon.png&#34; width=&#34;20&#34; height=&#34;20&#34; alt=&#34;Next&#34; title=&#34;Next&#34; /&gt;&lt;/a&gt; &lt;span id = &#34;lblNext&#34; style =&#34;display:none&#34;&gt;&lt;img src=&#34;images/Arrows-right-round-icon.png&#34; width=&#34;20&#34; height=&#34;20&#34; alt=&#34;Next&#34; title=&#34;Next&#34; /&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt;&lt;!--End of Body holder --&gt; &lt;%--&lt;/div&gt;&lt;!--close body Container --&gt; --%&gt; &lt;div&gt;&lt;FFooter:Footer ID=&#34;Footer1&#34; runat=&#34;server&#34; /&gt;&lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/392526/Share-images-on-Facebook-using-Share-Button-in-ASPNet/http://www.aspforums.net/Threads/392526/Share-images-on-Facebook-using-Share-Button-in-ASPNet/Sat, 29 Jun 2013 00:05:59 GMT