Information générale
Catégorie:
The Mere Mortals .NET Framework
Frank,
This question is not a simple as it seems. First, are we talking about a web application? Since your earlier questions were for a web app, I will assume this is for a web app.
In this case, are you needing a server side or client side refresh? If server side (meaning the value you will be filling into the control comes from the database), then you need to to have a post back to the server. To do this, you will need to set some properties to let this happen (e.g. AutoPostBack = true). Then, if you don't want to have a screen flash, you would want to employ AJAX (another subject that is not that difficult but does require a little time to learn and understand). I use third party controls (from Telerik) which makes alot of this stuff much easier to work with.
If the refresh required does not need a value from the database, then you will need to write client side scripts. Unfortunately, the MM user guide has little (or no) documenation on this. However, I will say that I have my web app in production and do not require any client side scripting if that helps in any way to decide.
If this question is related to a Windows app, then it is my guess that the refresh is similar to FoxPro in that you have 'state' in your applicaiton where as in a web app you don't. I haven't written any Windows apps in MM so I can't say definitively.
I told you this wasn't a simple question. :)
Bob
>Basic questions today :)
>
>What's the equivalent of thisform.txtName.Refresh() in C# using an mmTextBox?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement