By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,474 Members | 3,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,474 IT Pros & Developers. It's quick & easy.

Referring to a textbox within a web control within an aspx

P: n/a
Hi, I have a web control (ucTickets) in an page (MasterPage).
From ucTickets, I open a calendar popup window to which I pass a
control.value (which textbox to fill with the date).

I've always used a change event in the calendar aspx as follows:

Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As

Dim strScript As String = "<script>window.opener.document.Form(0)." +
control.Value + ".value = '"
strScript += calDate.SelectedDate.ToString("MM/dd/yyyy")
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock("anything", strScript)

End Sub

I know the problem is with the reference back to the (window.opener)
form, but don't know how to fix it. The textbox now resides in a control
in the form. I've tried different variations with no luck.

Any suggestions much appreciated.

Thanks, Kat

*** Sent via Developersdex ***
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.