Solved

display text without textbox

Posted on 2016-08-20
6
43 Views
Last Modified: 2016-08-20
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
0
Comment
Question by:mcrmg
  • 2
  • 2
  • 2
6 Comments
 
LVL 12

Expert Comment

by:funwithdotnet
ID: 41763895
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
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 41763897
add a label to your form and in your code behind
label1.text = Blocklot.text
0
 
LVL 12

Expert Comment

by:funwithdotnet
ID: 41763903
I read "lable" as "table". Sorry.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:mcrmg
ID: 41763907
thank you
0
 

Author Closing Comment

by:mcrmg
ID: 41763908
thank you
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 41763977
You're welcome always
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now