QueryString id is undefined in JavaScript

Last Reply on Sep 16, 2016 04:05 AM By dharmendr

Posted on Sep 16, 2016 03:19 AM

In my application when user clicks on an audio audio id is retrived in page load and this audio id should be passed to multiple tabs in the browser because i had added an chrome extension which controls the audio in the previous tab from multiple new tabs on button click but i need to control it on keydown event from multiple new tabs if i pass the audio id to all the tabs can i control it using keydown event or how can i control the audio in main tab from multiple new tab using keydown

protected void Page_Load(object sender, EventArgs e)
{
if (Session["uid"] == null)
{
Response.Redirect("Login.aspx");
}
adm = new Admin();
ID = Request.QueryString["ID"];
}

Here i am getting audio id on page load and this id should be retrived and passed to the newly opened tabs in browser,by passing in this way can i control the audio from multiple tabs using keydown

aspx code-

<asp:TemplateField HeaderText="Play Audio File" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Center" >
<ItemTemplate>
<audio controls="controls" id="player">
<source src='<%# Eval("audio") %>' />
your browser does not support the audio element.</audio>
</ItemTemplate>
</asp:TemplateField>

 
 

 

Posted on Sep 16, 2016 04:05 AM Modified on on Sep 16, 2016 04:06 AM
kavithav says:
queryString["ID"]

 Replace thew above with the below.

queryString["Id"]

Since in querystring the parameter is "Id" not "ID".