B
bvly
I'm not sure if this is what you are trying to do, but I
was able to get an alert box from a datagrid by using a
TemplateColumn and ItemTemplate with a button to call a
function:
<script language="JavaScript">
function TestGridCall(src,args){
alert("Hello" + event.srcElement.name);
}
</script>
<asp:TemplateColumn>
<ItemTemplate>
<input type="button" name="xx" nclick="TestGridCall
()"/>
</ItemTemplate>
</asp:TemplateColumn>
You'd have to explicitly create the columns.
was able to get an alert box from a datagrid by using a
TemplateColumn and ItemTemplate with a button to call a
function:
<script language="JavaScript">
function TestGridCall(src,args){
alert("Hello" + event.srcElement.name);
}
</script>
<asp:TemplateColumn>
<ItemTemplate>
<input type="button" name="xx" nclick="TestGridCall
()"/>
</ItemTemplate>
</asp:TemplateColumn>
You'd have to explicitly create the columns.