|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
style width and heightis there a feature to remove width and style tags from the .aspx .ascx pages?
we are trying to localise an application and the hard coded styles are obviously overridding the CSS files. webcontrols can be modified easily enough but it is the controls that are not server controls i.e. your basic table that is causing grief. Any tips appreciated. Shaun Hi Shaun,
Welcome to ASPNET newsgroup. From your description, you've currently got some aspx pages and ascx controls which contains many controls and html elements that used to set as hardcoded css styles and you're wondering how to easily remove those hardcoded styles (so as to apply the global css style ), yes? Based on my experience, if the hard coded css attributes are in the non-server control(html elements) ,we could not but using some external tools or custom code to parse the aspx/ascx template and filter them. What's your current plan on this(and for those styles in server control)? If there're any further questions, please feel free to post here. Thanks, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- Show quoteHide quote | Thread-Topic: style width and height microsoft.public.dotnet.framework.aspnet.webcontrols:10021| thread-index: AcWN0ObN/WtHFeQORROGH975EIX8yg== | X-WBNR-Posting-Host: 195.92.40.49 | From: "=?Utf-8?B?U2hhdW4gV2lsZGU=?=" <shaun_wilde@nospam.nospam> | Subject: style width and height | Date: Thu, 21 Jul 2005 01:48:01 -0700 | Lines: 11 | Message-ID: <FFCED39A-B72E-43EB-ABF8-10B7B71B5***@microsoft.com> | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl | Xref: TK2MSFTNGXA01.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | | is there a feature to remove width and style tags from the .aspx .ascx pages? | | we are trying to localise an application and the hard coded styles are | obviously overridding the CSS files. | | webcontrols can be modified easily enough but it is the controls that are | not server controls i.e. your basic table that is causing grief. | | Any tips appreciated. | | Shaun | Hi Steven
Our current approach is to use javascript to remove all width and height styles on all elements dynamically and leave all sizing to either the flow or to be controlled by the class (.css). We may consider using a filter at the server to strip these elements but that adds to the processing power - the javascript solution moves the processing to the client (I don't think that is going to be too much of a problem). We did consider writing a tool to modify all the aspx/ascx files we have in source control but it would have to be run on a regular basis as even if the developer(s) know not to move elements such that these styles are applied - accidents do happen. I was sort of hoping that there was some magic macro or some such tool that could be applied to the project and thus save our effort - looks like we are having to get our hands dirty :) Shaun Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Shaun, > > Welcome to ASPNET newsgroup. > From your description, you've currently got some aspx pages and ascx > controls which contains many controls and html elements that used to set as > hardcoded css styles and you're wondering how to easily remove those > hardcoded styles (so as to apply the global css style ), yes? > > Based on my experience, if the hard coded css attributes are in the > non-server control(html elements) ,we could not but using some external > tools or custom code to parse the aspx/ascx template and filter them. > What's your current plan on this(and for those styles in server control)? > > If there're any further questions, please feel free to post here. Thanks, > > Steven Cheng > Microsoft Online Support > > Get Secure! www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > > > > > > > > > > -------------------- > | Thread-Topic: style width and height > | thread-index: AcWN0ObN/WtHFeQORROGH975EIX8yg== > | X-WBNR-Posting-Host: 195.92.40.49 > | From: "=?Utf-8?B?U2hhdW4gV2lsZGU=?=" <shaun_wilde@nospam.nospam> > | Subject: style width and height > | Date: Thu, 21 Jul 2005 01:48:01 -0700 > | Lines: 11 > | Message-ID: <FFCED39A-B72E-43EB-ABF8-10B7B71B5***@microsoft.com> > | MIME-Version: 1.0 > | Content-Type: text/plain; > | charset="Utf-8" > | Content-Transfer-Encoding: 7bit > | X-Newsreader: Microsoft CDO for Windows 2000 > | Content-Class: urn:content-classes:message > | Importance: normal > | Priority: normal > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl > | Xref: TK2MSFTNGXA01.phx.gbl > microsoft.public.dotnet.framework.aspnet.webcontrols:10021 > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols > | > | is there a feature to remove width and style tags from the .aspx .ascx > pages? > | > | we are trying to localise an application and the hard coded styles are > | obviously overridding the CSS files. > | > | webcontrols can be modified easily enough but it is the controls that are > | not server controls i.e. your basic table that is causing grief. > | > | Any tips appreciated. > | > | Shaun > | > > En, I think so. Anyway, if there're anything else we can help, please feel
free to post here. Thanks & Regards, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- | Thread-Topic: style width and height <leS6$OmjFHA.3***@TK2MSFTNGXA01.phx.gbl>| thread-index: AcWOg/7IQk7tkW8zSAOUmrfrJVb8AQ== | X-WBNR-Posting-Host: 62.252.0.7 | From: "=?Utf-8?B?U2hhdW4gV2lsZGU=?=" <shaun_wilde@nospam.nospam> | References: <FFCED39A-B72E-43EB-ABF8-10B7B71B5***@microsoft.com> Show quoteHide quote | Subject: RE: style width and height microsoft.public.dotnet.framework.aspnet.webcontrols:10044| Date: Thu, 21 Jul 2005 23:10:01 -0700 | Lines: 94 | Message-ID: <DA86050C-06A1-4A65-A2FE-1F74BC005***@microsoft.com> | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl | Xref: TK2MSFTNGXA01.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | | Hi Steven | | Our current approach is to use javascript to remove all width and height | styles on all elements dynamically and leave all sizing to either the flow or | to be controlled by the class (.css). | | We may consider using a filter at the server to strip these elements but | that adds to the processing power - the javascript solution moves the | processing to the client (I don't think that is going to be too much of a | problem). | | We did consider writing a tool to modify all the aspx/ascx files we have in | source control but it would have to be run on a regular basis as even if the | developer(s) know not to move elements such that these styles are applied - | accidents do happen. | | I was sort of hoping that there was some magic macro or some such tool that | could be applied to the project and thus save our effort - looks like we are | having to get our hands dirty :) | | Shaun | | "Steven Cheng[MSFT]" wrote: | | > Hi Shaun, | > | > Welcome to ASPNET newsgroup. | > From your description, you've currently got some aspx pages and ascx | > controls which contains many controls and html elements that used to set as | > hardcoded css styles and you're wondering how to easily remove those | > hardcoded styles (so as to apply the global css style ), yes? | > | > Based on my experience, if the hard coded css attributes are in the | > non-server control(html elements) ,we could not but using some external | > tools or custom code to parse the aspx/ascx template and filter them. | > What's your current plan on this(and for those styles in server control)? | > | > If there're any further questions, please feel free to post here. Thanks, | > | > Steven Cheng | > Microsoft Online Support | > | > Get Secure! www.microsoft.com/security | > (This posting is provided "AS IS", with no warranties, and confers no | > rights.) | > | > | > | > | > | > | > | > | > | > -------------------- | > | Thread-Topic: style width and height | > | thread-index: AcWN0ObN/WtHFeQORROGH975EIX8yg== | > | X-WBNR-Posting-Host: 195.92.40.49 | > | From: "=?Utf-8?B?U2hhdW4gV2lsZGU=?=" <shaun_wilde@nospam.nospam> | > | Subject: style width and height | > | Date: Thu, 21 Jul 2005 01:48:01 -0700 | > | Lines: 11 | > | Message-ID: <FFCED39A-B72E-43EB-ABF8-10B7B71B5***@microsoft.com> | > | MIME-Version: 1.0 | > | Content-Type: text/plain; | > | charset="Utf-8" | > | Content-Transfer-Encoding: 7bit | > | X-Newsreader: Microsoft CDO for Windows 2000 | > | Content-Class: urn:content-classes:message | > | Importance: normal | > | Priority: normal | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl | > | Xref: TK2MSFTNGXA01.phx.gbl | > microsoft.public.dotnet.framework.aspnet.webcontrols:10021 | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | > | | > | is there a feature to remove width and style tags from the .aspx .ascx | > pages? | > | | > | we are trying to localise an application and the hard coded styles are | > | obviously overridding the CSS files. | > | | > | webcontrols can be modified easily enough but it is the controls that are | > | not server controls i.e. your basic table that is causing grief. | > | | > | Any tips appreciated. | > | | > | Shaun | > | | > | > |
CompareValidator Only Works On Manual Input
Base Page Design Question Which page load fires first? ASPX or ASCX? PropertyDescriptor in GetDataSource Render TreeViewControls in .net 2003 Resolving datasource expression Repeater question Resolving datasource expression 2.0 ascx on a 1.1 aspx? Bizarre - DataGrid inside HTML Table |
|||||||||||||||||||||||