I want to create a link on my page where a key / value pair is dynamically added so that:
Default.aspx?key1=value1
becomes:
Default.aspx?key1=value1&key2=value2
For an existing request to store any keys in the URL. In addition, if there are no keys, then my key will be added along with " ? ", As it will be needed.
I could easily write some logic that does this, but it looks like what should matter to the platform. Is there a way to add keys to the query string without writing my own logic?
source share