This is a migrated thread and some comments may be shown as answers.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

2 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Salman
Top achievements
Rank 1
Salman asked on 25 Feb 2011, 10:15 AM
Hi people
when i use this code i get erro

 

 

function SetCalendarStartTime() {

 

 

Calendar.setup({

 

inputField:

 

"<%= txtDate.ClientID %>",

 

 

button:

 

"date_btn_1",

 

 

ifFormat:

 

"%Y/%m/%d",

 

 

dateType:

 

'jalali',

 

 

weekNumbers:

 

false

 

});


i replace  "<%= txtDate.ClientID %>" with  "<%#  txtDate.ClientID %>", and in codebehind  put Page.DataBin
but it not resolve .i use radCodeBlock but it not resolve
please help to me

2 Answers, 1 is accepted

Sort by
0
Vinkel
Top achievements
Rank 1
answered on 25 Feb 2011, 10:44 AM
Salman, use RadCodeBlock or RadScriptBlock for all codes that have server block, this explained here. Then no errors should be.

-J
0
Salman
Top achievements
Rank 1
answered on 25 Feb 2011, 05:18 PM
thank you a lot Vinkel  for respone.my problem is resolved
Tags
General Discussions
Asked by
Salman
Top achievements
Rank 1
Answers by
Vinkel
Top achievements
Rank 1
Salman
Top achievements
Rank 1
Share this question
or