开发者

Representing files and lines in a file in model view?

开发者 https://www.devze.com 2022-12-21 17:58 出处:网络
I am trying to come up with a model design to solve the follwoing problem: I have files (plain text and xml) which I want to be able to represrnt them in a view in ASP.NET, also, I would need to dete

I am trying to come up with a model design to solve the follwoing problem: I have files (plain text and xml) which I want to be able to represrnt them in a view in ASP.NET, also, I would need to detect certain words in lines and keep track of them. So, we can imagine I have the following

CFile: List<Message> CertainMessages 

My question is, how do I represents the lines in the file? should I ma开发者_JAVA百科ke another class representing a line, and send 700+ lines to the view in my application?


If you have 700+ lines then I suspect you might want to consider your interface a little in terms of readability.

It might pay to have next and previous buttons and there are buckets of samples for those things.

There's no real issue with having a list of 700+ items so long as each item is small.

For me I'd consider the user and maybe allow for next/previous and perhaps a filter to chop 700+ down to a serviceable 70 lines maybe.

0

精彩评论

暂无评论...
验证码 换一张
取 消