Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

Have 3 buttons - subscribe, subscribed and unsubscribe.
if i click subscribe to this user and the button will changed to subscribed.
And the subscribed button will be there next time i visit unless i unsubscribe from the user then it will appear to me that i'm not subscribe to the user.
what is the code for visual web developer vb? And also the codes for removing duplicate data in database.
And also if i click unsubscribe, how to remove the recorded data from database explorer?

Thanks.
Posted
Comments
Kenneth Haugland 31-Jul-12 8:55am    
Why not one button, an enum with tree options, and change the content in the button?
[no name] 31-Jul-12 9:06am    
So you want someone to write all this code for you? You would need to go visit a job board and hire someone to do this.
Malli_S 31-Jul-12 9:41am    
Try using enum to preserve the state of the button.
In Database, what kind of duplicate data you wanna remove?
(Is this your assignment?)
Sandeep Mewara 31-Jul-12 11:05am    
And what exactly you are looking for here? Code?
Sergey Alexandrovich Kryukov 31-Jul-12 12:14pm    
What database explorer? You are talking about runtime.
--SA

1 solution

This is not a real question. You've told us what you want, and acted as if we know how to give you the code you need, and would just do your work for you. A better UI is one button that says subscribe and changes to unsubscribe when you're subscribed. Then you store if the logged in user is subscribed in the DB, and switch that value when the button is pressed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900