sasu kp
could u please send me to detailed code about popup window in ASP.NET?
By sasu kp in ASP.NET on Jul 28 2006
  • Jul, 2006 29

    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.

    • 0
  • Ajay
    Jul, 2006 29

    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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS