使用Marquee进行数据库滚动-使用存储过程 [英] database scrolling using Marquee - using stored procedure

查看:95
本文介绍了使用Marquee进行数据库滚动-使用存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,


在我的项目中,我需要使用选取框滚动数据库中的行.但它的工作正常.

问题是:在此数据库表中,我总共有4个字段,从这4个字段中我应该将其设置为3个,并为此设置标签. "h2_lin">解决方案

我不会提供有关当前构建方式的解决方案.对我来说,最大的问题是您正在将数据代码与演示代码混合在一起.这是意大利面条编码的主要示例,需要先处理.尽管您可以像这样使工作代码进行工作,但由于所有内容都紧密地结合在一起,因此必须进行更改时,这成为一个问题.我建议更改存储过程,使其仅返回数据并处理表示层中的呈现.


Dear Sir,


In my project i need to scroll the rows from database using marquee. BUT its working fine.

The problem is : In this database table i have total 4 fields, from this 4 fields i should make it to three and set in label for this.... and another one field with departure set label with background color.

解决方案

I won''t offer a solution for the way this is currently built. The big problem for me is that you''re mixing data code with presentation code. This is a prime example of spaghetti coding and needs to be deal with before anything else. While you can get stuff to work coding like this, it becomes a problem when you have to change things because everything is so tightly coupled together. I suggest changing your stored procedure so that it only returns data and deal with the rendering in your presentation layer.


这篇关于使用Marquee进行数据库滚动-使用存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆