or
| IAsyncResult beginLoad(Object sender, EventArgs e, AsyncCallback cb, object state) |
| { |
| return loadActivityDataAsync(cb, state); |
| } |
| private void loadActivityData() |
| { |
| DateTime startDate = radSched.VisibleRangeStart; |
| //6 veckor |
| DateTime endDate = radSched.VisibleRangeEnd; |
| //Om sista veckan är helt utanför månaden |
| actList = Activity.getActivities(Master.DB, Master.AresUser.UserID, startDate.AddMonths(-1), endDate.AddMonths(1), cbxShowCompleted.Checked); |
| if (actList != null) |
| { |
| string[] str = new string[actList.Count]; |
| bool hasCompanies = false; |
| for (int i = 0; i < str.Length; i++) |
| { |
| hasCompanies = true; |
| str[i] = actList[i].Company_Entityid.ToString(); |
| } |
| if (hasCompanies) |
| companies = Master.DB.executeDataTable("SELECT * FROM company WHERE author_companyid = " + Master.AresUser.CompanyID + " AND entityID IN (" + string.Join(",", str) + ")"); |
| else |
| companies = new DataTable(); |
| //lblTest.Text = "Start: " + DateTime.Now.ToLongTimeString(); |
| } |
| } |
| private void EndLoadActivityData(IAsyncResult res) |
| { |
| radSched.Rebind(); |
| //lblTest.Text = "Stop: " + DateTime.Now.ToLongTimeString() + " Items: " + actList.Count; ; |
| } |
| private delegate void GenericDelegate(); |
| private IAsyncResult loadActivityDataAsync(AsyncCallback cb, object state) |
| { |
| GenericDelegate gd = loadActivityData; |
| return gd.BeginInvoke(cb, state); |
| } |
| PageAsyncTask task = new PageAsyncTask(beginLoad, EndLoadActivityData, null, null); |
| Page.RegisterAsyncTask(task); |

<
TelerikWebControls:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false"/>
generates this error:
document type does not allow element "title" here
… class="Telerik_stylesheet" /><title>
So there is a title tag added after the Telerik link, why?
The next error comes from this line:
<a id="OKbtn_{0}" onclick="$find('{0}').callBack(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"
class="radwindowbutton" href="javascript:void(0);" >
The error is this:character "{" is not allowed in the value of attribute "id"
<a id="OKbtn_{0}" onclick="$find('{0}').callBack(this.parentNode.parentNode.
How can I solve these two errors?
Thanks!
| <span id="RadGrid1_ctl00_ctl03_ctl01_ChangePageSizeLabel" class="rgPagerLabel">Page size:</span> |
| <div id="RadGrid1_ctl00_ctl03_ctl01_PageSizeComboBox" class="RadComboBox RadComboBox_Default " style="width:46px;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;margin-left:-1px;margin-right:-1px;white-space:normal;"> |