asp.net - How to get Data to show side-by-side when using a <asp:PlaceHolder> -


Can you help me with my search page using Visual Studio 2013 and asp.net?

I have a simple text box and a button that can search for a database for the user name and what I am trying to do when the search button is clicked, the result is the same page If you do a search at this time, it looks like one below each other.

> <30> James Men Programming

but I am trying to show it ..

  James 3 0 male programming  

Can someone advise me where I am wrong? New table in the form of new table as dim tr new table as dim tcc new table as dim dc as new PDT lb If new label as DT HasRows = Do True, While DT Read t = new tablero tc = new tableclay lb = new labels lab Text = DT. Item ("name"). Toaster () tc Control. Add LB) tr.Controls.Add (tc) TB Control. Add (tr) tr = new tableware tc = new tableclick lb = new label lb.Text = dt.Item ("age"). ToString (TC) Add Controls (LB) tr.Controls.Add (tc) tb.Controls.Add (tr) tr = New TableRow TC = New Tablecale LB = New Label lb.Text = dt.Item ("Sex"). ToString (TC) Control. Add (lb) tr.Controls.Add (TC) TB Control. Add (TR) TR = New Tablerove TC = New Tableclass LB = New Label Lab Text = DT. Item ("department"). Toaster () tc Control. Add (lb) tr.Controls. Add (TC) tb.Controls.Add (tr) tr = New TableRow tc = New TablecLB = New Label lb.Text = dt.Item ("list_group"). ToString () tc.Controls.Add (lb) tr control. Add (TC) TB Control. Add (tr) tr = new tableware tc = new tableclick lb = new label lb.Text = dt.Item ("date_added"). ToString () tc.Controls.Add (lb) Tr.Controls.Add (tc) tb.Controls.Add (tr) Loop dt.Close () dsResults.Dispose () placeResults.Controls.Add (tb) Other noResultOutput.Text = "No results match your search" End if

One Instead of adding elements to everything, add yourself the line to work with more cells and only once for each WHILE loop.

Edit string with less verbose method = {"name", "age", "sex"} as DT. While calling for each color in the form of a new table row, the new tableclick LB as text .txt = dt.Item (col). Ostrahith () tc.Controls.Add (lb) TR.Controls.Add (tc) Next TB. Add (tr) loop


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -