473,657 Members | 2,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display textbox with no border

tfs
I am trying to display some data that is about 200 characters long and
I was trying to display it on the screen in a textbox

<asp:textbox />

But I don't want any borders.

How would I display that?

Thanks,

Tom
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #1
6 10705
See if this helps.
<html>
<head>
<style type="text/css">
<!--
input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10 px; color: #003068; text-decoration: none; background-color: #FFFFFF;
border-color: #88A0C8 #88A0C8 #88A0C8; border-style: solid;
border-top-width: 0 px; border-right-width: 0 px; border-bottom-width: 0
px; border-left-width: 0 px}
-->
</style>
</head>
<body>
<input type="text" value="Some Text Here"></input>
</body>
</html>

Won't you be confusing the User with this technique. Check out the Label
Control if required.

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
See if this helps.
<html>
<head>
<style type="text/css">
<!--
input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10 px; color: #003068; text-decoration: none; background-color: #FFFFFF;
border-color: #88A0C8 #88A0C8 #88A0C8; border-style: solid;
border-top-width: 0 px; border-right-width: 0 px; border-bottom-width: 0
px; border-left-width: 0 px}
-->
</style>
</head>
<body>
<input type="text" value="Some Text Here"></input>
</body>
</html>

Won't you be confusing the User with this technique. Check out the Label
Control if required.

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
tfs
That almost works (style="border: none") as does borderstyle="No ne".
But it doesn't get rid of the scrollbar on the left. The border is
gone but there is this scroll bar sitting out on the right (even
though there is nothing to scroll). I have it set to 5 rows and
there is only 2 or 3 rows displaying.

I have a similar problem with my dropdownlist. I have the border set
to none and it still shows the drop down box. I only want to show
the selected item and no border.

Here is code where I set them as well as the objects:

<script runat="server">
...
description.tex t = objDataReader(" description")
recurrance.Sele ctedIndex =
objDataReader(" recurrance")
...
</script>

<asp:textbox style="border:N one"
id="description " TextMode="Multi line"
Columns="50" Rows="5" runat="server"
/>
<asp:dropdownli st borderstyle="No ne"
id="recurrance " runat="server">
<asp:listitem value="0"
None</asp:listitem> <asp:listitem value="1"Daily</asp:listitem> <asp:listitem value="2"Weekly</asp:listitem> <asp:listitem value="3"Monthly</asp:listitem> <asp:listitem value="4"Yearly</asp:listitem>

</asp:dropdownlis t>
Thanks,

Tom.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #4
Here it is. Tested only on IE 5.5 & 6.0

textarea {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10 px;
color: #003068;
text-decoration: none;
background-color: #FFFFFF;
border-top-width: 0 px; border-right-width: 0 px; border-bottom-width:
0px; border-left-width: 0 px;
SCROLLBAR-FACE-COLOR: white;
SCROLLBAR-HIGHLIGHT-COLOR: white;
SCROLLBAR-SHADOW-COLOR: white;
SCROLLBAR-3DLIGHT-COLOR: white;
SCROLLBAR-ARROW-COLOR: white;
SCROLLBAR-TRACK-COLOR: white;
SCROLLBAR-DARKSHADOW-COLOR: white;
SCROLLBAR-BASE-COLOR:white;}

Regards

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
tfs
Interesting.

You actually didn't get rid of the scrollbar, just made all the parts
the same color as the background (in this case, white).

The problem with this would be that all the text boxes would have this
applied.

I just changed the "textarea" to .noscrolltextar ea and put the class
in the <td> like so:
<tr valign="baselin e">
<td nowrap align="right"
valign="top">De scription:</td>
<td>
<asp:textbox class="noscroll textarea"
id="description " TextMode="Multi line"
Columns="50" Rows="5" runat="server"
/>
</td>
</tr>
I am curious why the textarea works for the textbox (wouldn't you need
to use textbox?).

I still couldn't get the dropdownlist to hide the border and just show
the selected text so I just hid the dropdownlist control, set the
selected area and moved it to a label control. There may be a better
way, but this works.

[code:1:c24f5c16 f8]
recurrenceType. SelectedValue =
objDataReader(" recurrenceType" )
recurrenceDispl ay.text = recurrenceType. SelectedItem.te xt

<td nowrap align="right">R ecurrance:</td>
<td>
<asp:label id="recurrenceD isplay"
runat="server" />
<asp:dropdownli st style="visibili ty:hidden"
id="recurrenceT ype" runat="server">
<asp:listitem value="N"
None</asp:listitem> <asp:listitem value="M"Monthly</asp:listitem> <asp:listitem value="P"Periodic</asp:listitem>

</asp:dropdownlis t>
</td>
[/code:1:c24f5c16 f8]
Thanks,

Tom
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #6
I used the stylesheet for the TEXTAREA b'cos, the ASP.NET TextBox gets
rendered as a Input Tag when you set the TextMode to SingleLine and as a
textArea when you set it to MultiLine. There is another option called
Password.

NOTHING HAS CHANGED IN HTML. So it is still the same <INPUT>,
<TEXTAREA>, <DIV>, <TABLE> etc that you see as controls on the Server.
With a little hack you can achieve what you want.

If you do a viewsource in IE, you can see what is really happening.

Regards,

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2430
by: dale zhang | last post by:
Hi, I build a web form with a 4-cell table on the top (flawlayout), followed by some labels and textboxes (gridlayout). The web form is displayed well in dell m60 laptop with all resolution options and DPI options. However when I tried to run it in a dell P3 desktop, labels and textboxes overlapped each other and they were in table area too. Any suggestions? Do I have to put all controls in table cells?
8
3473
by: tshad | last post by:
I cannot seem to get the asp:textbox to use classes. Style works fine. I am trying to set the textbox to act like a label in some instance so it doesn't have a border, readonly and the background is grey. I have a class set as: ..table2Label{ border-style:none; background-color:#F6F6F6; }
0
870
by: Barb | last post by:
Has anyone seen this happen? I have pages with <asp:Textbox> and <asp:DropDownList> controls on them. Some of them display differently. Some are recessed with the left & top borders being gray (to look 3D). Some look flat w/ a light blue border all the way around. The dropdown lists all have light blue borders and look flat. ALL controls on the pages are coded to the default values. There are no commands to determine the border style...
1
1892
by: Jeff | last post by:
hey asp.net 2.0 In my website I've got a textbox with TextMode=MultiLine. The user can enter text that contain "new line"... But to displays this I'm also using a textbox with TextMode=MultiLine and ReadOnly=True. The textbox displays a ugly border arround the textbox, including scrollbars
8
5073
by: Filipe Marcelino | last post by:
Hi, I'm trying to create a textbox inheriting from the standard textbox. I would like to: 1. repaint the textbox border; 2. define a color for that border; Till now I made this:
1
3209
by: satish.vell | last post by:
Hi, I have a ASP.NET page inside which I toggle the display of a field using javascript. How can I save this display value between postbacks. Here is my code: <pre>
3
3393
by: Shawn T | last post by:
I have an application with a page that has a web user control When I call that page that has this user control, locally (http:// localhost/ApplicationX/default.aspx) and also externally ie (http:// <webserver>/ApplicationX/default.aspx), the display is all different. For example, a text box shows with border on one and textbox shows as label in the other. I am suspecting that it might be CSS issue. I checked the CSS file and everything...
2
3260
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
2
12889
by: mrutyunjaya | last post by:
hello, i have two textbox column and one button control in gridvie when i click button it will ask plese enter price in first textbox . when enter values it is asking again. how to pass textboxid in javascript .my code is function validation() { alert("hi")
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.