• 0

[ASP.NET] Best method to display a form


Question

Hi, I'm doing a bit of research before I delve into coding. The problem I have is that I want to retrieve data from a sql database (a single record at a time) and want to display the data on an asp.net webpage. I know I can use either a detailsview or a formview, the way I want to display the data is by using multiple controls, textboxs and a gridview.

What's the best method for the below screenshot.

Thanks for your help.

post-56335-0-99984700-1358609409.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

first of all get one record at a time? that's not a very good practice. you better think of another strategy for that. another thing as you don't have that many fields. you can go with a formview as it will provide more customization than detailview as for my understanding of both components and also based on what you want to implement.

Link to comment
Share on other sites

  • 0

What I'm trying to achieve is display data in an invoice format so one record will be displayed at a time. I won't be querying the database each time the next button is clicked rather a SQL adapter will be used for all SQL stuff.

I'll give formview a go.

Cheers

Link to comment
Share on other sites

This topic is now closed to further replies.