469,609 Members | 1,130 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Formview Problems

Hello,

This problem is really frustrating to me. I have a FormView on my page
where I do all of the binding programatically. In other words, I don't
use a datasource control but I bind to the DataSource property. I have
defined an ItemTemplate which is necessary that has only a single link
button with a command of "New." I also have defeined an
InsertItemTemplate with two link buttons with command names of "Insert"
and "Cancel", and various other controls to edit the values I need to.
I have overrode the ModeChanging event to programatically change the
formview mode by calling the ChangeMode method. If I don't override
this function, the ASP. NET infrastructure throws and exception telling
me that I have to override it. Now, when I press the Cancel link
button when in insert mode, the formview DOES NOT revert back to the
default mode, which is readonly, and contains the single link button
with a command name of "New." If I press it again, it does. In other
words, I have to press it twice in order for it to revert back to the
correct mode.

I think there is some sort of bug in the form view control and this is
extremely frustrating because there is no help with respect to this
anywhere.

I hope a MSFT MVP reads this message, because these things should be
easily able to be coded and shouldn't cause any problems.

Hammad

Jan 6 '06 #1
0 1256

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jéjé | last post: by
reply views Thread by Metal2You | last post: by
2 posts views Thread by Islamegy® | last post: by
reply views Thread by MRW | last post: by
2 posts views Thread by sck10 | last post: by
2 posts views Thread by Phil Sandler | last post: by
reply views Thread by =?Utf-8?B?TGFkaXNsYXYgTXJua2E=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.