Link to home
Start Free TrialLog in
Avatar of mahpog
mahpog

asked on

Properly reference aspx field in code behind to populate another field

I am using the aspx calendar in a popup (so calendar will be small icon on screen).  the calendar comes up, when the image is clicked. I can select date, and then it errors out. I am it is due to syntax. I am using web froms with a master page and control pages.

I am attaching 2 files. the jpg shows online screen, and jscipt erorr. The 2nd has the code for all three files being used.

I am a newbie to .NET and relearning how to use JavaScript.
window.opener-javascript-error.jpg
PopUp.docx
ASKER CERTIFIED SOLUTION
Avatar of guru_sami
guru_sami
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mahpog
mahpog

ASKER

That did the trick! My gosh, such an easy fix, when you have the expertise!  Thanks!  Is there any good book on jscript/javascript for asp.net? I have been searching for one to read and learn more.
I am not sure of any such book as there isn't really anything different with javascript when using with ASP.NET.
The reason for using <%=TextBox1.ClientID%> was because it's ASP.NET that changes the ID of a field if it's inside masterpage or some other control.
Avatar of mahpog

ASKER

Okay. That is good to know.