Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Referring to a textbox within a web control within an aspx

Reply
Thread Tools

Referring to a textbox within a web control within an aspx

 
 
KatB
Guest
Posts: n/a
 
      04-22-2005
Hi, I have a web control (ucTickets) in an asp.net 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
System.EventArgs)

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 http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Control Referring To External Control? lowerbackpain ASP .Net 0 02-19-2009 06:43 PM
Error referring to a template within a template - why? Adam Nielsen C++ 3 10-10-2007 06:30 AM
How to fire off a completely seperate .aspx page from within an .aspx web page. S_K ASP .Net 1 10-02-2007 12:05 AM
How to fire off a completely seperate .aspx page from within an .aspx web page. S_K ASP .Net 0 10-01-2007 10:40 PM
Referring to a textbox within an ItemTemplate VB Programmer ASP .Net 1 11-18-2005 01:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57