Asp.net 2.0 data controls textbox values from formview to label

G

Guest

Hello,

this is my first post hope to get some good answers. I am using asp.net 2.0
and I am trying to pass the value entered in the formview textbox in insert
mode "in this case it is the default mode" to a label or hidden field outside
of the formview when the insert button is pushed. Is there a way to do this?

The App I am creating using many interrelated tables by forgiegn keys and in
this case I need to insert a record in one table before I can insert a new
record in an other. It is a step 1.2.3 sort a procedure. Were in step one
the first record is created and then the PK of the last record inserted is
retrieved. The PK is then kept in a hidden field / control that's not visible
for use in the next step.

The next step will insert a new record in a differnt table using the
retrieved forgiegn key from step one as part of the new record. This is all
done on the same page. I was able to do this in 1.1 useing panels and simple
form controls with oledbcommands attached to button controls button_onclick
and labels.text = txtbox1.text type codeing but can not seem to do it with
the new controls in 2.0. It should be simple right?

Before in 1.1 I attached a oledbcommand to a button_onclick to do most of
the work. I just added the parameters and .values but I can not seem to find
a way to assign the new AccessDataSource to a button control. Is this
possible or do I need to hand code all of the sql commands / connections to
use a button control for a database insert ? If there is a way to use the
accessdatasource control with a button control not involveing the
gridview/detailviews/formview controls can someone clue me in on how to do so.

Any help would be greatly appeciated
Thanks,
Hawk
 

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,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top