hello,
i was wondering how to attach a js confirm to the following command
e.Row.Cells[3].Attributes["onclick"] =
Page.ClientScript.GetPostBackClientHyperlink(this.gvGrid, "MyCommand$" +
"value123");
... I have this in the RowDataBound of the GridView, it works fine, just
want to attach a js confirmation to it so it can be cancelled before posting
back.
thanks...
bruce barker - 05 Mar 2008 16:29 GMT
try:
e.Row.Cells[3].Attributes["onclick"] = "if (!confirm('do it?')) return
false;" +
Page.ClientScript.GetPostBackClientHyperlink(this.gvGrid, "MyCommand$"
+
"value123");
-- bruce (sqlwork.com)
> hello,
>
[quoted text clipped - 9 lines]
>
> thanks...
tiptechno - 06 Mar 2008 15:06 GMT
Yes, that works. Thank you very much bruce :-)
> try:
>
[quoted text clipped - 19 lines]
> >
> > thanks...