Thursday, May 10, 2018

unable to pass # character via querystring


To create a querystring with a # in it, from jquery, and read that value accurately in C# when the page loads



Use

encodeURIComponent()

before passing that.

Like:
var id="test # 232425 #454646"
"www.example.com?id=" + encodeURIComponent(id);
or just encode the entire url.

Result :
www.example.com?id=test # 232425 #454646";

Change default Port on Next.js app

 If any other app or process is running on port 3000 , you will get this error in your terminal Port 3000 is already in use. error Command f...