?
Solved

display text without textbox

Posted on 2016-08-20
6
Medium Priority
?
69 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 82

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:mcrmg
ID: 41763907
thank you
0
 

Author Closing Comment

by:mcrmg
ID: 41763908
thank you
0
 
LVL 82

Expert Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

777 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