Adding a link to a page using the Querystring content in javascript

Below is the code to create a link in a page which includes some value from the querystring of the current page.<script>var qsParm = new Array();function qs(){     var query =;     var parms = query.split('&');     for (var i=0; i<parms.length; i++)     {         var pos = parms[i].indexOf('=');         if (pos > 0)         {             var key =... Continue Reading →


Session and QueryString in Event Handler

Add System.Web namespace public class MyEventHandler: SPItemEventReceiver { HttpContext current; String requestNumber; public MyEventHandler() { current = HttpContext.Current; requestNumber=Convert.ToString(this.current.Request.QueryString["reqno"]); } public override void ItemAdded(SPItemEventProperties properties) { // code  for event handler goes here } Since event handler methods doesn't have access to the page object we cant access query string and Session values. So you... Continue Reading →

Create a website or blog at

Up ↑

%d bloggers like this: