c# - Popup control from dll in web page -


I am developing a framework that will work in the web and win, so I have this interface:

  Public Interviews IViewsManager {... Zero ShowMessage (); ...}  

And I have the implementation of the victory which calls popup control to any other DLL. My problem occurs when I try to apply it to the web environment, I have to call the popup control from another DLL, and I would like to show the popup and disable the web page with the gray layer, And I do not know how to do this.

The structure is similar to the following:

  1) UI.Common a) IViewsManager 2) UI.Win A) Visible Magnifier 3) UI.Web a) ViewManagerWeb 4) UI .Controls A) PopupControlWin b) PopupControlWeb 5) Web application  

And from my web application I call IViewsManager.ShowMessage, and depending on the environment it calls the appropiate popup control.

Please, any help would be appreciated. thank you in advanced.

I think you are a little confused ...

You "back Page code can not show control ".

Basically if you want to make a dialog popup, you can do it with" Javascript function on the client side ", the ASPX page code is executed on the back server Being means means you can not do a lot blindly, unless you give it to your host and not another Do not want.

There is another option to present a dialogue and the plugin's form, such as silver lights, flash or page content, has an active x control, then loads itself onto the load

If your understanding of your situation is correct then you are probably trying to load an active X control, and for the reason that this is an active X control load, but is empty (hence it is not actually loaded).

P> The general suspects here are below for registering the active ingredient and security.

Of course I'm just guessing that this is an active X issue.

Just enter ...

It's easy to open a dialog on the web page ...

  & lt; Script & gt; Alert ("Hello World !!!"); & Lt; / Script & gt;  

If you want to take this forward, then you must either present your dialog as HTML content or learn some magic tricks with Javascript.

How will you integrate it to your small structure ... This is a whole other story since your code is a DLL, so you can easily refer it to adequately.

It may be that in your GetwebDialog () method (or whatever you call it), you can pass on the page or element that you want your diwda to be embedded on that page. And just add a new user control example for this.

I find the safest / clean way to go.


Comments