How can i modify this JavaScript code and pass two values that is admno and student name to webpage
Please help
JavaScript
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
    $("[id*=lnkView]").click(function () {
        var rowIndex = $(this).closest("tr")[0].rowIndex;
        window.open("Popup.aspx?rowIndex=" + rowIndex, "Popup", "width=350,height=100");
    });
});
</script>
here is my complete code
HTML
<div>
    <asp:Panel ID="Panel1" runat="server" Height="497px">
        <table class="auto-style1">
            <tr>
                <td class="auto-style2">Term</td>
                <td class="auto-style2">
                    <asp:DropDownList ID="ddlterm" runat="server">
                        <asp:ListItem>NONE</asp:ListItem>
                        <asp:ListItem>I</asp:ListItem>
                        <asp:ListItem>II</asp:ListItem>
                        <asp:ListItem>III</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="auto-style2">Class</td>
                <td class="auto-style2">
                    <asp:DropDownList ID="Classdll" runat="server" AutoPostBack="True" DataSourceID="dclass" DataTextField="CLASS" DataValueField="CLASS">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="dclass" runat="server" ConnectionString="<%$ ConnectionStrings:SMIS2022ConnectionString %>" SelectCommand="SELECT [CLASS] FROM [CLASS]"></asp:SqlDataSource>
                </td>
                <td class="auto-style2">Stream</td>
                <td class="auto-style4">
                    <asp:DropDownList ID="Streamddl" runat="server" AutoPostBack="True" DataSourceID="Stremdd" DataTextField="Stream" DataValueField="Stream" Style="margin-left: 0px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="Stremdd" runat="server" ConnectionString="<%$ ConnectionStrings:SMIS2022ConnectionString %>" SelectCommand="SELECT [Stream] FROM [Streamdata]"></asp:SqlDataSource>
                </td>
                <td class="auto-style4">
                    <asp:Button ID="Button1" runat="server" Text="Go" />
                </td>
                <td class="auto-style4">
                    <asp:Button ID="Button3" runat="server" Text="Save Data" />
                </td>
                <td class="auto-style4">
                    <asp:Button ID="Button2" runat="server" Text="Back To Menu" />
                </td>
                <td class="auto-style3">
                    Hide Class Teacher
                    <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" />
                     Hide Headteacher
                    <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" />
                </td>
            </tr>
            <tr>
                <td class="auto-style2" colspan="10">
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="TeachersCommentsGrd" runat="server" AutoGenerateColumns="False" Width="630px" AllowPaging="True" PageSize="28">
                                <Columns>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" Enabled="False" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="admno">
                                        <ItemTemplate>
                                            <asp:TextBox ID="Admno" runat="server" Text='<%# Eval("admno") %>' ReadOnly="True" Height="16px" Width="83px"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Student Name">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="Names" runat="server" Text='<%# Eval("name") %>' ReadOnly="True"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Teachers Comments">
                                        <ItemTemplate>
                                            <asp:TextBox ID="TeacherComments" runat="server" Height="16px" Width="277px" OnTextChanged="TeacherComments_TextChanged" Text='<%# Eval("classteachercomment") %>' CssClass="TeacherComments" onkeyup="enter(this)" AutoPostBack="True"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="HeadTeachers Comments">
                                        <ItemTemplate>
                                            <asp:TextBox ID="Headcomments" runat="server" Height="17px" Width="288px" OnTextChanged="Headcomments_TextChanged" Text='<%# Eval("headcom") %>' CssClass="Headcomments" onkeyup="enter(this)" AutoPostBack="true"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Promotion ">
                                        <ItemTemplate>
                                            <asp:TextBox ID="Promotion" runat="server" Text='<%# Eval("Promoted") %>' CssClass="Promotion" onkeyup="enter(this)" AutoPostBack="true" OnTextChanged="Promotion_TextChanged"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:HyperLink ID="lnkView" Text="View" NavigateUrl="javascript:;" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <asp:HiddenField ID="hfRowIndex" runat="server" />
                            <asp:HiddenField ID="hfCellIndex" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </asp:Panel>
</div>