Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > label with address format

Reply
Thread Tools

label with address format

 
 
JohnE
Guest
Posts: n/a
 
      06-28-2010
I have a label in a formview and when it fills with data from the db it
should be in the format of an address. As in;

Name
address
city, state, zipcode
phone

You can see what I am getting at. Currently the info goes in and just
wraps. How do I go about getting the proper format? Would it be better to
use a textbox for this? How would the address structure be done for txtbox?

Thanks
John
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      06-28-2010
JohnE wrote:
> I have a label in a formview and when it fills with data from the db it
> should be in the format of an address. As in;
>
> Name
> address
> city, state, zipcode
> phone
>
> You can see what I am getting at. Currently the info goes in and just
> wraps. How do I go about getting the proper format? Would it be better to
> use a textbox for this? How would the address structure be done for txtbox?
>
> Thanks
> John


You can use a multiple line textbox I think. You would use a string
variable and take each piece of information above, concatenate it into
the string variable. You would at the end of each word concatenated into
the string variable, you can concatenate a CRLF (Carriage Return Line
Feed) at the end of the word so that it does a CRLF in the multiline
textbox after each line of words. It should work, when you take the
string varable and set the Textbox.Text with it.

You can disable the Keypress Event for the HTML textbox so that the user
cannot enter data in the textbox or set the textbox Enable/Disable
property to 'Disable' after the textbox has been loaded.

You can do that or use a Listbox control loading each line of string
data into the Listbox collection, ignoring any line selection by the
user in the Listbox.

Myself, I would look into the Listbox control.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
optimizing the switch statement in Duff's Device (casting a label, label abuse) anon.asdf@gmail.com C Programming 10 10-11-2007 03:59 PM
dll config and web.config and Label Expressions (binding label text to dll config settings) CSharpner ASP .Net 0 04-09-2007 09:00 PM
How to get/read Hard disk label / drive label Praveen Python 1 11-05-2006 07:48 PM
<label><div></div></label> allowed? Josef K. ASP .Net 3 05-22-2005 02:13 PM
label versus asp:label Question. Thanks. Shapper ASP .Net 2 05-07-2005 05:55 AM



Advertisments