How to assign a query to each textbox on a form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Grant

    How to assign a query to each textbox on a form?

    I need to create a form showing our production numbers for the week on each line. I can do this in listview using grouping and totals. The problem is I want these numbers to show in a form so I can cutomize the look of the report. Is there any way to assign a query to each text box on a form?

    Thank you in advance.
  • Sandeep M

    #2
    use Response.Write, after creating the html text by fetching data and use a loop to construct text and label set to display the contents at runtime(dynamic creation).

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      What do you mean when you say you want to "assign a query to each text box on a form"?

      Usually you use the data within a TextBox to supply as parameters to a SQL query....

      I do not recommend using Response.Write( ) in your server-side C# or VB.NET code because the string is very likely to be written out side of the HTML <body> tag. It usually results in invalid HTML and should only be used within your ASP markup for the page...so that you can ensure that the strings are written into the correct places in the page.

      I'm not sure what to recommend because I am not sure what you are asking for.

      Please clarify what you are trying to do.

      -Frinny

      Comment

      Working...