0

Hello All,
I have problem in popup page using ajax in asp.net.

I have one P1.aspx page.Onclick event of Hyperlik on P1.aspx How to Popup page P2.aspx(Which is Interface for inserting value in database) using Ajax.

also how to passed parameter using querysting in hyperlink.


Thanks All In advanced.
Wait for Your Reply.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by reach_yousuf
0

Hello All,
I have problem in popup page using ajax in asp.net.

I have one P1.aspx page.Onclick event of Hyperlik on P1.aspx How to Popup page P2.aspx(Which is Interface for inserting value in database) using Ajax.

also how to passed parameter using querysting in hyperlink.


Thanks All In advanced.
Wait for Your Reply.

Hey
check out this code

Private Sub lnkCreate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkCreate.Click
       
        If Not IsNothing(GetCacheData("CreateID")) Then
           
                Dim CreateID As Integer =  GetCacheData("CreateID")
                Dim strScript As String
                strScript = "<script language=Javascript>"
                strScript += "window.showModalDialog ('" & "~\HR_Common\Decisions\p1.aspx?CreateID=" & CreateDecisionID & " ',window,'dialogHeight:640px;dialogWidth:775px;edge: Raised; center: Yes; help: No; resizable: No; status: No');"
                strScript += "</script>"
                Page.RegisterClientScriptBlock("ShowPupup", strScript)
            
        End If
END SUB

Mark as solved if it helps you!!!

Edited by reach_yousuf: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.