Solved

display text without textbox

Posted on 2016-08-20
6
64 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 81

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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:mcrmg
ID: 41763907
thank you
0
 

Author Closing Comment

by:mcrmg
ID: 41763908
thank you
0
 
LVL 81

Expert Comment

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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