acko bogicevic

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>'AddHelpDeskTicket.aspx?
dl=TextBox1&ID=" + btnUpdate.ToolTip.ToString.Substring(18)+
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.AppSettings & "User
ID =" & Session("sUserID") & ";password=" & Session("sGeslo"), strSQL) =
False Then
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


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question