Solved

display text without textbox

Posted on 2016-08-20
6
49 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 79

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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:mcrmg
ID: 41763907
thank you
0
 

Author Closing Comment

by:mcrmg
ID: 41763908
thank you
0
 
LVL 79

Expert Comment

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

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

776 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