Hello,
By the way, great controls, just what I was looking for. I have been using GridViewTemplateColumn with success, but when I try to use an AjaxToolkit rating control I get an error. Here is the code that is giving me the error.
Thanks,
-renasis
<AjaxData:GridViewTemplateColumn >
<ItemTemplate>
<cc1:Rating
Style="float: left; padding-left: 5px;"
ID="rtgaveragerating"
runat="server"
CurrentRating='<%# Eval("averagerating") %>'
MaxRating="5"
RatingDirection="LeftToRightTopToBottom"
RatingAlign="Horizontal"
StarCssClass="ratingStar"
WaitingStarCssClass="savedRatingStar"
FilledStarCssClass="filledRatingStar"
EmptyStarCssClass="emptyRatingStar" >
</cc1:Rating>
</ItemTemplate>
</AjaxData:GridViewTemplateColumn>
The error message is as follows:
Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[InvalidOperationException: Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.]
System.Web.UI.ExtenderControl.get_IPage() +326508
System.Web.UI.ExtenderControl.Render(HtmlTextWriter writer) +19
AjaxControlToolkit.ExtenderControlBase.Render(HtmlTextWriter writer) +138
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
AjaxControlToolkit.Rating.RenderContents(HtmlTextWriter writer) +67
|