i am working on an C# application..
let me explain
I want to let user to download an a book using my given link in button_2. but the condition is that
user can only click the button when he/she shares this application on whatsapp by clicking on Button_1
for that I did this code.
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("https://api.whatsapp.com/send?text=This app is giving Unlimited Paytm cash to celebrate Independence go and download the app for free http://student-cell.com/mybook");
Button2.Enabled = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("http://mybook-studg.com");
}
If a user tries to click the button_2 without clicking on Button_1 it can not happen because I went to Button_2 property and did Enabled is False.
Please share me the right code.