I want to ask something that what i want to do is to retrieve replyID from database and want to show some hyperlink accordingly. But the problem is to display the html syntax inside the vb.net code is not correct. if you dont mind can you support me correct
syntax for that one.
Aung Phyo Wi...
Member
52 Points
38 Posts
how to display / (backslash) in vb.net
Sep 25, 2009 09:54 AM|LINK
Dear all,
I want to ask something that what i want to do is to retrieve replyID from database and want to show some hyperlink accordingly. But the problem is to display the html syntax inside the vb.net code is not correct. if you dont mind can you support me correct syntax for that one.
Thanks
Aung
For Each r As library.Reply In currentReplies
lblReplies += "<a href=" + "replyDetails.aspx?ReplyID=" + r.ReplyID + ">" + r.ReplyID + "<" + "/a" + ">"
Next
qwe123kids
All-Star
48619 Points
7957 Posts
MVP
Re: how to display / (backslash) in vb.net
Sep 25, 2009 12:12 PM|LINK
Hi,
if Looop is Workign fine then
dim lblReplies as string
lblReplies = lblReplies &"<a href=" & "replyDetails.aspx?ReplyID=" & r.ReplyID & ">" + r.ReplyID + "<" & "/a" & ">"
After loop simply add to label..
lblReplies1.text = lblReplies
Replace + with &
Avinash Tiwari
Remember to click “Mark as Answer” on the post, if it helps you.
Aung Phyo Wi...
Member
52 Points
38 Posts
Re: how to display / (backslash) in vb.net
Sep 25, 2009 03:36 PM|LINK
I got it. Thank you.