Portal Home > Knowledgebase > Articles Database > Auto populate a field in VB ASP.NET


Auto populate a field in VB ASP.NET




Posted by brad_the_beast99, 06-02-2009, 01:01 PM
Hi All, FACTS: > I've created a VB.NET 2005 form, with a SQL Server 2000 backend > The form has about 30 fields that populate 30 columns in the SQL database > The form has mostly text feilds, with standard info such as Customer, order Number, etc. > Im trying to autopopulate one of the feilds on the form, called Reference Number. > The SQL column on the backend auto increments fine > The Reference Numbercolumn has identity specification 'Yes', Increment '1', etc. WHAT IS WORKING: > I fill out all the fields on the .aspx form, it populates the database fine > The Reference number auto increments by 1, which is great WHAT I WANT: > Employee should be able to launch the form, and have the Reference Number field auto populate on the form. QUESTION: > Should the Reference Number part of the VB.NET web form be a label? A text box accepts input from a user... but in the case of the Reference Number, the user should have it automatically populated open launching the page. sounds like a label to me. Any help, code samples would be appreciated. Thanks, Best, Brad



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
multiple sites (Views: 737)


Language: