如何在asp.net中打印多个sql记录 [英] how to print multiple records of sql in asp.net

查看:97
本文介绍了如何在asp.net中打印多个sql记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个包含打印按钮的网页。当我点击打印按钮时,学生证号码没有。传递给print.aspx页面。在这个页面中,我有一个带有一些文本框的表单。每当这个id没有。传递从数据库填充的所有这些文本框(与该ID相关的所有字段编号)。

而不是id no。,我将传递类名称(VIIth标准)。然后所有的记录都应该一个接一个地打印出来。(例如:这个VII标准包含20个学生)然后我需要打印到页面。我将把两个按钮放在print.aspx页面(后面,下一页)。

请帮助我在这方面一次打印多个页面(使用C#.net)和代码。



先谢谢你为我带来痛苦

解决方案

我认为你需要在print.aspx页面上使用Repeater控件

Hello,
I am having a webpage which contains a print button. when I click on print button the student ID no. is passed to print.aspx page. In this page I have a form with some text boxes. Whenever this id no. is passed all these text boxes filled from a database( all fields related to that ID no.)
Instead of id no., I wil pass class name like (VIIth standard). then all the records should be printed one after another.(For example: this VII standard contain 20 students) then I need to print to pages. I wil put two buttons in print.aspx page (Back, Next).
Kindly help me in this regard to print multiple pages at a time(using C#.net) with code.

Thanks in advance for taking pain for me

解决方案

I think you need to use Repeater control on print.aspx page


这篇关于如何在asp.net中打印多个sql记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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