简体   繁体   中英

all value from query string after some specific character in asp.net

My link is as follows:

http://localhost:7410/SageFrame/MusicVideoDetails.aspx/id/rLmaJ5gRgXCDxURaTcofOg==

I need chracter after /id/ text, which means I need:

"rLmaJ5gRgXCDxURaTcofOg=="

How can I do this?

尝试这个:

string result = link.Substring(link.IndexOf("/id/") + 4);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM