Appframe Knowledge Base


1 hits
0

Retrieve URL/Querystring in Razor

// Remember to put this inside a @{ } block, so it does not just get rendered out as text
string vUrl = System.Uri.UnescapeDataString(RequestUrl.AbsolutePath);
string[] vUrlParts = vUrl.Split('/');

razor web · Perma link post comment Posted by: Peter Øren (11-nov-2013)