在 url 中间插入变量 [英] Insert variable into middle of url
本文介绍了在 url 中间插入变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 vb.net 在 URL 中间插入变量?
how could I insert a variable into the middle of a URL using vb.net?
例如
Dim ver As String = "variable"
http://testurl.co.uk/folder/next_folder/" & ver & "/test.exe
(不确定以上是否正确)
(not sure if this is correct above)
注意:我知道如何设置变量但不确定如何插入到 URL 的中间
Note: I know how to set a variable but not sure how to insert into the middle of a URL
推荐答案
几乎,我想你想要这个:
Almost, I think you want this:
Dim ver As String = "variable"
Dim url As String = "http://testurl.co.uk/folder/next_folder/" & ver & "/test.exe"
要浏览表单中的网址,请执行以下操作:
To browse the url in the form do something like this:
Dim wb1 As New Net.WebBrowser()
Form1.Controls.Add(wb1)
wb1.Navigate(url)
这篇关于在 url 中间插入变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文