vendredi 6 février 2015

How to extract Guid from URL


Vote count:

0




I'm trying to extract GUID from a URL.


I have a Index page and when the user click on EDIT (GET) its add GUID to the action name in this case will be EDIT


So my URL looks like this:



http://localhost:55097/Admin/Edit/a2cc5900-bdff-41f1-9c2a-21032a5275de


Once the user is on Edit page (POST) and try to submit the changes then I need to know what what GUID is:


What I want to achieve is to just get the GUID or /Edit/{guid}


Tried couple of Request but none of it works for me and if I tried this Request.Url.PathAndQuery it gives the full url which i do not want.



asked 2 mins ago







How to extract Guid from URL

Aucun commentaire:

Enregistrer un commentaire