This is my first attempt at working with style sheets so I am probably
missing something obvious.
I created a default ASP.NET Web Application and added 3 elements to it, a
label, a text box, and a hyperlink.
I changed the default style sheet to have the label color be purple (added
color: purple; to the Body {}).
I changed the hover for the hyper link to lime (changed color: lime; in the
A:hover {})
But what I cannot figure out is the text box entry area. I modified the
TextBoxLabel{} and the TextBoxStyle{}, even added the TextBox{} to the css
file to no avail.
I set the CssClass property to TextBox thinking that was where I was going
wrong.
using ASP.Net 1.1 and VS 2003.
Thank you in advance. 3 2585
I am not an expert on this, but I can tell you that I have succesfully
used a style sheet to format textbox to define for example font
properties and textbox height. Like this:
In page.aspx:
<asp:textbox id="txbTest" CssClass="textb ox"
Runat="server"> </asp:textbox>
In Styles.css:
..textbox
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style:normal;
height:18px;
}
Cheers
TB
Asp.net translates aspx pages to html and css rules apply to html pages, not
to aspx ones. There is no TextBox in html. It becomes, or renders as, an
html control of <input type="text" ...>. You can either declare styles for
<input type="text"> or use
CssClass attribute as another poster is suggesting.
Eliyahu
"Stephen Costanzo" <sx********@hot mail.com> wrote in message
news:uk******** ******@TK2MSFTN GP15.phx.gbl... This is my first attempt at working with style sheets so I am probably missing something obvious.
I created a default ASP.NET Web Application and added 3 elements to it, a label, a text box, and a hyperlink.
I changed the default style sheet to have the label color be purple (added color: purple; to the Body {}).
I changed the hover for the hyper link to lime (changed color: lime; in the A:hover {})
But what I cannot figure out is the text box entry area. I modified the TextBoxLabel{} and the TextBoxStyle{}, even added the TextBox{} to the css file to no avail.
I set the CssClass property to TextBox thinking that was where I was going wrong.
using ASP.Net 1.1 and VS 2003.
Thank you in advance.
Thank you both for your suggestions.
The thing I was missing was the <period> before the class name. inserting
the period allowed it to work. Eilyahu thank you for providing the alternate
way so I don't have to always put a CssClass attribute in for each of the
text boxes.
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:en******** ******@TK2MSFTN GP12.phx.gbl... Asp.net translates aspx pages to html and css rules apply to html pages, not to aspx ones. There is no TextBox in html. It becomes, or renders as, an html control of <input type="text" ...>. You can either declare styles for <input type="text"> or use CssClass attribute as another poster is suggesting.
Eliyahu
"Stephen Costanzo" <sx********@hot mail.com> wrote in message news:uk******** ******@TK2MSFTN GP15.phx.gbl... This is my first attempt at working with style sheets so I am probably missing something obvious.
I created a default ASP.NET Web Application and added 3 elements to it, a label, a text box, and a hyperlink.
I changed the default style sheet to have the label color be purple (added color: purple; to the Body {}).
I changed the hover for the hyper link to lime (changed color: lime; in the A:hover {})
But what I cannot figure out is the text box entry area. I modified the TextBoxLabel{} and the TextBoxStyle{}, even added the TextBox{} to the css file to no avail.
I set the CssClass property to TextBox thinking that was where I was going wrong.
using ASP.Net 1.1 and VS 2003.
Thank you in advance.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jonas L |
last post by:
Hi,
I need to create a textbox which acts as a normal textbox but with the
following extra requirements:
1) In-focus color, when the textbox gets focus the backcolor property
of the textbox should be set to a, selectable, in-focus color.
2) Out-of-focus color, when the textbox loses focus the backcolor
property of the textbox should be set to a, selectable, out-of-focus
color.
|
by: Rodrigo DeJuana |
last post by:
Howdy,
I'm new to this .net stuff and really have little to no training. Im trying
to create a new page for a web form, so i have been pretty much jsut coping
code. I having some issue with some textboxes not updating when i a hit
save.
for example I have this code in my aspx.cs file:
declared:
|
by: Newasps |
last post by:
Hi guys,
I have a problem with UpdateCommand Event. In tihs event Ä°'m creating required controls to get that controls' values and also get them. But when I try to get updated values I'm getting the first values for each control. Please help me. Thanks for any help. Bye
Ozer
And here's my code:
Imports System
Imports System.Data
Imports System.Data.OleDb
|
by: I am Sam |
last post by:
I have a DataGrid that is passing information to a stored procedure properly
but the parameters aren't being casted properly. I was woundering if anyone
can tell me how I should properly cast the following:
(TextBox)UserPrefix=(TextBox)e.Item.Cells.Controls;
string strUserPrefix=UserPrefix.Text;
I keep getting the following error and I don't know why because I have
declared the UserPrefix as a textbox using "protected...
|
by: Keith |
last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha text - in a text box - and then tell them when the execuate a command "This is not numeric data", I...
| |
by: Mamatha |
last post by:
Hi
I want to add an icon to the textbox's text.
I don't know how to display icon in textbox in VB.NET.
If any one knows please let me know.
Thanks in advance.
Mamatha
|
by: Brad Rogers |
last post by:
All,
Being immersed in vb.net and trying CSharp after almost a year I forgot the
differences. I like vb fixing the uppercase/lowercase names and seeming to
be more flexible to code entry.
But while trying to insert a text box to see when a method is used, and
putting a counter to bump some variable?
The textbox sits there unchanged. I put a breakpoint at the text write
|
by: Jacob Donajkowski |
last post by:
Once the user logs in I want to have the users switch from the Roster
View to the Profile View and enter their profile infomation and save
it. Then the next time they login and go to the Profile View I want
the form populated from there profile on the sql server. The code to
save the profile works fine. But when the user logs back in they data
doesn't load back to the form. The multiview is located inside the
LoginView's Logged-In View ....
|
by: Marco Pais |
last post by:
Hi there.
How can I change the background color of a textbox when it gets the focus?
I can handle the "Enter" event and do this
private void txtDummie_Enter(object sender, EventArgs e) {
txtDummie.BackColor=Color.Red;
}
|
by: Andy B |
last post by:
I have this code:
protected void EditEventsWizard_NextButtonClick(object sender,
WizardNavigationEventArgs e) {
//get the values from the DetailsView
TextBox StartTime = (TextBox)EditEventForm.Rows.Cells.Controls;
TextBox EndTime = (TextBox)EditEventForm.Rows.Cells.Controls;
|
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...
| |
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...
|
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,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |