Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
FormView+sqldatasource

C#
protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e)
{
    if(condition==false)
    {
        //TODO:Stop updating.
    
    }
}
Posted
Updated 18-Mar-12 15:57pm
v2
Comments
ProEnggSoft 18-Mar-12 21:57pm    
Edit: Formatting corrected - PES

1 solution

Set the Cancel property of FormViewUpdateEventArgs class instance to true as below
e.Cancel = true
 
Share this answer
 
v3
Comments
[no name] 18-Mar-12 22:10pm    
There you go, 5
ProEnggSoft 18-Mar-12 22:15pm    
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900