How to construct dynamic url hyperlinks?
Hi all i am trying to construct a list of dynamic url hyperlinks from dynamic values of sResult(N)(holds movie url) and textbox6(holds movie name) and N (holds episode number) and place them in richtexbox. I tried the following but the richtextbox showed no value! could you guys help me construct these hyperlinks ?thanks in advance.
Code:
RichTextBox3.Text = RichTextBox3.Text & "" & sResult(N) & ".flv&title=" & Text6.Text & N & " " > "&Text6.Text & N & ""</a> <br />" & vbCrLf
example of constructed url:
<a href="./Player.php?id=http://www.somesite.com/2 &title=MovieName Episode 1">MovieName Episode 1</a> <br />
Re: How to construct dynamic url hyperlinks?
You must pay attention when you need insert quotation " inside a string
Try this
Code:
RichTextBox3.Text = RichTextBox3.Text & sResult(n) & ".flv&title=""" & Text6.Text & n & """ > " & Text6.Text & n & "</a> <br />" & vbCrLf
Re: How to construct dynamic url hyperlinks?
HTML supports single quote marks ' instead of double quote marks ". This means you can use ' instead of " in your HTML URL string