Re: Newbie Question!



I have to build the table dynamically because the number of records are
unknown. So I won't know how many controls I need until the reader is
finished.

How would I accomplish this?

Thanks for the reply!

Izzy


Jesse Liberty wrote:
First, while you can do what you are suggesting, you typically would place
an asp control into the table cell, and then you would write your data to
the text field or to an another appropriate property of that control. For
example, you might write

"<table><tr><td><asp:label id="mylabel" runat="server"></td></tr></table>"

then in your code you can write

mylabel.Text = myTable.Row[0]["NameColumn"];

but all of this is assuming quite a bit about asp.net controls and adolnet
controls and quite a bit more. I strongly recommend that you find a book
that takes you through asp.net in a bit more orderly fashion so that it
doesn't all seem like such a muddle. :-)

There are quite a few out there (I happen to like the O'Reilly book
Programming ASP.NET 2nd Edition, but I know the author). Go to a good book
store and read through a couple; it will be time and money well spent. Find
one that meets your style and needs and that tells the story step by step
but that focuses on the issues you care about.

Best of luck.

-j


--
Jesse Liberty
Microsoft MVP
Author/ Programmer
http://www.LibertyAssociates.com



"Israel Richner" <israel.richner@xxxxxxxxx> wrote in message
news:1161724463.612491.217070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How do I write information to a specific location on a web page from
the code behind page?

For instance I have 2 controls on my web form, in the code behind page
I query a database and read the results with a data reader. While
reading the records I format it into an html string like
"<table><tr><td>[inserted reader data]</td></tr></table>"

I know I can use Response.Write(string) but how do I control where that
new table gets written too? I want it placed between the two controls
on the form.

What am I missing?

Izzy


.



Relevant Pages

  • Re: RS232 for Ge 1050MCCM
    ... GE made a serial card to plug into the tape reader driver slot that was used in some big shops that had dnc links installed. ... I run a 1050MMC and two 1050HL's and they all are very stable controls. ... There are two Tulip boards available, one with a single memory and another with a dual memory setup with an A/B switch. ...
    (alt.machines.cnc)
  • Re: Newbie Question!
    ... stick it in a DIV and position the DIV. ... So I won't know how many controls I need until the reader is ... Programming ASP.NET 2nd Edition, ... For instance I have 2 controls on my web form, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Writing style invisible?
    ... Hmm -- a magical book which for each reader is in the prose style ... interactive computer software, but a terrible one for writing ... that controls when NOT to use it. ...
    (rec.arts.sf.composition)
  • Re: Newbie Question!
    ... an asp control into the table cell, and then you would write your data to ... controls and quite a bit more. ... Programming ASP.NET 2nd Edition, ... For instance I have 2 controls on my web form, ...
    (microsoft.public.dotnet.framework.aspnet)
  • 800# Research...
    ... Been a reader since the single page days but this one has me stumped... ... I have a few 800 numbers on a list that belong to someone else... ... company owns or controls the 800 number. ... Searches find only the end user, not the TelCo with control over the number. ...
    (alt.2600)