Rodchar,
You can try something like this:
// Grid.RowCommand event handler
void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if ( e.CommandName = "Edit")
{
// Grid is not in edit mode yet Fields from Edit template are
not loaded .
RegisteeRowEditScript();
}
}
void RegisteeRowEditScript()
{
string script = "alert('User clicked Edit');";
Page.ClientScript.RegisterStartupScript(GetType(), 'editclicked',
script, true );
}
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:6E**********************************@microsof t.com...
hey all,
i have a gridview on my web page. when i click to select a row and then
click edit to go into edit mode, as soon as i'm in edit mode i need to run
a
javascript function. what's the best way to attach my function?
thanks,
rodchar