A
A Lonely Programmer
Hi group,
Consider the following code:
Dim dirinfo As New DirectoryInfo("c:\test")
Dim fileinfo() As FileInfo = dirinfo.GetFiles
Dim fi As FileInfo
For Each fi In fileinfo
TreeView2.Nodes.Add(fi.Name)
Next
If instead of adding nodes to a treeview, i throw in a response.write the following works perfectly fine in an aspx page. However, the same code in an embedded windows control causes the component to not load.
everything else in the component will load if i take that out and throw in random values. I suspect this is a security issue but the fact that it works in an aspx page is throwing me off. Currently i am putting the dll into the directory of the page, will it make any difference if i add it to the GAC? I am so close to something really beautiful. any insight would be appreciated.
Thanks
Steve
Consider the following code:
Dim dirinfo As New DirectoryInfo("c:\test")
Dim fileinfo() As FileInfo = dirinfo.GetFiles
Dim fi As FileInfo
For Each fi In fileinfo
TreeView2.Nodes.Add(fi.Name)
Next
If instead of adding nodes to a treeview, i throw in a response.write the following works perfectly fine in an aspx page. However, the same code in an embedded windows control causes the component to not load.
everything else in the component will load if i take that out and throw in random values. I suspect this is a security issue but the fact that it works in an aspx page is throwing me off. Currently i am putting the dll into the directory of the page, will it make any difference if i add it to the GAC? I am so close to something really beautiful. any insight would be appreciated.
Thanks
Steve