Hi,
I have non master-non templated asp.net page, on which I want to open WebDialogWindow on click of some link. Reference from sample application I am able to show the webdialogwindow on the page but as soon as I add AjaxControlToolKit Calender extender on the page, I am getting error like
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I know this is becuase of $find(
$find(
'<%=WebDialogCreateCustomer.ClientID%>');
<%= %> tag, but by what I should replace this?
Thanks & Regards.
even if i am tried to replace with var
var
dialogWindow = $find("<%# WebDialogCreateCustomer.ClientID%>");
the page appears, but again it fails to find WDW control.
Ok. I got the answer.
May this helps someone.
I was needed only dialogWindow = $find("WebDialogCreateCustomer"); this is suffient to find the control.
Also change TargetControlID of CalenderExtender to some hidden textbox first(which is outside the Templage of WDW), and on pageload change it to required text box control which is in Template tag of WDW.
This works for me.
Thanks.