ajax工具包 - 评级控制 - 想要显示当前评级并允许人们选择该值(ajax toolkit - rating control - want to display current rating & allow people to pick that value)
我正在尝试使用ajax工具包中的评级控件。 我目前正在将当前设置设置为该项目的平均评级。 但是,这意味着没有人可以选择这个价值。 例如 - 如果当前评级为3,那么没有人能够选择3。
我发现stackoverflow上的这篇文章提出了同样的问题: Ajax控件工具包评级控制 - 覆盖RatingBehavior.js
但是我还没有运气好运。 我猜是因为它是一个旧帖子,大约3岁,从那以后,随着评级控制,情况发生了变化。
那么 - 任何人都知道如何显示当前的评级并仍然允许提交该值?
谢谢
I'm trying to use the rating control in the ajax toolkit. I'm currently setting the currentrating to whatever the average rating is for that item. However, that means no one can pick that value. For example - if the current rating is 3, then no one will be able to select 3.
I found this post on stackoverflow asking the same question: Ajax control toolkit Rating Control- Override RatingBehavior.js
But i haven't had any luck getting that to work. I'm guessing because it's an old post, about 3 years old, and things have changed with the rating control since then.
So - anyone know how i can display the current rating and still allow that value to be submitted?
Thanks
原文:https://stackoverflow.com/questions/9057354
最满意答案
一种方式是SSIS; 另一种方法是编写一个简单的控制台应用程序。 无论您更喜欢哪种编码都可能是最有效的方式。
One way is SSIS; another way would be a to write a simple console app. Whichever you're more comfortable coding would probably be the most efficient way for you.
相关问答
更多-
因为你只有2个excel文件和只有两个表,我不明白为什么使用foreach循环。 只需按照此链接并直接执行 如果您需要从两个excel文件插入到两个数据库,则可以使用多播组件创建数据集的副本 since you have only 2 excel files and only two tables I don't see why use a foreach loop. Just follow this link and do it directly If you need to insert from bo ...
-
Excel宏复制多个xml文件的内容并粘贴到excel行中(Excel macro to copy content of multiple xml files and paste in excel rows)[2022-07-09]
这将查看给定文件夹中的所有xml文件,然后将内容复制到Sheet1上的列A: Sub LoopThroughFiles() Dim MyData As String Dim LastRow As Long x = 1 LastRow = Sheet1.Cells(Sheet1.Rows.Count, "A").End(xlUp).Row Dim StrFile As String StrFile = Dir("C:\Users\User3282573\*.xml") 'change this ... -
更改Cross Apply语句以在XPath中包含过滤器逻辑: CROSS APPLY XMLData.nodes('//PIS[../ORG_DUNS/text() = ''600044978'']/PI') AS R(nref) 为了解释, //PIS[../ORG_DUNS/text() = ''600044978'']/PI说: //PIS - 找到所有称为PIS的元素 [ ... ] - 为符合此条件的元素过滤返回的元素 ../ORG_DUNS/text() = ''600044978'' - ...
-
从SQL Server生成单个XML文件,每个客户有多个结果(Generate single XML file from SQL Server with multiple results per customer)[2023-04-11]
有两个主要缺陷: 永远不要通过字符串连接创建XML。 试想一下,您的一个文本列包含'Do & Co' 。 &会破坏XML的有效性! 永远不要使用文化日期格式! 我不知道你的日期值是1月2日还是2月1日。 始终使用安全且独立的格式,例如ISO8601 (特别是在XML中)! 试试这样: 有一个模拟场景,你必须适应你的需求。 基本思想是使用FOR XML PATH()作为计费数据和另一个子选择 - 再次使用FOR XML PATH(),TYPE用于相关(嵌套)活动。 DECLARE @mockupBilling ... -
XML到SQL Server(XML To Sql Server)[2022-10-24]
这对我来说就像是一种魅力: SELECT XUsers.value('(PartitionKey)[1]', 'NCHAR(10)') AS 'partition_key' FROM (SELECT BulkXML = CAST(BulkColumn AS XML) FROM OPENROWSET(BULK 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\B ... -
您可以使用XML方法value()传递适当的XPath / XQuery表达式作为参数。 对于演示,请考虑以下表格和数据: CREATE TABLE MyTable (id int, MyXmlColumn XML) DECLARE @data XML = '
62 ... -
如何将多个XML文件作为文本提取到Excel或SQL Server中?(How can I pull multiple XML files as text into Excel or SQL Server?)[2023-12-05]
一种方式是SSIS; 另一种方法是编写一个简单的控制台应用程序。 无论您更喜欢哪种编码都可能是最有效的方式。 One way is SSIS; another way would be a to write a simple console app. Whichever you're more comfortable coding would probably be the most efficient way for you. -
在你的sp_Reconfigure下,看到你在这里引用了一篇文章..但是,我想你可能需要去微软而不是.. http://technet.microsoft.com/en-us/library/ms187569%28v=sql.90%29.aspx 这里有很多关于如何使用OPENROWSET的例子 - http://technet.microsoft.com/en-us/library/ms190312%28v=sql.90%29.aspx Under your sp_Reconfigure, see tha ...
-
从excel到sql server(from excel to sql server)[2022-05-26]
为什么不使用SSIS包呢? http://www.mssqltips.com/sqlservertip/1393/import-excel-unicode-data-with-sql-server-integration-services/ 然后,您可以递归执行SSIS包,或者...... 如果你只需要做一次,我会看看SSMS导入/导出向导...不确定它是否确实优秀,但我知道它确实.csvs,你可以使用excel转换你的电子表格至。 如果你需要多次这样做,这不是很有趣,但比你的时间更快。 why not u ... -
看起来我找到了完美的解决方案。 它确实是我想要的。 上传多个XML文件 Looks like I've found the perfect solution. It does exactly what I wanted. Upload multiple XML files