...So I have it working now. I used pipes for the delimination. Here's the js/jq:
and here's the asp.net page load:Code:// display selected row index. $("#jqxgrid").bind('rowselect', function (event) { var row = $("#jqxgrid").jqxGrid('getrowdata', event.args.rowindex); //alert(row.ORG_ID + " " + row.Organization_Name); //document.getElementById("<%=HiddenField1.ClientID %>").value = row.Organization_Name; //alert(document.getElementById("<%=HiddenField1.ClientID %>").value); //Document.cookie = 'MickeyCookie=' + row.Organization_Name; + "path=/; expires=Wed, 1 Jan 2020 00:00:00 GMT"; var mySelectedRow = row.ORG_ID + '|' + row.Organization_Name + '|' + row.address_street; var exdate = new Date(); exdate.setDate(exdate.getDate() + 365); //var c_value = escape("TestValue") + ((365 == null) ? "" : "; expires=" + exdate.toUTCString()); //var c_value = escape(row.Organization_Name) + ((365 == null) ? "" : "; expires=" + exdate.toUTCString()); var c_value = mySelectedRow + ((365 == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = "TestCookie" + "=" + c_value; });
super thanks.Code:Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'HttpCookie(cookie = Response.Cookies.Get("myCookieName")); 'HttpCookie(InlineAssignHelper(cookie, Response.Cookies.[Get]("myCookieName"))) 'Label1.Text = Request.Cookies("TestCookie").Value Dim rawRow As String = Request.Cookies("TestCookie").Value 'txtName.Text = Request.Cookies("TestCookie").Value Dim rawRowSplit() As String = Split(rawRow, "|") txtOrgID.Text = rawRowSplit(0) txtName.Text = rawRowSplit(1) txtStreet.Text = rawRowSplit(2) End Sub




Reply With Quote