Karen - don't know if you've already solve this one.  But if you haven't:

I've done this before by doing an SQL statement to pull some data from a 
table, then setting the .text value for the label equal to the recordset 
values in the page_load code.  I.E:

Labelvalue1.Text = rs("desiredvalue")
Labelvalue2.Text = rs("desiredvalue2")
etc....
and the data will appear properly in the textbox control.

Hope it helps...p


Paul Ousterhout
Big Picture Systems, Inc.


From: Karen Kungowski <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [AspNetAnyQuestionIsOk] Need to set <asp:textbox> value with field 
value
Date: Sat, 15 Jan 2005 23:07:09 -0800 (PST)

I've stuck the <% Response.Write(strEmailTest) %> in
between the <asp:textbox> tags but it doesn't work. It
is assumed that strEmailTest would hold the results of
a query:
                                        <asp:TableCell>Email1<br><asp:TextBox
ID="txtEmail1" runat="server"><%
Response.Write(strEmailTest)
%></asp:TextBox></asp:TableCell>

I have about 3 textboxes that I want to have filled
with default values when the page loads. These values
have to be drawn from a table. Classic ASP trick
doesn't work.






__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to