|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cannot change font in Webcontrol treeview nodeI am use Webcontrol treeview, and I followed examples in the msdn document to
format the treeview control. <mytree:TreeView runat="server" SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" AutoPostBack="True" DefaultStyle="font-name:Tahoma;font-size:10pt" </ mytree:TreeView> However the font does not change no matter what font name I specified in font-name attribute. It always takes default. I am able to change font-size. Please help. Thanks, Charts Hi Charts,
Thanks for your posting. As for the TreeView font setting problem, based on my local test , i seems that I can not reproduce the problem. My local test has done the following steps: 1. Not using TreeNodeSrc file , just hard code some TreeNodes and use the TreeView's Default Style to assign the font style, something like: ==================== <iewc:TreeView id="TreeView1" runat="server" width="100%" height="100%" AutoPostBack="True" DefaultStyle="font-family:Tahoma;font-weight:bold;color:yellow;"> <iewc:TreeNode CheckBox="True" Text="Node0"> <iewc:TreeNode CheckBox="True" Text="Node5"> <iewc:TreeNode CheckBox="True" Text="Node21"> <iewc:TreeNode CheckBox="True" Text="Node57"> <iewc:TreeNode CheckBox="True" Text="Node69"></iewc:TreeNode> <iewc:TreeNode CheckBox="True" Text="Node70"></iewc:TreeNode> <iewc:TreeNode CheckBox="True" Text="Node71"></iewc:TreeNode> </iewc:TreeNode> ......................... ========================= 2. Using the TreeNodeSrc and the treenode xml file you provided in the former thread and use still use the DefaultStyle as above to spedify the font setting. both of them work well on my side. So currently I'm wondering whether this is a environment specific problem or project specific. I suggest you try testing the above code on your side or you can try using some different machine ( also can create a new project) to see whether the behavior differ. 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: Cannot change font in Webcontrol treeview node microsoft.public.dotnet.framework.aspnet.webcontrols:9926| thread-index: AcWIm8RzuphtOSxwT/yWPttbW7fCjQ== | X-WBNR-Posting-Host: 216.64.114.162 | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | Subject: Cannot change font in Webcontrol treeview node | Date: Thu, 14 Jul 2005 10:45:04 -0700 | Lines: 15 | Message-ID: <43706D4C-8E41-4E8C-B36E-C0B01E787***@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 | | I am use Webcontrol treeview, and I followed examples in the msdn document to | format the treeview control. | | <mytree:TreeView runat="server" | SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" | NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" AutoPostBack="True" | DefaultStyle="font-name:Tahoma;font-size:10pt" | </ mytree:TreeView> | | However the font does not change no matter what font name I specified in | font-name attribute. It always takes default. I am able to change font-size. | Please help. | Thanks, | Charts | | Thanks Steven,
I am rushing for another project now, so I will study your instructions and come back to the font issue later. Charts Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Charts, > > Thanks for your posting. > As for the TreeView font setting problem, based on my local test , i seems > that I can not reproduce the problem. My local test has done the following > steps: > > 1. Not using TreeNodeSrc file , just hard code some TreeNodes and use the > TreeView's Default Style to assign the font style, something like: > ==================== > <iewc:TreeView id="TreeView1" runat="server" width="100%" height="100%" > AutoPostBack="True" > DefaultStyle="font-family:Tahoma;font-weight:bold;color:yellow;"> > <iewc:TreeNode CheckBox="True" Text="Node0"> > <iewc:TreeNode CheckBox="True" Text="Node5"> > <iewc:TreeNode CheckBox="True" Text="Node21"> > <iewc:TreeNode CheckBox="True" Text="Node57"> > <iewc:TreeNode CheckBox="True" Text="Node69"></iewc:TreeNode> > <iewc:TreeNode CheckBox="True" Text="Node70"></iewc:TreeNode> > <iewc:TreeNode CheckBox="True" Text="Node71"></iewc:TreeNode> > </iewc:TreeNode> > ......................... > ========================= > > 2. Using the TreeNodeSrc and the treenode xml file you provided in the > former thread and use still use the DefaultStyle as above to spedify the > font setting. > > both of them work well on my side. So currently I'm wondering whether this > is a environment specific problem or project specific. I suggest you try > testing the above code on your side or you can try using some different > machine ( also can create a new project) to see whether the behavior differ. > > 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: Cannot change font in Webcontrol treeview node > | thread-index: AcWIm8RzuphtOSxwT/yWPttbW7fCjQ== > | X-WBNR-Posting-Host: 216.64.114.162 > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> > | Subject: Cannot change font in Webcontrol treeview node > | Date: Thu, 14 Jul 2005 10:45:04 -0700 > | Lines: 15 > | Message-ID: <43706D4C-8E41-4E8C-B36E-C0B01E787***@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:9926 > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols > | > | I am use Webcontrol treeview, and I followed examples in the msdn > document to > | format the treeview control. > | > | <mytree:TreeView runat="server" > | SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" > | NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" > AutoPostBack="True" > | DefaultStyle="font-name:Tahoma;font-size:10pt" > | </ mytree:TreeView> > | > | However the font does not change no matter what font name I specified in > | font-name attribute. It always takes default. I am able to change > font-size. > | Please help. > | Thanks, > | Charts > | > | > > Hi Steven,
I wonder if you can answer this question for me very quickly. I’ll go ahead posting too. I did that before but I cannot remember. How do I find out the page name in ASP, which I am currently using? I remembered it’s in Server or Application object collection, but could not find out. Thanks for help. Charts Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Charts, > > Thanks for your posting. > As for the TreeView font setting problem, based on my local test , i seems > that I can not reproduce the problem. My local test has done the following > steps: > > 1. Not using TreeNodeSrc file , just hard code some TreeNodes and use the > TreeView's Default Style to assign the font style, something like: > ==================== > <iewc:TreeView id="TreeView1" runat="server" width="100%" height="100%" > AutoPostBack="True" > DefaultStyle="font-family:Tahoma;font-weight:bold;color:yellow;"> > <iewc:TreeNode CheckBox="True" Text="Node0"> > <iewc:TreeNode CheckBox="True" Text="Node5"> > <iewc:TreeNode CheckBox="True" Text="Node21"> > <iewc:TreeNode CheckBox="True" Text="Node57"> > <iewc:TreeNode CheckBox="True" Text="Node69"></iewc:TreeNode> > <iewc:TreeNode CheckBox="True" Text="Node70"></iewc:TreeNode> > <iewc:TreeNode CheckBox="True" Text="Node71"></iewc:TreeNode> > </iewc:TreeNode> > ......................... > ========================= > > 2. Using the TreeNodeSrc and the treenode xml file you provided in the > former thread and use still use the DefaultStyle as above to spedify the > font setting. > > both of them work well on my side. So currently I'm wondering whether this > is a environment specific problem or project specific. I suggest you try > testing the above code on your side or you can try using some different > machine ( also can create a new project) to see whether the behavior differ. > > 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: Cannot change font in Webcontrol treeview node > | thread-index: AcWIm8RzuphtOSxwT/yWPttbW7fCjQ== > | X-WBNR-Posting-Host: 216.64.114.162 > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> > | Subject: Cannot change font in Webcontrol treeview node > | Date: Thu, 14 Jul 2005 10:45:04 -0700 > | Lines: 15 > | Message-ID: <43706D4C-8E41-4E8C-B36E-C0B01E787***@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:9926 > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols > | > | I am use Webcontrol treeview, and I followed examples in the msdn > document to > | format the treeview control. > | > | <mytree:TreeView runat="server" > | SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" > | NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" > AutoPostBack="True" > | DefaultStyle="font-name:Tahoma;font-size:10pt" > | </ mytree:TreeView> > | > | However the font does not change no matter what font name I specified in > | font-name attribute. It always takes default. I am able to change > font-size. > | Please help. > | Thanks, > | Charts > | > | > > Hi Charts,
Thanks for your followup. As for the ================= How do I find out the page name in ASP, which I am currently using? ================ Do you mean how to retrieve the page (currently executing )'s classname or page's aspx file name? For class name, you can simply use Page.GetType to retrieve it. For underlying aspx page file name, the HttpRequest.PhysicalPath property may helps, but this only works when you haven't used UrlRewriting in your asp.net web application. Hope helps. 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: Cannot change font in Webcontrol treeview node <c6$9ttQiFHA.***@TK2MSFTNGXA01.phx.gbl>| thread-index: AcWJRg1dc/xdanXZQY69Oliis5Z85Q== | X-WBNR-Posting-Host: 216.64.114.162 | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | References: <43706D4C-8E41-4E8C-B36E-C0B01E787***@microsoft.com> Show quoteHide quote | Subject: RE: Cannot change font in Webcontrol treeview node microsoft.public.dotnet.framework.aspnet.webcontrols:9946| Date: Fri, 15 Jul 2005 07:04:01 -0700 | Lines: 102 | Message-ID: <633A998D-2866-4935-962D-0A88F79FA***@microsoft.com> | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 8bit | 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, | I wonder if you can answer this question for me very quickly. I’ll go ahead | posting too. I did that before but I cannot remember. How do I find out the | page name in ASP, which I am currently using? I remembered it’s in Server or | Application object collection, but could not find out. Thanks for help. | Charts | | | "Steven Cheng[MSFT]" wrote: | | > Hi Charts, | > | > Thanks for your posting. | > As for the TreeView font setting problem, based on my local test , i seems | > that I can not reproduce the problem. My local test has done the following | > steps: | > | > 1. Not using TreeNodeSrc file , just hard code some TreeNodes and use the | > TreeView's Default Style to assign the font style, something like: | > ==================== | > <iewc:TreeView id="TreeView1" runat="server" width="100%" height="100%" | > AutoPostBack="True" | > DefaultStyle="font-family:Tahoma;font-weight:bold;color:yellow;"> | > <iewc:TreeNode CheckBox="True" Text="Node0"> | > <iewc:TreeNode CheckBox="True" Text="Node5"> | > <iewc:TreeNode CheckBox="True" Text="Node21"> | > <iewc:TreeNode CheckBox="True" Text="Node57"> | > <iewc:TreeNode CheckBox="True" Text="Node69"></iewc:TreeNode> | > <iewc:TreeNode CheckBox="True" Text="Node70"></iewc:TreeNode> | > <iewc:TreeNode CheckBox="True" Text="Node71"></iewc:TreeNode> | > </iewc:TreeNode> | > ......................... | > ========================= | > | > 2. Using the TreeNodeSrc and the treenode xml file you provided in the | > former thread and use still use the DefaultStyle as above to spedify the | > font setting. | > | > both of them work well on my side. So currently I'm wondering whether this | > is a environment specific problem or project specific. I suggest you try | > testing the above code on your side or you can try using some different | > machine ( also can create a new project) to see whether the behavior differ. | > | > 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: Cannot change font in Webcontrol treeview node | > | thread-index: AcWIm8RzuphtOSxwT/yWPttbW7fCjQ== | > | X-WBNR-Posting-Host: 216.64.114.162 | > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | > | Subject: Cannot change font in Webcontrol treeview node | > | Date: Thu, 14 Jul 2005 10:45:04 -0700 | > | Lines: 15 | > | Message-ID: <43706D4C-8E41-4E8C-B36E-C0B01E787***@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:9926 | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | > | | > | I am use Webcontrol treeview, and I followed examples in the msdn | > document to | > | format the treeview control. | > | | > | <mytree:TreeView runat="server" | > | SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" | > | NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" | > AutoPostBack="True" | > | DefaultStyle="font-name:Tahoma;font-size:10pt" | > | </ mytree:TreeView> | > | | > | However the font does not change no matter what font name I specified in | > | font-name attribute. It always takes default. I am able to change | > font-size. | > | Please help. | > | Thanks, | > | Charts | > | | > | | > | > | Thanks Steven,
That helps a lot. The font issue works too. I experienced some project changes recently and did not response to you sooner. Sorry about that. Thanks for your great help. Charts Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Charts, > > Thanks for your followup. > As for the > ================= > How do I find out the > page name in ASP, which I am currently using? > ================ > > Do you mean how to retrieve the page (currently executing )'s classname or > page's aspx file name? > > For class name, you can simply use Page.GetType to retrieve it. For > underlying aspx page file name, the > HttpRequest.PhysicalPath property may helps, but this only works when you > haven't used UrlRewriting in your asp.net > web application. > > Hope helps. 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: Cannot change font in Webcontrol treeview node > | thread-index: AcWJRg1dc/xdanXZQY69Oliis5Z85Q== > | X-WBNR-Posting-Host: 216.64.114.162 > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> > | References: <43706D4C-8E41-4E8C-B36E-C0B01E787***@microsoft.com> > <c6$9ttQiFHA.***@TK2MSFTNGXA01.phx.gbl> > | Subject: RE: Cannot change font in Webcontrol treeview node > | Date: Fri, 15 Jul 2005 07:04:01 -0700 > | Lines: 102 > | Message-ID: <633A998D-2866-4935-962D-0A88F79FA***@microsoft.com> > | MIME-Version: 1.0 > | Content-Type: text/plain; > | charset="Utf-8" > | Content-Transfer-Encoding: 8bit > | 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:9946 > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols > | > | Hi Steven, > | I wonder if you can answer this question for me very quickly. I’ll go > ahead > | posting too. I did that before but I cannot remember. How do I find out > the > | page name in ASP, which I am currently using? I remembered it’s in > Server or > | Application object collection, but could not find out. Thanks for help. > | Charts > | > | > | "Steven Cheng[MSFT]" wrote: > | > | > Hi Charts, > | > > | > Thanks for your posting. > | > As for the TreeView font setting problem, based on my local test , i > seems > | > that I can not reproduce the problem. My local test has done the > following > | > steps: > | > > | > 1. Not using TreeNodeSrc file , just hard code some TreeNodes and use > the > | > TreeView's Default Style to assign the font style, something like: > | > ==================== > | > <iewc:TreeView id="TreeView1" runat="server" width="100%" height="100%" > | > AutoPostBack="True" > | > DefaultStyle="font-family:Tahoma;font-weight:bold;color:yellow;"> > | > <iewc:TreeNode CheckBox="True" Text="Node0"> > | > <iewc:TreeNode CheckBox="True" Text="Node5"> > | > <iewc:TreeNode CheckBox="True" Text="Node21"> > | > <iewc:TreeNode CheckBox="True" Text="Node57"> > | > <iewc:TreeNode CheckBox="True" Text="Node69"></iewc:TreeNode> > | > <iewc:TreeNode CheckBox="True" Text="Node70"></iewc:TreeNode> > | > <iewc:TreeNode CheckBox="True" Text="Node71"></iewc:TreeNode> > | > </iewc:TreeNode> > | > ......................... > | > ========================= > | > > | > 2. Using the TreeNodeSrc and the treenode xml file you provided in the > | > former thread and use still use the DefaultStyle as above to spedify > the > | > font setting. > | > > | > both of them work well on my side. So currently I'm wondering whether > this > | > is a environment specific problem or project specific. I suggest you > try > | > testing the above code on your side or you can try using some different > | > machine ( also can create a new project) to see whether the behavior > differ. > | > > | > 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: Cannot change font in Webcontrol treeview node > | > | thread-index: AcWIm8RzuphtOSxwT/yWPttbW7fCjQ== > | > | X-WBNR-Posting-Host: 216.64.114.162 > | > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> > | > | Subject: Cannot change font in Webcontrol treeview node > | > | Date: Thu, 14 Jul 2005 10:45:04 -0700 > | > | Lines: 15 > | > | Message-ID: <43706D4C-8E41-4E8C-B36E-C0B01E787***@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:9926 > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols > | > | > | > | I am use Webcontrol treeview, and I followed examples in the msdn > | > document to > | > | format the treeview control. > | > | > | > | <mytree:TreeView runat="server" > | > | SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" > | > | NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" > | > AutoPostBack="True" > | > | DefaultStyle="font-name:Tahoma;font-size:10pt" > | > | </ mytree:TreeView> > | > | > | > | However the font does not change no matter what font name I specified > in > | > | font-name attribute. It always takes default. I am able to change > | > font-size. > | > | Please help. > | > | Thanks, > | > | Charts > | > | > | > | > | > > | > > | > > Glad to hear the nice update from you.
Also thank you for choosing Microsoft ! Enjoy .NET! 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: Cannot change font in Webcontrol treeview node <c6$9ttQiFHA.***@TK2MSFTNGXA01.phx.gbl> | thread-index: AcWT7xeceqDmxIhFSnu//WGlWp49kw== | X-WBNR-Posting-Host: 71.99.211.142 | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | References: <43706D4C-8E41-4E8C-B36E-C0B01E787***@microsoft.com> <633A998D-2866-4935-962D-0A88F79FA***@microsoft.com> <qD88DPziFHA.***@TK2MSFTNGXA01.phx.gbl> Show quoteHide quote | Subject: RE: Cannot change font in Webcontrol treeview node microsoft.public.dotnet.framework.aspnet.webcontrols:10158| Date: Thu, 28 Jul 2005 20:39:15 -0700 | Lines: 180 | Message-ID: <8C554168-0D63-4DFD-8E37-591DC6B8A***@microsoft.com> | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 8bit | 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!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl | Xref: TK2MSFTNGXA01.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols ¢ll go | | Thanks Steven, | That helps a lot. The font issue works too. I experienced some project | changes recently and did not response to you sooner. Sorry about that. | Thanks for your great help. Charts | | | "Steven Cheng[MSFT]" wrote: | | > Hi Charts, | > | > Thanks for your followup. | > As for the | > ================= | > How do I find out the | > page name in ASP, which I am currently using? | > ================ | > | > Do you mean how to retrieve the page (currently executing )'s classname or | > page's aspx file name? | > | > For class name, you can simply use Page.GetType to retrieve it. For | > underlying aspx page file name, the | > HttpRequest.PhysicalPath property may helps, but this only works when you | > haven't used UrlRewriting in your asp.net | > web application. | > | > Hope helps. 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: Cannot change font in Webcontrol treeview node | > | thread-index: AcWJRg1dc/xdanXZQY69Oliis5Z85Q== | > | X-WBNR-Posting-Host: 216.64.114.162 | > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | > | References: <43706D4C-8E41-4E8C-B36E-C0B01E787***@microsoft.com> | > <c6$9ttQiFHA.***@TK2MSFTNGXA01.phx.gbl> | > | Subject: RE: Cannot change font in Webcontrol treeview node | > | Date: Fri, 15 Jul 2005 07:04:01 -0700 | > | Lines: 102 | > | Message-ID: <633A998D-2866-4935-962D-0A88F79FA***@microsoft.com> | > | MIME-Version: 1.0 | > | Content-Type: text/plain; | > | charset="Utf-8" | > | Content-Transfer-Encoding: 8bit | > | 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:9946 | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | > | | > | Hi Steven, | > | I wonder if you can answer this question for me very quickly. Iâ€℠| > ahead ¢s in | > | posting too. I did that before but I cannot remember. How do I find out | > the | > | page name in ASP, which I am currently using? I remembered itâ€℠Show quoteHide quote | > Server or Text="Node69"></iewc:TreeNode>| > | Application object collection, but could not find out. Thanks for help. | > | Charts | > | | > | | > | "Steven Cheng[MSFT]" wrote: | > | | > | > Hi Charts, | > | > | > | > Thanks for your posting. | > | > As for the TreeView font setting problem, based on my local test , i | > seems | > | > that I can not reproduce the problem. My local test has done the | > following | > | > steps: | > | > | > | > 1. Not using TreeNodeSrc file , just hard code some TreeNodes and use | > the | > | > TreeView's Default Style to assign the font style, something like: | > | > ==================== | > | > <iewc:TreeView id="TreeView1" runat="server" width="100%" height="100%" | > | > AutoPostBack="True" | > | > DefaultStyle="font-family:Tahoma;font-weight:bold;color:yellow;"> | > | > <iewc:TreeNode CheckBox="True" Text="Node0"> | > | > <iewc:TreeNode CheckBox="True" Text="Node5"> | > | > <iewc:TreeNode CheckBox="True" Text="Node21"> | > | > <iewc:TreeNode CheckBox="True" Text="Node57"> | > | > <iewc:TreeNode CheckBox="True" | > | > <iewc:TreeNode CheckBox="True" Text="Node70"></iewc:TreeNode>| > | > <iewc:TreeNode CheckBox="True" Text="Node71"></iewc:TreeNode>Show quoteHide quote | > | > </iewc:TreeNode> | > | > ......................... | > | > ========================= | > | > | > | > 2. Using the TreeNodeSrc and the treenode xml file you provided in the | > | > former thread and use still use the DefaultStyle as above to spedify | > the | > | > font setting. | > | > | > | > both of them work well on my side. So currently I'm wondering whether | > this | > | > is a environment specific problem or project specific. I suggest you | > try | > | > testing the above code on your side or you can try using some different | > | > machine ( also can create a new project) to see whether the behavior | > differ. | > | > | > | > 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: Cannot change font in Webcontrol treeview node | > | > | thread-index: AcWIm8RzuphtOSxwT/yWPttbW7fCjQ== | > | > | X-WBNR-Posting-Host: 216.64.114.162 | > | > | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | > | > | Subject: Cannot change font in Webcontrol treeview node | > | > | Date: Thu, 14 Jul 2005 10:45:04 -0700 | > | > | Lines: 15 | > | > | Message-ID: <43706D4C-8E41-4E8C-B36E-C0B01E787***@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:9926 | > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | > | > | | > | > | I am use Webcontrol treeview, and I followed examples in the msdn | > | > document to | > | > | format the treeview control. | > | > | | > | > | <mytree:TreeView runat="server" | > | > | SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1" | > | > | NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" | > | > AutoPostBack="True" | > | > | DefaultStyle="font-name:Tahoma;font-size:10pt" | > | > | </ mytree:TreeView> | > | > | | > | > | However the font does not change no matter what font name I specified | > in | > | > | font-name attribute. It always takes default. I am able to change | > | > font-size. | > | > | Please help. | > | > | Thanks, | > | > | Charts | > | > | | > | > | | > | > | > | > | > | | > | > |
REPOST: How can I change the color of the Selected Item in a list
TREENODETYPES attribute does not work IExtenderProvider a dropdown list in the "Properties" window Stack Over Flow Message in IE Calling an ASP File From ASP.net page Add UserControl on CodeBeheind Send email bu clicking button Datagrid navigation problem asp.net 2.0: Webcontrols in Library |
|||||||||||||||||||||||