2
Reply

could u please send me to detailed code about popup window in ASP.NET?

sasu kp

sasu kp

18y
4.8k
0
Reply

    hi

    i m sending a javascript function for popup window

    use this on client side

    n call it on any click event

    Public Sub PopUp(ByVal url As String)

    Dim popup As String = ""

    'Page.RegisterStartupScript("Popup", popup)

    Page.RegisterStartupScript("Popup", popup)

    End Sub 'PopUp

    Private Sub btnAttach_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAttach.Click

    PopUp("urfoemname.aspx")

    hope this will help u.

    18y
    0

    hi,

    there is no way directly in ASP.NET to open a popup window...u hav to write javascript for that.....

    like i have taken a and then in the .cs file written a javascript code to open a popup window..

    this.HyperLink2.Attributes.Add("onclick", "window.open('/ChangePwdPopup.aspx',null,'height=250, width=500,status= no, resizable= no, scrollbars=no, toolbar=no,location=no,menubar=no ');");

    May this helps....

    Regards

    Ajay