TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tabrez Barniwala
NA
3
472
How to do both simultaneously?
Aug 9 2018 3:36 AM
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.
Reply
Answers (
1
)
How Do I Fill Context menu to my Button Righ Click ?
Incrementing Years in Combobox