c# - How to ask for permission when click on activity link -


in website, when user reading article, if user authenticated user. "reads" action publish user's timeline.

however, when other user click on link publisher above user, did not ask permission , go link's destination.

how force ask permission when click on link? if accept permission, user redirect destination, if decline, user remain in facebook.

thanks

you can use javascript confirmation, if user click yes redirect user article ex:

in aspx page link call javascript write:

<asp:linkbutton id="xyz" runat="server" onclientclick="return checkuser()" onclick="xyz_click" /> 

javascript:

<script type="text/javascript"> function chackuser(){ if (confirm("are sure") == true) {             return true;         }         else             return false;      } </script> 

in code behind page:

protected void xyz_click(object sender, eventargs e) { resonse.redirect("your link"); } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -