i have many fields in page like sno,regno,date,name,school name etc.like a registrationform. i have two button save and print. i want to print the current saved record when i press print button.my registration no is primarykey and auto increment.

Recommended Answers

All 2 Replies

Use asp.net label control and on click event of print button simple get the last entered record using datareader or dataadapter .

Save the last entered record registration no in any of hidden field or viewstate. Then By using hidden field or viewstate information retrive data from database and allow to print.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.