<ResourceHeaderTemplate>
<asp:Panel ID="ResourceWrapper" runat="server" CssClass="ResCustomClass">
<asp:Table ID="ResourceTable" runat="server" Width="200px">
<asp:TableRow Width="200px">
<asp:TableCell Width="95px" HorizontalAlign="Right">
<asp:Label ID="LGroup" Font-Bold="true" runat="server" Text='<%# Eval("resgroup") %>'></asp:Label>
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center" Width="10px">
<asp:Label ID="LSpacer" runat="server" Text="|"></asp:Label>
</asp:TableCell>
<asp:TableCell Width="95px" HorizontalAlign="Right">
<asp:Label ID="SpeakerImage" runat="server" Text='<%# Eval("Text") %>'></asp:Label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Panel>
</ResourceHeaderTemplate>
Hi,
I am using this link for your example for chart to embed RadChart instances in template column of RadGrid.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandchart/chartingrid/defaultvb.aspx?product=chart
I am using VS 2010 and ADO.net entity data model and EntityDatasource instead of sqldatasource, the issue is chart is not being rendered for all roows except the last one.. I am getting an error at the statement chart.DataSource = SqlDataSource2.Select(DataSourceSelectArguments.Empty) 'Value of type system.web.ui.DataSourceSelectArguments cannot be converted to integer.
What i use is chart.DataSource = EntitylDataSource2.Select(DataSourceSelectArguments.Empty).
The chart for the last row of the grid is displayed only, can you please advise? Please see the result attached when I use
EntityDataSource2.WhereParameters(0).DefaultValue = item.GetDataKeyValue("Entity1").ToString()
chart.DataSourceID = "EntityDataSource2"
Commented out
'chart.DataSource = EntityDataSource2.Select(DataSourceSelectArguments.Empty)
Here is my definition of EntityDataSource2
<
asp:EntityDataSource
ID
=
"EntityDataSource2"
runat
=
"server"
ConnectionString
=
"name=TEntities"
DefaultContainerName
=
"TEntities"
EnableFlattening
=
"False"
EntitySetName
=
"Entities"
Select
=
"it.[Entity1], it.[Type], it.[Entity_Desc], it.[Active], it.[Cnt], it.[Dataupdtthru]"
EntityTypeFilter
=
""
OrderBy
=
"it.[Entity1]"
Where
=
"it.[Entity1] = @Entity"
>
<
WhereParameters
>
<
asp:Parameter
DbType
=
"string"
Name
=
"Entity"
/>
</
WhereParameters
>
</
asp:EntityDataSource
>
Hi all,
hop any one can help me,
i am using the following coding to upload files to the sqlserver dirctly no need to save, but i get error on line
{
byte[] imgbytes = new byte
try
{
DB.Image("insert into projectsimages (image,id) values(@picture,'1')"
, imgbytes);
}
I have noticed that my Event Viewer is being filled up with the following warnings, complaining about NullReferenceException. Can someone tell me what could be causing this, and what can I do to fix them?
Thanks,
Event Type: Warning |
Event Source: ASP.NET 2.0.50727.0 |
Event Category: Web Event |
Event ID: 1309 |
Date: 3/23/2010 |
Time: 9:45:05 AM |
User: N/A |
Computer: WEBPC |
Description: |
Event code: 3005 |
Event message: An unhandled exception has occurred. |
Event time: 3/23/2010 9:45:05 AM |
Event time (UTC): 3/23/2010 2:45:05 PM |
Event ID: ac0df0b9829a4b0796ff2693875efb70 |
Event sequence: 261544 |
Event occurrence: 1492 |
Event detail code: 0 |
Application information: |
Application domain: /LM/W3SVC/2/Root-1-129137505216865130 |
Trust level: Full |
Application Virtual Path: / |
Application Path: C:\Inetpub\wwwroot\WEBPC\WebSite\ |
Machine name: WEBPC |
Process information: |
Process ID: 7480 |
Process name: w3wp.exe |
Account name: NT AUTHORITY\NETWORK SERVICE |
Exception information: |
Exception type: NullReferenceException |
Exception message: Object reference not set to an instance of an object. |
Request information: |
Request URL: http://www.thegreensheet.com/Telerik.Web.UI.WebResource.axd?imgid=2b66498078e24ceab80cfe456aff0d17&type=rbi |
Request path: /Telerik.Web.UI.WebResource.axd |
User host address: 928.54.83.66 |
User: default\Anonymous |
Is authenticated: False |
Authentication Type: |
Thread account name: NT AUTHORITY\NETWORK SERVICE |
Thread information: |
Thread ID: 7 |
Thread account name: NT AUTHORITY\NETWORK SERVICE |
Is impersonating: False |
Stack trace: at Telerik.Web.UI.RadBinaryImageHandler.ProcessRequestInternal() |
at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context) |
at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context) |
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() |
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) |