In this blog, I will show you how to pass multiple URLs in WhatsApp share.
Before that, take a look at WhatsApp Sharing Button Generator.
Here is the code
- string whatappstring = string.Empty;
- whatappstring = "Your Message 1" + "\r\n" + "http://www.abcd.com/"
- + "\r\n" + "Your Message 2" + "\r\n";
Now, in your aspx page
call the the string like this
- <a href="whatsapp://send" data-text="<%=whatappstring %>" data-href="http://www.cdef.com/" class="wa_btn wa_btn_s" style="display:none">Share</a>
Now, pass multiple URLs in WhatsApp share.
Hope you enjoyed.
All comments are welcomed.