telligent

Eval inside an ASP.net repeater doesn't work inside another control

半世苍凉 提交于 2020-01-06 08:13:41
问题 I have a Reapter control with a custom server side control inside of it. When I place the code: <%# Eval("DateAdded") %> inside the item template of the repeater it works fine, but when I place it inside the custom server control inside the repeater, it doesn't work. Is it possible to do something like Parent.Eval() or Container.Eval() to get back to the context of the Reapeter rather than the custom control? 回答1: The repeater is databound, the control that you are placing this eval statement

SQL error: String or binary data would be truncated

吃可爱长大的小学妹 提交于 2019-12-03 09:43:10
问题 I'm doing an integration on a community platform called Telligent. I'm using a 3rd-party add-on called BlogML to import blog posts from an XML file (in BlogML format) into my local Telligent site. The Telligent platform comes with many classes in their SDK so that I can programmatically add content, such as blog posts. E.g. myWeblogService.AddPost(myNewPostObject); The BlogML app I'm using essentially parses the XML and creates blog post objects then adds them to the site using code like the

SQL error: String or binary data would be truncated

眉间皱痕 提交于 2019-12-03 00:03:45
I'm doing an integration on a community platform called Telligent. I'm using a 3rd-party add-on called BlogML to import blog posts from an XML file (in BlogML format) into my local Telligent site. The Telligent platform comes with many classes in their SDK so that I can programmatically add content, such as blog posts. E.g. myWeblogService.AddPost(myNewPostObject); The BlogML app I'm using essentially parses the XML and creates blog post objects then adds them to the site using code like the above sample line. After about 40 post imports I get a SQL error: Exception Details: System.Data