TreeView control not working with SSL

T

Thomas Connolly

Can anyone tell me how I can get the Internet Explorer
TreeView control to work in https (SSL). It won't
render. It gives an error message saying "The data at the
root level is invalid".

Thanks in advance,
Thomas
 
T

Thomas Connolly

This s the rest of the code :p

for ( int Count=0; Count < aDataSet.Tables[0].Rows.Count;
Count++){
aTreeNode = new TreeNode();
aTreeNode.Checked = false;
aTreeNode.Expandable = ExpandableValue.Auto;
aTreeNode.DefaultStyle= aCss;
aTreeNode.HoverStyle=HCss;
aTreeNode.SelectedStyle=SCss;
// Get data from DataSet
aTreeNode.Text = aDataSet.Tables[0].Rows[Count]
[Constants.C_FAQ_QUESTION_COLUMN_NAME].ToString();
// Set Icon to be display
aTreeNode.Type = Constants.C_FAQ_FOLDER_ICON_NAME;
// Creathe the child node
// the child node is the answer to the question.
// Get Data from the DataSet and if is greather
than C_MAX_SIZE_STR, then insert a
// return character, so its going to have multiple
lines.
lines = Util.BreakString(aDataSet.Tables[0].Rows
[Count][Constants.C_FAQ_ANSWER_COLUMN_NAME].ToString(),
Constants.C_MAX_SIZE_STR);
aChildNode = new TreeNode();
aChildNode.Checked = true;
aChildNode.Text = lines;
aChildNode.DefaultStyle = CCss;
aChildNode.HoverStyle=HCCss;
aChildNode.SelectedStyle=SCCss;
// Set Icon to be Display
aChildNode.Type=Constants.C_FAQ_FILE_ICON_NAME;
// Add Child to Parent
aTreeNode.Nodes.Add( aChildNode );
// Add Parent to the tree
FAQTreeView.Nodes.Add( aTreeNode );
}
}

-----Original Message-----
This is the code that loads the Treeview :

private void LoadData(){
TreeNode aTreeNode;
CssCollection aCss= new CssCollection();
CssCollection HCss= new CssCollection();
CssCollection SCss = new CssCollection();
// Css for child nodes not selected
CssCollection CCss = new CssCollection();
// Css for child nodes mouse over
CssCollection HCCss = new CssCollection();
//Css for child nodes selected (Selected Child Css)
CssCollection SCCss = new CssCollection();
Utilities Util = new Utilities();
string lines;

DataSet aDataSet = new DataSet();
aDataSet = ProviderService.getFaqsConstants.C_FAQ_LIST);
// This is how is going to look the Treeview Node
// when is not selected
aCss.Add("background","#d6d3c6");
aCss.Add("color","blue");
aCss.Add("font-name","verdena bold");
aCss.Add("font-size","12pt");
// This is how the child Treeview Node will look
// when not selected
CCss.Add("background","#d6d3c6");
CCss.Add("color","purple");
CCss.Add("font-name","verdena bold");
CCss.Add("font-size","12pt");
// This is how is going to look the Treeview Node
// when the Cursor is Over.
HCss.Add("color","blue");
HCss.Add("background","#d6d3c6");
HCss.Add("font-size","12pt");
HCss.Add("text-decoration","underline");
HCss.Add("font-name","verdena bold");
// This is how the child treeview Node will look
// onMouseOver
HCCss.Add("color","purple");
HCCss.Add("background","#d6d3c6");
HCCss.Add("font-size","12pt");
HCCss.Add("font-weight","bold");
HCCss.Add("text-decoration","underline");
HCCss.Add("font-name","verdena bold");
// This is how is going to look the Treeview Node
// when is selected
SCss.Add("color","blue");
SCss.Add("font-name","verdena bold");
SCss.Add("font-size","12pt");
SCss.Add("background","#d6d3c6");
// this is how the child tree view node will look
// when selected
SCCss.Add("color","purple");
SCCss.Add("font-name","verdena bold");
SCCss.Add("font-size","12pt");
SCCss.Add("background","#d6d3c6");

TreeNode aChildNode;
// Populate the Treeview
for (int Count=0;Count<aDataSet.Tables[0].Rows.Count;
Count++){
aTreeNode = new TreeNode();
aTreeNode.Checked = false;
aTreeNode.Expandable = ExpandableValue.Auto;
aTreeNode.DefaultStyle= aCss;
aTreeNode.HoverStyle=HCss;
aTreeNode.SelectedStyle=SCss;
// Get data from DataSet
aTreeNode.Text = aDataSet.Tables[0].Rows[Count]
[Constants.C_FAQ_QUESTION_COLUMN_NAME].ToString();
// Set Icon to be display
aTreeNode.Type = Constants.C_FAQ_FOLDER_ICON_NAME;
// Creathe the child node
// the child node is the answer to the question.
// Get Data from the DataSet and if is greather
// than C_MAX_SIZE_STR, then insert a
// return character, so its going to have multiple
// lines.
lines = Util.BreakString(aDataSet.Tables[0].Rows
[Count][Constants.C_FAQ_ANSWER_COLUMN_NAME].ToString(),
Constants.C_MAX_SIZE_STR);
aChildNode = new TreeNode();
aChildNode.Checked = true;
aChildNode.Text = lines;
aChildNode.DefaultStyle = CCss;
aChildNode.HoverStyle=HCCss;
aChildNode.SelectedStyle=SCCss;
// Set Icon to be Display
aChildNode.Type=Constants.C_FAQ_FILE_ICON_NAME;
// Add Child to Parent
aTreeNode.Nodes.Add( aChildNode );
// Add Parent to the tree
FAQTreeView.Nodes.Add( aTreeNode );
}
}

-----Original Message-----
Hi

can you post your code???

regards
m aamir maniar

.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top