S
sck10
Hello,
I have 3 objects:
LinkButton
GridView
FormView
The LinkButton is used to open the FormView in Insert mode.
The GridView provides a list of products. When the "Select" link is
clicked, it opens the record in the FormView to read and edit.
When you click the select link on the GridView, it becomes invisible and the
FormView becomes visible.
When you cancel or insert a new record in the FormView, the GridView and
LinkButton becomes visible and the FormView is invisible.
The problem that I was having was that if you did the following:
1. click on the GridView select link to open the FormView.
2. Click the Cancel link in the FormView to close it.
3. Click the LinkButton to open the FormView in Insert Mode.
4. Click the Cancel link in the FormView to close it.
5. (step 1) click on the GridView select link to open the FormView.
The FormView stays invisible. When I ran debugging, At step 5, it stepped
through to: fvDetail_PreRender method.
To get the FormView (fvDetail) to show, I had to databind the FormView again
at the gvSearchList_SelectedIndexChanged method. This works, but it makes
my page jump.
My question is why do I have to re-bind the FormView at step 5, and why
would the fvDetail_PreRender method get fired again?
Thanks,
sck10
I have 3 objects:
LinkButton
GridView
FormView
The LinkButton is used to open the FormView in Insert mode.
The GridView provides a list of products. When the "Select" link is
clicked, it opens the record in the FormView to read and edit.
When you click the select link on the GridView, it becomes invisible and the
FormView becomes visible.
When you cancel or insert a new record in the FormView, the GridView and
LinkButton becomes visible and the FormView is invisible.
The problem that I was having was that if you did the following:
1. click on the GridView select link to open the FormView.
2. Click the Cancel link in the FormView to close it.
3. Click the LinkButton to open the FormView in Insert Mode.
4. Click the Cancel link in the FormView to close it.
5. (step 1) click on the GridView select link to open the FormView.
The FormView stays invisible. When I ran debugging, At step 5, it stepped
through to: fvDetail_PreRender method.
To get the FormView (fvDetail) to show, I had to databind the FormView again
at the gvSearchList_SelectedIndexChanged method. This works, but it makes
my page jump.
My question is why do I have to re-bind the FormView at step 5, and why
would the fvDetail_PreRender method get fired again?
Thanks,
sck10