Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding Querystring into URL

I want to hide the Querystring which is displayed into my URL as shown below in Image::

enter image description here

I am opening it into New Window as::

1) Jquery Code to Oepn New Window:

 var url = rootUrl("Home/Test?Docs=" + check);
 var w = window.open(url, '_blank');

And 2) Controller(Server side) code :

    public class TestViewModel
    {
        public string Docs { get; set; }
        public long DocIDs { get; set; }
        public long TestIDs { get; set; }
    }
    public ActionResult Test(TestViewModel Test)
    {
        return View();
    }

But in this case the Document IDs displayed into the Querystring. I just want to hide the Querystring for more security. How can I do this?

like image 822
Rahul Avatar asked Mar 21 '26 03:03

Rahul


1 Answers

You can do a post request instead. If you want it to be encrypted you should send it over https

like image 125
TGH Avatar answered Mar 22 '26 16:03

TGH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!