Main Site Documentation

Load variable's value in Glide controller


#1

Hi! I have some variables in my app (strings and integers), and a GUi designed in Glide. What I want to do is load this variable’s value in my Glide controllers.

For example, I have an integer whose value is 20, and I want one of my textbox have the same value. This is what I’ve tried:

Dropdown portName = (Dropdown)MFSettings.portName;
TextBox httpPort = (TextBox)MFSettings.httpPort;

portName is a string and httpPort is an integer.

VS2010 tell me that this types can’t be converted. Any idea about how can I do this??

Thaks!!!


#2

Solved using this:

httpPort.Text = MFSettings.httpPort.ToString();