473,508 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
0 757

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2250
by: news.planet.nl | last post by:
Dear sir, I got a javascript clendar from plant source code. It is very similiar to the calendar script on expedia.com site. Does any one has experience with calendar script on expedia...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.