Load variable's value in Glide controller

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??


Solved using this:

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