My Photo

Microsoft Dynamics 365

Official Blog for Microsoft Dynamics Functional and Technical Solutions....
Browsing Category " get parameter query from URL in C# "

Get Parameter from URL in C#

Get Query from URL and then get Parameter as required .

      string URLT = "localhost:2081/page.aspx?CaseID=662BB71D-CFF9-E711-90CD-00155DD3F14C";
            Uri uri = new Uri(URLT);
            var query = HttpUtility.ParseQueryString(uri.Query);
            var param1 = query.Get("CaseID");
            Guid CaseGUID = new Guid(param1);