Ana D. 0 Junior Poster in Training

Hi,

I have a FormView where records can be visualized, edited and inserted. When inserting or editing, I have a CancelButton.
In my routine all I have is:

Protected Sub CancelLinkButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        SitemapFormView.ChangeMode(FormViewMode.ReadOnly)
End Sub

When debugging, I could see the routine being called and the mode of the FormView being changed to ReadOnly. However, in the browser the page is still in edit mode and the mode only changes if I click in the CancelButton again.

Any ideas of what's is happening?

Thanks,

Ana

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.