How to open IE with post info in C#?

后端 未结 6 1250
陌清茗
陌清茗 2020-12-03 12:32

I am developing a small program which as a windows form. On this form, I want to put a link, and when user click the link, a seperate IE browser will be open with post data.

6条回答
  •  -上瘾入骨i
    2020-12-03 12:58

    Actually, you can use process.start with posted query string data:

    System.Diagnostics.Process.Start("IExplore.exe", "http://localhost/file.html?foo=bar&baz=duh");
    

提交回复
热议问题