JavaScriptProblem
Hi
I have a linkbutton on page.
When a user click on the button in click event i have this:
Private Sub lnkAddLink_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkAddLink.Click
Dim strScript As String
strScript = "<script>window.open('AddHelpDeskTicket.aspx? dl=TextBox1&ID=" + btnUpdate.ToolTip.ToString.Substring(18)+ "','cal','width=300,height=600,left=270,top=10 0')"
strScript += "</" + "script>"
RegisterClientScriptBlock("EndUser", strScript)
End Sub
This work fine and i open another page where user enter some text in text box and click the button.
In the load event of another page i have this:
If Not IsPostBack Then
TEXTBOX.value = Request.QueryString("textbox")
IDOP.Value = Request.QueryString("ID")
End If
When the user click the buttno on the other page i have this:
Dim strSQL As String
Dim clsSQL As New SQL
Dim lnkB As String
lnkB = "something"
strSQL = "UPDATE OPOMBE SET PARTNER ='" & lnkB & "' " _
& " WHERE KLJUC =" & IDOP.Value
If clsSQL.InsertUpdateSql(ConfigurationSettings.AppSe ttings & "User ID =" & Session("sUserID") & ";password=" & Session("sGeslo"), strSQL) = False Then
Response.Redirect("GlobalError.aspx")
Else
Dim strScript As String = "<script>window.opener.document.forms(0)." + TEXTBOX.Value + ".value = '"
strScript += lnkB
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock("anything", strScript)
End If
So, if the update was succseded i close the other page and in the TextBox1 in the first page will be entered lnkB.
This work OK.
But, now i need some code to be done when the other page is closed.
Actualy i want to rebind a datalist control on the fist page.
Is it posible and how?
Thanks a lot
Alex
|