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.

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!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.