Hi
I have a linkbutton on page.
When a user click on the button in click event i have this:
Private Sub lnkAddLink_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles lnkAddLink.Clic k
Dim strScript As String
strScript = "<script>window .open('AddHelpD eskTicket.aspx?
dl=TextBox1&ID= " + btnUpdate.ToolT ip.ToString.Sub string(18)+
"','cal','width =300,height=600 ,left=270,top=1 00')"
strScript += "</" + "script>"
RegisterClientS criptBlock("End User", 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.QuerySt ring("textbox")
IDOP.Value = Request.QuerySt ring("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.InsertUp dateSql(Configu rationSettings. AppSettings & "User
ID =" & Session("sUserI D") & ";password= " & Session("sGeslo "), strSQL) =
False Then
Response.Redire ct("GlobalError .aspx")
Else
Dim strScript As String =
"<script>window .opener.documen t.forms(0)." + TEXTBOX.Value + ".value =
'"
strScript += lnkB
strScript += "';self.close() "
strScript += "</" + "script>"
RegisterClientS criptBlock("any thing", 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
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!