Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
here im doing some chat project ,so i wanted to have a popup when there is a private chat going on .
this project is mainly on session based. so how to get a popup at both the end of users when one user is clicked and the message is sent, so the popup should appear at other end
Posted

Very simply, you can try windows.open(url).

Here are some other examples -
ModalPopup Demonstration[^]

Building Modal Popup using ASP.Net AJAX ModalPopupExtender Control
[^]
 
Share this answer
 
In addition to what Abhinav suggested, here is another helpful approach : chat application using signalr in ASP.NET[^]
 
Share this answer
 
v2
Comments
kishorebt 20-May-14 4:29am    
i cannot do it in signal R.. ive many modifications in that, with those modifications i cannot implement in SIGNALR
Hai u can do like this

XML
<telerik:RadWindow ID="radDelateBMJM" runat="server" VisibleOnPageLoad="false" Height="150px" Title="Message"
                Width="250px" Modal="true" Skin="WebBlue" BackColor="#DADADA" VisibleStatusbar="false" Visible="false" Behaviors="Close">
                <ContentTemplate>

                    <table style="width: 100%;">
                        <tr>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Image ImageUrl="~/Images/Jobs/Help-Support-icon.png" runat="server" />
                            </td>
                            <td align="left" class="tdlabelRight">
                                <asp:Label runat="server" ID="lblDeleteFilter" ForeColor="Black" Text="Do You Want Delete?" Visible="true"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                        </tr>
                        <tr>

                            <td colspan="2" align="center">

                                <div id="divDelete" runat="server" visible="true">
                                    <telerik:RadButton ID="btnDelete" runat="server" Text="Ok" Skin="Sunset" OnClick="btnDelete_Click"></telerik:RadButton>
                                    <telerik:RadButton ID="rbtnBMCancel" runat="server" Text="Cancel" AutoPostBack="false" Skin="Sunset" OnClientClicked="OnClientClicked"></telerik:RadButton>
                                </div>
                            </td>
                        </tr>
                    </table>


                </ContentTemplate>

            </telerik:RadWindow>


in c# ----
on page load
C#
radDelateBMJM.Visible = false;
 radDelateBMJM.VisibleOnPageLoad = false;

where u want open like button click there u make it as
C#
radDelateBMJM.Visible = true;
            radDelateBMJM.VisibleOnPageLoad = true;
 
Share this answer
 
Comments
kishorebt 22-May-14 2:24am    
DO i need to add any services or references... see my problem is it has to be opened at both the sides.. for eg whenever u send messages in facebook then the pop up opens on the other end ... i need help for that..
in Aspx Page

XML
<telerik:RadWindowManager ID="RadWindowManager1" Skin="WebBlue" runat="server" EnableShadow="true">
    </telerik:RadWindowManager>




in C#
RadWindowManager1.RadAlert("MESSAGE What u want display ", 300, 150, "Alert Message", "", "");
 
Share this answer
 
Comments
kishorebt 20-May-14 5:06am    
not only to display ive to fetch and retrieve the data from database.
C#
<asp:hiddenfield id="hdnMpop" runat="server" value="" xmlns:asp="#unknown" />
            <ajax:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="hdnMpop" xmlns:ajax="#unknown">
                                        PopupControlID="Panel1" CancelControlID="img2" BackgroundCssClass="modalBackground"  >
                                    </ajax:modalpopupextender>
                                    
<asp:panel id="Panel1" runat="server" style="width:350px;height:auto;float:left;border: Solid 3px #33628a;background-color:White; display:none;" xmlns:asp="#unknown">

//Do whatever you need

</asp:panel>
 
Share this answer
 
may be or may not be but you can Try to make some user control with all the information required and display them when you want to .
 
Share this answer
 
Comments
kishorebt 22-May-14 3:27am    
i need help in it.. kishorebt11@gmail.com drop me ur mail-id into it.. ill tell my requirements
everyone who are interested to help me..

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