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 14:58:35
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01451763
Message ID:
01451862
Views:
25
Frank,
I haven't done much work with web applications but, if your textbox is bound to data, I think what you are looking for is *this.BindControl(ControlName)*. Otherwise, you may have to do a conversion to text to display the date from the calendar control in a textbox control.

>Bob,
>
>yes, it's a web application. What I am trying to do is display a date in a textbox and let the user change the date by using the mmCalendar. I have got it to work, almost. I set the value of the text box to the mmCalendar.SelectedDate when the date is changed in the calendar. However, the calendar does not display the SelectedDate even though when I display the calendar I set the SelectedDate to the appropriate date. Any ideas what I need to do to get that to display properly?
>
>>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?
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform