Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
George #1
Text Box
On my form one of the fields gets automatically filled in
by getting its value from a combo Box. Is there a way to
send that field's value to the Table that created the form.
Thanks - George
George Guest
-
Error: content type of 'text/html; but expected 'text/xml'.
Hi, I've created a webservice, which is working fine in development environment and UAT environment. but i received following error often in... -
Coursebuilder - 5 text areas for 5 possible scores. Eachpossible answer has its own text area
I'm trying to build an inventory form that has different point values for each possible answer for a particular question. there will be 5 possible... -
Text edit functions not working for text entry fields onMAC
In all the text-entry fields - one cannot cut, copy, paste, nor perform other normal text edit functions on MAC using Firefox. Any idea about the... -
current selected text to highlighted text on mouse up event through java script
hi everybody, I want to convert the current selected text to highlighted text i.e. to yellow background on mouse up event on pdf form through... -
text field including text from a text file *.txt
Hi, I would like to insert a text field which includes text from a text file. I know it must be possible but unfortunately I cannot find any help... -
Rick Brandt #2
Re: Text Box
"George" <gwilliamsiii@hotmail.com> wrote in message
news:038e01c35235$7a746aa0$a501280a@phx.gbl...Instead of a ControlSource like. . .> On my form one of the fields gets automatically filled in
> by getting its value from a combo Box. Is there a way to
> send that field's value to the Table that created the form.
> Thanks - George
[ComboBoxName].Column(n)
Use a ControlSource that is the name of the field in the table you want to store
the value in. Then in the AfterUpdate event of the ComboBox have code similar
to. . .
Me![ControlName] = Me![ComboBoxName].Column(n)
Rick Brandt Guest
-
anonymous #3
Text box
I have the following dataset I am trying to dynamically
generate text boxes
based on a dataset results.
How do I do this?
Dim myReader As DataSet = SqlHelper.ExecuteDataset
(ConfigurationSettings.AppSettings("DBConnInfo"),
CommandType.StoredProcedure, "Details", storedParams)
anonymous Guest
-
Scott Mitchell [MVP] #4
Re: Text box
anonymous wrote:
Could you clarify your question a bit? Are you wanting to display this> I have the following dataset I am trying to dynamically
> generate text boxes
> based on a dataset results.
> How do I do this?
> Dim myReader As DataSet = SqlHelper.ExecuteDataset
> (ConfigurationSettings.AppSettings("DBConnInfo"),
> CommandType.StoredProcedure, "Details", storedParams)
data in a DataGrid, where a certain column (or columns) in the DataGrid
are displayed as TextBoxes with the data from their respective DataSet
columns as the Text of the TextBoxes?
???
--
Scott Mitchell
[email]mitchell@4guysfromrolla.com[/email]
[url]http://www.4GuysFromRolla.com[/url]
[url]http://www.ASPFAQs.com[/url]
[url]http://www.ASPMessageboard.com[/url]
* When you think ASP, think 4GuysFromRolla.com!
Scott Mitchell [MVP] Guest
-
anonymous #5
Re: Text box
I wanted to dispay the data in text boxes, not in a grid.
The text boxed I would like dynamicly created based on a
results from dataset.
anonymous Guest
-
Scott Mitchell [MVP] #6
Re: Text box
anonymous wrote:
Consider using the Repeater control, as it does not place the contents> I wanted to dispay the data in text boxes, not in a grid.
> The text boxed I would like dynamicly created based on a
> results from dataset.
in a grid, but in whatever HTML markup / Web Controls you specify. It
might look something like:
<asp:Repeater runat="server">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "SomeDBField") %>' /><br />
</ItemTemplate>
</asp:Repeater>
For more on the differences between the DataGrid, DataList, and Repeater
controls, check out my article:
Deciding When to Use the DataGrid, DataList or Repeater
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-whenusedatawebcontrols.asp[/url]
Happy Programming!
--
Scott Mitchell
[email]mitchell@4guysfromrolla.com[/email]
[url]http://www.4GuysFromRolla.com[/url]
[url]http://www.ASPFAQs.com[/url]
[url]http://www.ASPMessageboard.com[/url]
* When you think ASP, think 4GuysFromRolla.com!
Scott Mitchell [MVP] Guest



Reply With Quote

