hi
i want to share the individual data in gridview to share his details through email or whatapp.... while click the event its sould askin the contact number and email id.then i want give the details.. would you help me to find answer?
I have tried this code. but when i click share button in mobile its not working. would you rectify tis problem?
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(document).on("click", '.whatsapp', function () {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
var sText = "visit here";
var sUrl = "GridvView1.text";
var sMsg = encodeURIComponent(sText) + " - " + encodeURIComponent(sUrl);
var whatsapp_url = "whatsapp://send?text=" + sMsg;
window.location.href = whatsapp_url;
}
else {
alert("Whatsapp client not available.");
}
});
})
</script>