hello i want to change text while pressing the linkbutton. i want to add feature like and dislike on website.. that's why i add two link button one is Like and other is Dislike...
i am so confused about it when user press the like button then change the text of like into unlike. then if user press the unlike then show the like text... how its possible kindly tell me as soon as possible thanks in advance......
mani508
0
Newbie Poster
Recommended Answers
Jump to PostLinkButton.Text = "Like";
You will want the code to check the current text of the button so it knows what to change to I guess. An if statement will do that easily enough:
if(LinkButton1.Text == "Like") { LinkButton1.Text = "Unlike"; // plus whatever other codes runs when …
All 6 Replies
hericles
289
Master Poster
Featured Poster
mani508
commented:
n!ce help
+0
mani508
0
Newbie Poster
hericles
289
Master Poster
Featured Poster
mani508
0
Newbie Poster
hericles
289
Master Poster
Featured Poster
mani508
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.