Also i should not used any button or label or text box the id that i am getting in url based on the user selection in gridview and that id which i am getting in url should be passed to multiple tabs in the same browser
<script type="text/javascript">
var queryString = new Array();
$(function () {
if (queryString.length == 0) {
debugger;
if (window.location.search.split('?').length > 1) {
var params = window.location.search.split('?')[1].split('&');
debugger;
for (var i = 0; i < params.length; i++) {
var key = params[i].split('=')[0];
var value = decodeURIComponent(params[i].split('=')[1]);
queryString[key] = value;
here i am getting the id
}
}
}
But here it is getting undefined and coming out of if loop
if (queryString["ID"] != null) {
var data = "<u>Values from QueryString</u><br /><br />";
data += "<b>ID:</b> " + queryString["ID"];
alert(data);
//$("#lblData").html(data);
}
});
But i should pass the id to multiple tabs how can i do this can anyone help me out as i am new to this