c# - Creating Dynamic Menus - calling extern Function -


I need to create a dynamic menu using the extern function, we can consume it anywhere, the following is required :

Please create a dynamic horizontal link menu at the top of the master page, this menu will be displayed on every page. We should be able to set the link on this page from the code behind. The information we want to set is the link text, and the link path (href) is. The idea behind this is that, which application is logged in, and on which pages they are on, there will be different link possibilities. We should make this code reusable. Actually the process of excluding the link will look like this:

  public static extern zero SetDynamicLinks (Control ContainingControl, string [] arLinkTitles, string [] arLinks) {... code .. .}  

We will call a process from the Page_Load of the master page, which will decide which link we need to display, in this process the application will be dependent. Then this process will be called "SetDynamicLinks" process to pass the necessary criteria to make the right link in the container control passed to the caller.

Any help for the above, will be most appreciated thanks in advance.

The question does not seem to be that if you have been asked to do so, Assume that:

It is already a set of peniclinal method developed by someone else and lives in an unmanaged external DLL, so you will use extern to call it. Or, they are telling you that unmanaged DLL is called C ++, in which there may be a setnexic link system and It can be said by others using extran ..


Comments