On Jun 25, 11:06 pm, (e-mail address removed) wrote:
Option one on item data bound add a onclick attribute to the button
and in onclick javascript function
just use javascript to open new window... or do what ever you like...
option two ... on itemcommad grap the id of the row... and do a
page.registerstartupscript to inject a javascript which will
open a new window... or perhaps redirect
Thanks
Masudurhttp://munnacs.110mb.com
I am doing like this but it doesn't work. It is givinf me Text of
button control ""
protected void GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
{
if (e.CommandName == "redirect")
{
// Convert the row index stored in the CommandArgument
// property to an Integer.
int index = Convert.ToInt32(e.CommandArgument);
// Get the Text of the ID button control
string id2 = GridView1.Rows[index].Cells[2].Text;
Session["TCKid"] = id2;
Response.Redirect("tickets_View.aspx");
}
}