Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell an mmControl to update its display?
Message
 
To
01/03/2010 10:53:36
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01451763
Message ID:
01451773
Views:
35
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform