hi
i had button under gridview
and sending value to another page here i could not get the second row column . It is taking only
1st row column only, please check below code
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
ToolTip="M8 Media Educational Directory" GridLines="None"
>
<Columns> <asp:TemplateField >
<ItemTemplate>
<asp:Button ID="btnqueyr" runat="server" Text="Send To Email" onclick="btnqueyr_Click" />
<asp:Label ID="lblmobile" runat="server" Text='<%#Eval("mobile")%>'>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
protected void btnquery_Click(object sender, EventArgs e)
{
for (int i = 0; i < GridView1.Rows.Count; i++)
{
EncodeQuery eq = new EncodeQuery();
Label lblAssId = (Label)GridView1.Rows[i].FindControl("lblmobile");
Response.Redirect("viewmore.aspx?mobile=" + eq.Encrypt (lblAssId.Text));
}
}