By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,474 Members | 3,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,474 IT Pros & Developers. It's quick & easy.

FormView disappears

P: n/a
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
Nov 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Nov 10 '06 #2

P: n/a
Thanks Walter,

I'll put one together...

sck10

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:Su**************@TK2MSFTNGXA01.phx.gbl...
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 (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Nov 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.