Posted on November 8th, 2011 at 6:16 pm
Lets have a look at Helper JS file as what methods it contains, below are the method signatures which helper file contains:
- function AddUrlParameter(url, paramName, paramValue)
This method creates a new query string using ‘paramName’ and ‘paramValue’ and adds it to the ‘url’ provided as parameter, If there exists a url parameter with same paramName provided, then it throws a Message Box saying that ‘Url Parameter already Exists!’
- function UpdateUrlParameter(url, paramName, paramValue)
This method updates the existing query string with value equals paramValue where query string name equals paramName, shows up an alert box if query string name does not exists in provided URL.
- function RemoveUrlParameter(url, paramName)
This method removes the query string of which name equals paramName in the provided URL, shows up an alert box if query string name does not exists in provided URL.
All the above three method return New Url, which will be the required Url after adding/updating/removing the query string.
Interested in this topic? You might enjoy another article we've written called
- LinqToSql datacontext SubmitChanges not working, datacontext table is in readonly mode