Jump to content



Photo

[ASP.NET] Best method to display a form

c# asp.net visual studio 2012

  • Please log in to reply
2 replies to this topic

#1 limok

limok

    Neowinian

  • Joined: 20-May 04
  • Location: Manchester, UK
  • OS: Windows 8.1
  • Phone: Galaxy S4, iPhone 5

Posted 19 January 2013 - 15:30

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.

Attached Images

  • Untitled.png



#2 paxa

paxa

    Neowinian

  • Joined: 04-June 04
  • Location: so far away....nearly in the end of the world

Posted 20 January 2013 - 03:39

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.

#3 OP limok

limok

    Neowinian

  • Joined: 20-May 04
  • Location: Manchester, UK
  • OS: Windows 8.1
  • Phone: Galaxy S4, iPhone 5

Posted 21 January 2013 - 17:54

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



Click here to login or here to register to remove this ad, it's free!