Click here to Skip to main content
15,918,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm developing a kind of framework that will work in web and win, so I have this interface:

public interface IViewsManager
{
    ...
    void ShowMessage();
    ...
}


The structure is like the following:
1) UI.Common
   a) IViewsManager
2) UI.Win
   a) ViewsManagerWin
3) UI.Web
   a) ViewsManagerWeb
4) UI.Controls
   a) PopupControlWin
   b) PopupControlWeb
5) Web Application

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


And I have the implementation for win that call a popup control from another dll. My problem is when I try to implement it for web enviroment, I have to call a popup control from another dll, and I would like to show the popup and the web page disables with a gray layer, and I don't know how to do it.

Please, any help will be appreciated. Thanks in advance.
Posted
Updated 17-May-10 3:50am
v2

1 solution

The problem that you are facing is that showing a popup window in a web environment is not triggered from .NET code. It's actually triggered from javascript, so your logic is going to have to be on the client side in a javascript object.

If you want to show a popup, then I'd suggest that you need to look into using jQuery which has many handy popup utilities available[^].
 
Share this answer
 
Comments
ArielGonzales 17-May-10 9:32am    
Thanks for the answer. I think theres is a way to create controls from code behind and add it to the page, is that right? I'm trying to do something like that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900