CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/9/2006 11:29:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
dekale
Asp.Net User
Adding a custom Style to the HtmlHeader2/9/2006 11:29:28 PM

0/0

I'm trying to add a style to the Page.Header programmatically to achieve the following:

<head>
<
style type="text/css">
   
input.myclass { text-transform:uppercase; }
</
style>
</
head>


But all I get is:
<head>
<
style type="text/css">
   
input.myclass { }
</
style>
</
head>



The code I'm using for this is the following:

public partial class Default3 : System.Web.UI.Page
{
      protected void Page_Load(object sender, EventArgs e)
      {
            Style style = new Style();
            style.GetStyleAttributes(null).Add("text-transform",
                        "uppercase");
            this.Page.Header.StyleSheet.CreateStyleRule(style, null,
                        "input.myclass");
      }
}


So this isn't the right way. Who can show me the way? How must I add this style to the header programmatically?
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP in a Nutshell: A Desktop Quick Reference Authors: A. Keyton Weissinger, Pages: 473, Published: 2000
Myspace Maxed Out: Explode Your Popularity, Buzz Your Band and Secure Your Privacy on Myspace Authors: Editors of Bottletree Books LLC, BottleTree Books LLC Editors, Pages: 336, Published: 2006
Easy HTML-DB Oracle Application Express: Create Dynamic Web Pages with OAE Authors: Michael Cunningham, Kent Crotty, Pages: 400, Published: 2006
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
PHP Programming Solutions Authors: Vikram Vaswani, Pages: 556, Published: 2007
Internet Applications with Visual FoxPro 6.0 Authors: Rick Strahl, Pages: 400, Published: 1999
Microsoft Content Management Server 2002: A Complete Guide Authors: Bill English, Olga Londer, Todd Bleeker, Shawn Shell, Stephen Cawood, Pages: 1092, Published: 2003
PHP Bible Authors: Tim Converse, Joyce Park, Pages: 1012, Published: 2002
Internet Information Service 6.0 Authors: Muhammad Suhada, Pages: 0, Published: -1
I-Net+ Certification Study System Authors: Joseph J. Byrne, Pages: 452, Published: 2000

Web:
ActiveWidgets • adding an attribute to an html tag • html header tag Oct 14, 2005 ... how to add a readonly attribute dynamicaly in input tag using javascript ... html grid component · tag html header · div create tag custom ...
RE: Embedding custom script in HTML header: msg#00003 /templates/styles/yoursytle/header.tpl See ... Previous by Thread: Embedding custom script in HTML header, Stefano Pogliani ...
Trellian :: View topic - Custom Color and Auto HTML header Is it possible to add it to, or replace an existing color in the default minimum custom color selection drop down box? ...
Gift Registry Software - Getting Started: Step 3 To add CSS to your custom HTML header, sign in to the administrator, click the code generator icon and you will see the CSS style names icon in the left ...
Place in your Custom HTML Header… | leaky_cauldron_14's Xanga Site ... CUSTOM MODULE CUSTOM MODULE CUSTOM MODULE CUSTOM MODULE CUSTOM MODULE ... Place in your Custom HTML Header ... Add Link | Preview HTML · comment help ...
Mailing list archives ...