display text without textbox

hi,

In order to display a value from a sp, I use the following to display to an aspx page

BlockLot.Text = reader["BlockLot"].ToString();

and in aspx, I have something like this
 <asp:TextBox id="BlockLot" runat="server" Width="200px"></asp:TextBox>

My question is, is there a way to display the value of BlockLot to a lable? (not a textbox)  thx
mcrmgAsked:
Who is Participating?
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
add a label to your form and in your code behind
label1.text = Blocklot.text
0
 
funwithdotnetCommented:
There's many ways that might be accomplished.

What does the source data look like when received and how do you want it to look on the page? Draw us a "picture" and you'll get plenty of options.
0
 
funwithdotnetCommented:
I read "lable" as "table". Sorry.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
mcrmgAuthor Commented:
thank you
0
 
mcrmgAuthor Commented:
thank you
0
 
David Johnson, CD, MVPOwnerCommented:
You're welcome always
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.