Data Entry Form

D

dguilbault

Ok, I'm stumped. I can't find any examples of how to create a simple data
entry form, using standard controls, like textboxes.

Every example of databinding I've found is using datagrids, etc.

I though I found good examples on www.learnvisualstudio.net, but it looks
like their stuff is for 1.1, not 2.0

I just want to create a simple data entry form connected to a database that
is free form, not in a grid.
 
L

Lloyd Sheen

dguilbault said:
Ok, I'm stumped. I can't find any examples of how to create a simple data
entry form, using standard controls, like textboxes.

Every example of databinding I've found is using datagrids, etc.

I though I found good examples on www.learnvisualstudio.net, but it looks
like their stuff is for 1.1, not 2.0

I just want to create a simple data entry form connected to a database
that
is free form, not in a grid.

Go to www.asp.net/learn. There are a ton of videos there and well done.

LS
 
D

dguilbault

Yeah, as I suspected, everything is in either a datagrid or a repeater.

Is there no way to just put a textbox on a web page and bind it to a
datasource?

This CAN'T be this hard!
 
R

randy.buchholz

Create a datasource and text boxs, dropdowns etc. Select the datasource and
in the property window select insert query.
Make sure you have selected the insert, etc box on the datasource config.
Your insert should look like: insert xxx(f1, f2, f3) values @f1, @f2, @f3

on the insert query tab in properties you shoud see a list of all of the @'s
if not hit refresh. select a parameter and select control from the parameter
source. A new dd will open and you can select the control you want to bind
to . do the same for your update query. That's all you need to do. I
usually drop a 3 column html table and put the controls in the center cells,
the title on the left and validators on the right. I try to avoid placing
any html in my aspx files, but haven't found a reliable way to align things
in any asp.net control. Layout is usually rendered as a table anyway so it
really doesn't matter, but by avoiding html I have been able to generate
aspx files from my case tool eaisily. Adding html makes it much more
difficult. With themes and stylesheets you can do anything you want without
(usually) any htnl in your aspx.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top