How to get URL from GridView using javascript?
<pre><code>&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="SqlDataSourceVideo" &gt;
    &lt;Columns&gt;
        &lt;asp:BoundField DataField="VideoUrl" HeaderText="VideoUrl" 
            SortExpression="VideoUrl" /&gt;
        &lt;asp:BoundField DataField="ID" HeaderText="ID" 
            SortExpression="ID" InsertVisible="False" ReadOnly="True" /&gt;
        &lt;asp:BoundField DataField="Video_Name" HeaderText="Video_Name" 
            SortExpression="Video_Name" /&gt; 
        &lt;asp:CommandField ShowDeleteButton="True" /&gt;
    &lt;asp:TemplateField&gt;
        &lt;ItemTemplate&gt;
        &lt;asp:Button ID="ButtonPlay" runat="server" CommandName="Play"
            CommandArgument='&lt;%# DataBinder.Eval(Container.DataItem,"VideoUrl") %&gt;'
            Text="Play" OnClientClick="playVideo()"&gt;&lt;/asp:Button&gt;
</code></pre>

<p><strong>JavaScript code for play URL:</strong></p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
    function playAudio(URL){
        if (URL != "")
        {
            document.Player.filename = URL;
            document.getElementsByName("mediaPlayer").src=URL; 
            document.getElementsByName("mediaPlayer").play();
            document.Player.showcontrols = true;
            document.Player.height = 40;
            document.Player.play();    
        }
    }
&lt;/script&gt;
</code></pre>

<p>Can anyone tell me how to get URL value from gridview? Thanks in advance.</p>
