Forum Discussion
Raymond_Morris_
Jul 25, 2006Nimbostratus
Need a constructor for C# web page?
I've been working with the code from the video example of the simple iControl app (Nice job, Joe. You are a rock star.) I'm trying to use C to write a .NET web page to show a read-only view. Since thi...
Raymond_Morris_
Jul 27, 2006Nimbostratus
Thanks Joe,
I was able to get around this by by making the changes you suggested, and also changing the loop to identify a new listitem this way:
for(int i=0; i{
lb_nodes.Items.Add(new ListItem(
node_defs[ i ].address + ":" +node_defs[ i ].port,
Convert.ToString(state[ i ])));
}
Now, I am getting erros when compiling that complain of " Cannot convert type 'BigIP1.Node.ITCMCommonIPPortDefinition[]' to 'string' " in this code block (borrowed from another thread in this forum...):
UInt64 build64(BigIP1.Node.ITCMLocalLBNode value)
{
return ((string)value.get_node_server_list()<<32)|(string)value.low;
}
Without using the above block, I get the same error in this line:
Node.ITCMCommonIPPortDefinition [] node_defs = node.get_node_server_list();
I've tried other methods, but get the same type conversion errors.
Thanks,
Ray
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects