Split out ints from string

前端 未结 13 1357
情歌与酒
情歌与酒 2021-01-17 17:45

Let\'s say I have a web page that currently accepts a single ID value via a url parameter:
http://example.com/mypage.aspx?ID=1234

I want to change it to acce

13条回答
  •  囚心锁ツ
    2021-01-17 18:12

    You can use string.Split() to split the values once you have extracted them from the URL.

    string[] splitIds = ids.split(',');
    

提交回复
热议问题