Re: Usercontrols not being VISUALLY updated

Tech-Archive recommends: Fix windows errors by optimizing your registry



Oh by the way, all these controls are within a MASTER page. I wonder if
that matters...

"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:%23QwIzWOuIHA.1316@xxxxxxxxxxxxxxxxxxxxxxx
If I do this...

CType(FormView1.FindControl("ucToMon"), common_ucTimeSelect).GetWholeTime

I DO see that the control should have a time of "2:02 PM". But visually
it does not.

Is this because the usercontrols have the same name in the various
templates?

"Rain" <me@xxxxxxxxxxx> wrote in message
news:OmnR0FOuIHA.3716@xxxxxxxxxxxxxxxxxxxxxxx
What happens if you manually set a text field on one of the controls in
the page's pre-render event. Does the change get reflected ?

If not, does it get reflected if you do the same for the user control ?

Take some basic steps to see where this is falling down.




"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:e4bMRRFuIHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
I have some user controls that are inside a formview control. I use the
usercontrols in the EditItemTemplate, ItemTemplate and the
InsertItemTemplate of the formview. In a 3 templates the user controls
have the exact same name (uc1, uc2, uc3).

In my formview_modechanging even I am trying to autopopulate the user
controls, if data exists. I debug the code and I can see the before and
after results of the text fields changing etc... in each user control.
It seems to work fine.

But, when the code finishes and the form is shown they are still
untouched/empty.

Any ideas what could be wrong?

Thanks.







.



Relevant Pages

  • How to keep cursor within the scope of a custom user control ?? Got it to work, kind of.
    ... I created a frmMain ArrayList of the user controls hosted by frmMain. ... the cursor still jumped from the selected user control to ... frmMain when I tabbed past the last textbox on the user control. ...
    (microsoft.public.dotnet.languages.csharp)
  • How do you directly send messages / events to controls?
    ... each textbox, and these leave events update a data structure which is ... I have a user control, which has a FlowLayout Panel which has other user ... The user controls in the panel are mostly just visual ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Cannot remove a user control from the toolbox
    ... Unless the toolbox will allow you to remove the item from the context menu ... (which I doubt, as "Delete" is normally disabled for user controls), I'm ... I tried to remove the user control from the toolbox (thinking I'd ... >DFType wdf; ...
    (microsoft.public.vstudio.development)
  • Cannot remove a user control from the toolbox
    ... I'm having a devil of a time with VS "losing" my user controls from forms. ... problem was probably that VS had somehow lost it's link to the user control. ... I tried to remove the user control from the toolbox (thinking I'd re-add ... DFType wdf; ...
    (microsoft.public.vstudio.development)
  • Re: How to Prevent Mouse Movement and Clicks From Reaching Control
    ... > This will keep all of your controls from receiving any mouse messages. ... the user control has a check box on ... >> Is there a way that I can simulate the design mode effect of the VS IDE, ... >> whereupon the form should behave normally. ...
    (microsoft.public.dotnet.languages.vb)