请帮助创建这种类型的链接 [英] Please help to creating this type of link

查看:54
本文介绍了请帮助创建这种类型的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个按钮来打开诸如
的链接 http://www.yahoo.com/first&second

我想先从textbox1.text
获取整数 第二个是来自richtextbox1.text
的字符串
如何将两者结合在一个链接中..

例如:
如果我们在textbox1.text
中输入12345 和rakesh在textbox2.text

链接应像
一样打开
http://www.yahoo.com/12345&rakesh

帮助我在vb.net

i am creating a button to open a link such as
http://www.yahoo.com/first&second

i wanna take first as integer from textbox1.text
and second as string from richtextbox1.text

how it is possible to combine both in a single link..

for example:
if we input 12345 in textbox1.text
and rakesh in textbox2.text

link should open as like

http://www.yahoo.com/12345&rakesh

help me in coding in vb.net

推荐答案

1中进行编码:www.google.com上的搜索:http://www.ironspeed.com/articles/Using%20URL%20Parameters/Article.aspx [
1 search on www.google.com:http://www.ironspeed.com/articles/Using%20URL%20Parameters/Article.aspx[^]


尝试
string link = @"http://www.yahoo.com/" + textBox1.Text + "&" + textBox2.Text;
            System.Diagnostics.Process.Start(link);




or

string link = string.Concat(@"http://www.yahoo.com/", textBox1.Text, "&", textBox2.Text);
              System.Diagnostics.Process.Start(link);


这篇关于请帮助创建这种类型的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆