Visible Tab List or XML data

Feb 26, 2011 at 1:05 PM

I make WebMethod GetTabs

        [WebMethod(Description = "Get tabs"), SoapHeader("IWebCredentials")]
        public List<string> GetTabs(int MyPortal)
            List<string> tmp = new List<string>();
            TabController controller = new TabController();
            TabCollection tabs = controller.GetTabsByPortal(MyPortal);
            IDictionaryEnumerator hs = tabs.GetEnumerator();
            while (hs.MoveNext())
                TabInfo tab = (TabInfo)hs.Entry.Value;
            return tmp;

How I can make that I get only tabs visible for specific user pased over SoapHeader and not all tabs?

Or / and how to get XML data of visible menu structure for user?

Feb 26, 2011 at 2:13 PM

This appears to be a question about getting information from the DNN API rather than an IWeb question?

The forums on DotNetNuke might be a better place to ask:

also when you say "pased over SoapHeader", "SoapHeader" is only for passing paramteres to your IWeb methods, not back out to your calling program. "tmp" is the only thing you can return.

Feb 26, 2011 at 2:41 PM

Thanks for respond. I already post the question there:

But no response yet.

I don't speak english well and becouse of this is my question over "SoapHeader" is strange...

Thanks again for always quick response and great and useful IWeb.