且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我的asp.net网站上实现配置文件完整性栏

更新时间:2022-12-07 07:54:47

Hello Sunil,



我能想到的简单方法是将配置文件划分为逻辑部分,并为每个逻辑部分分配权重。这将允许您计算完整性,然后使用该最终图形来控制进度条显示。例如,如果个人资料包含个人信息,当前工作信息,过去的工作信息,技能信息等部分,则每个部分的权重可能为25%。如果您有5个子项目,则每个部分内的单个项目的重量为5%。



您甚至可以选择为逻辑单独的项目分配不同的权重部分。



发表我的评论作为正式答案(由Ryan Sir建议)



问候,
Hello Sunil,

The simple way I can think of is to divide the profile into logical section and assign weight to each logical section. This will allow you to compute completeness and then use that final figure to control the progress bar display. For example if profile has sections like personal info, current job info, past jobs info, skill info then weight for each section could be 25%. Within each section if you have 5 sub items then individual item will carry a weight of 5%.

You can even choose to assign different weights to individual items in a logical section.

Posting my comments as a formal answer (as suggested by Ryan Sir)

Regards,