FormView disappears

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
 
W

Walter Wang [MSFT]

Hi,

For such question, having working code will help us find the root cause
quickly. I believe this is related to state or event order. However,
without actual code, it's difficult to say where is wrong.

Would you please create a simple reproducible project and attach it here or
send it to me directly? Thanks.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,631
Members
45,338
Latest member
41Pearline46

Latest Threads

Top