S
Santosh
Dear all i want to call javascript function for asking user to conform
about specific action
i am writting following code but when i am click on update & cancel
same function is called
so please tell me solution behind them.
i want to call java script function on only update button
public void SetUpClientValidation(object sender, DataGridItemEventArgs
e)
{
if(e.Item.ItemType == ListItemType.Edit)
{
e.Item.Cells[3].Attributes.Add("OnClick","JavaScript:return
ConformUpdateInformation();");
}
function ConformUpdateInformation()
{
return confirm("Are you sure to Update records?");
}
Help will be apreciated
about specific action
i am writting following code but when i am click on update & cancel
same function is called
so please tell me solution behind them.
i want to call java script function on only update button
public void SetUpClientValidation(object sender, DataGridItemEventArgs
e)
{
if(e.Item.ItemType == ListItemType.Edit)
{
e.Item.Cells[3].Attributes.Add("OnClick","JavaScript:return
ConformUpdateInformation();");
}
function ConformUpdateInformation()
{
return confirm("Are you sure to Update records?");
}
Help will be apreciated