Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Text Box

    "George" <gwilliamsiii@hotmail.com> wrote in message
    news:038e01c35235$7a746aa0$a501280a@phx.gbl...
    > 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
    Instead of a ControlSource like. . .

    [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

  4. #3

    Default 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

  5. #4

    Default Re: Text box

    anonymous wrote:
    > 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)
    Could you clarify your question a bit? Are you wanting to display this
    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

  6. #5

    Default 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

  7. #6

    Default Re: Text box

    anonymous wrote:
    > 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.
    Consider using the Repeater control, as it does not place the contents
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139