> On Jun 25, 11:06 pm, bba...@yahoo.com wrote:
>
[quoted text clipped - 19 lines]
> 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");
}
}
Masudur - 25 Jun 2007 19:14 GMT
On Jun 26, 12:04 am, bba...@yahoo.com wrote:
> > On Jun 25, 11:06 pm, bba...@yahoo.com wrote:
>
[quoted text clipped - 42 lines]
> }
> }
hi....
do assign datakey.... field
and in row command access the datakey in following way...
GridView1.DataKeys[index].Value
or in item databound add a attribute to the button assigning the id...
buttonselect.attribute.add("dataid", 23) where 23 is your
itemdatabound's dataid...
thanks
masudur
http://munnacs.110mb.com
bbawa1@yahoo.com - 25 Jun 2007 19:34 GMT
> On Jun 26, 12:04 am, bba...@yahoo.com wrote:
>
[quoted text clipped - 58 lines]
>
> - Show quoted text -
Thanks a lot It works