Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with New button
Message
 
À
21/07/2008 16:40:32
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01332870
Message ID:
01332957
Vues:
9
Tim,
You're quick. I went back to update my response and you beat me to it. I have a little more information. It is adding the new row but it is not refreshing the fields on the screen. Isn't that part of the default behavior? I added a refresh of the tab page. Do I need to do an explicit refresh of each control?

I haven't changed anything on the load. The code that is being called from the button click method simply goes through each control and enables or disables it based on whether the form is in edit mode or not.

Thanks.

>>Tim,
>>I want to use the default behavior if possible. I modified my click method as shown below but it just ignores the base.OnClick line. I set a break on the base.OnClick line but it didn't follow that code anywhere. Did I type something wrong? Thanks.
>>
>>
>>         private void btnNew_Click(object sender, EventArgs e)
>>        {
>>            base.OnClick(e);
>>            this.ChangeEditStatus(((mmButton)sender).Parent, "Edit");
>>        }
>>
>>
>
>I just tried this and it worked for me. Is your button a mmButtonNew from the mm framework? If you add the debug references for the framework you can step into the mm code when that line executes. It is easy to add the references, just follow the simple steps in the Advanced Topics section in the dev guide.
>
>Also you may uncover if the other code you added is causing the issue. What did you put in the load event when this broke? If you comment it back out does it work again?
>Tim
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform