vb.net - Getting the data out of the data Formview -
I have an ASP PG, which has a form view inventory control which hooks up to a SQL database client table
I want to use the customer name outside the form.
How do I:
a) Use the bound text box in the form view template? Text1.text = formview1.customname.text (like does not work but this is a bit of a thing)
B) Access the database field in the table that sqlsource adds to the firewire feed
Really appreciate the help, I'm sure it's easy to do but I'm not going there.
You want to use that. For example:
& lt; Asp: formview id = "formViewContainer" ... other code & gt; ..... the formula code ..... <# Eval ("Customer Name")% & gt; ..... More FormView Code .....
Then use the following type to access "CutomerName" outside the form view:
& lt; Asp: textbox id = "customername" runt = "server" text = '& lt;% # DataBinder.GetPropertyValue (formViewContainer.DataItem, "username")% & gt; / & Gt;
Comments
Post a Comment