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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Okay. That is good to know.
ASKER