xml控件可见性 [英] xml control visibility
问题描述
如何打开或关闭xml控件的可见性?
<%@ Control Language =" c#" AutoEventWireup =" false"
Codebehind =" TopNavBar.ascx.cs" Inherits =" compass.user_controls.TopNavBar"
TargetSchema =" http://schemas.microsoft.com/intellisense/ie5"%>
< table CELLSPACING = QUOT; 0" CELLPADDING = QUOT; 0" border =" 0">
< colgroup span =" 1"对齐= QUOT;左" width =" 50%">
< / colgroup>
< colgroup span =" 1"对齐= QUOT;右" width =" 50%">
< / colgroup>
< tr>
< td>
< asp:Xml Runat =" server" DocumentSource =" ../ sitemap.xml"
TransformSource =" ../ topnavigationbar.xslt"
id =" Xml1">< / asp :Xml>
< / td>
< td>
< form style =" MARGIN:0px"名称= QUOT; frmSearch" action =" search.asp"
method =" post">
搜索< input type =" text"大小= QUOT; 25"命名= QUOT; txtQuery"> < A
href =" javascript :document.frmSearch.submit()">
< IMG src ="图像/ go.gif"对齐= QUOT; absMiddle" border =" 0">< / A>
< / form>
< / td>
< / tr>
< / table>
这是背后的代码:
namespace compass.user_controls
{
使用System;
使用System.Collections;
使用System.Data;
使用System.Drawing;
使用System.Web;
使用System.Web.UI.WebControls;
使用System.Web .UI.HtmlControls;
使用System.Xml;
使用compass.ClassFiles;
///< summary>
/// TopNavBar的摘要说明。
///< / summary>
公共类TopNavBar:System.Web.UI。 UserControl
{
protected System.Web.UI.WebControls.Xml Xml1;
protected System.Web.UI.WebControls.Repeater Repeater1;
private void Page_Load(object sender,System.EventArgs e)
{
//用户代码初始化th e page这里
}
#region Web表单设计器生成的代码
覆盖protected void OnInit(EventArgs e )
{
//
// CODEGEN:ASP.NET Web窗体设计器需要此调用。
//
InitializeComponent();
base.OnInit(e);
}
///< summary>
/// Designer支持所需的方法 - 不要使用代码编辑器修改
///此方法的内容。
///< / summary>
private void InitializeComponent()
{
this.Load + = new System.EventHandler(this.Page_Load);
}
#endregion
}
}
此外,xslt文件生成无序列表。有没有办法在后面的代码中为其中一个列表项设置
可见性?
例如,如果有五个列表项是显示并且我想隐藏其中一个项目的
可见性,有没有办法做到这一点?
How can I turn the visibility of the xml control on or off?
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="TopNavBar.ascx.cs" Inherits="compass.user_controls.TopNavBar"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<table cellSpacing="0" cellPadding="0" border="0">
<colgroup span="1" align="left" width="50%">
</colgroup>
<colgroup span="1" align="right" width="50%">
</colgroup>
<tr>
<td>
<asp:Xml Runat="server" DocumentSource="../sitemap.xml"
TransformSource="../topnavigationbar.xslt"
id="Xml1"></asp:Xml>
</td>
<td>
<form style="MARGIN: 0px" name="frmSearch" action="search.asp"
method="post">
Search <input type="text" size="25" name="txtQuery"> <A
href="javascript:document.frmSearch.submit()">
<IMG src="images/go.gif" align="absMiddle" border="0"></A>
</form>
</td>
</tr>
</table>
This is the code behind:
namespace compass.user_controls
{
using System;
using System.Collections;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
using compass.ClassFiles;
/// <summary>
/// Summary description for TopNavBar.
/// </summary>
public class TopNavBar : System.Web.UI.UserControl
{
protected System.Web.UI.WebControls.Xml Xml1;
protected System.Web.UI.WebControls.Repeater Repeater1;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
Also, the xslt file generates an unordered list. Is there a way to set the
visibility for one of the list items on or off in the code behind?
For example, if five list items are displaying and I want to hide the
visibility of one of the items, is there a way to do this?
推荐答案
你好-D-,
Xml控件有Visible属性,可以设置为True / False
- >如何打开或关闭xml控件的可见性?
- >
- > <%@ Control Language =" c#" AutoEventWireup =" false"
- > Codebehind =" TopNavBar.ascx.cs"
- > Inherits =" compass.user_controls.TopNavBar"
- > TargetSchema =" http://schemas.microsoft.com/intellisense/ie5"%>
- > < table cellSpacing =" 0" CELLPADDING = QUOT; 0" border =" 0">
- > < colgroup span =" 1"对齐= QUOT;左" width =" 50%">
- > < / colgroup>
- > < colgroup span =" 1"对齐= QUOT;右" width =" 50%">
- > < / colgroup>
- > < tr>
- > < td>
- > < asp:Xml Runat =" server" DocumentSource =" ../ sitemap.xml"
- > TransformSource =" ../ topnavigationbar.xslt"
- > id =" Xml1">< / asp:Xml>
- > < / td>
- > < td>
- > < form style =" MARGIN:0px"名称= QUOT; frmSearch" action =" search.asp"
- > method =" post">
- >搜索< input type =" text"大小= QUOT; 25"命名= QUOT; txtQuery"> < A
- > href =" javascript :document.frmSearch.submit()">
- > < IMG src =" images / go.gif"对齐= QUOT; absMiddle" border =" 0">< / A>
- > < / form>
- > < / td>
- > < / tr>
- > < / table>
- >这是背后的代码:
- >
- > namespace compass.user_controls
- > {
- >使用系统;
- >使用System.Collections;
- >使用System.Data;
- >使用System.Drawing;
- >使用System.Web;
- >使用System.Web.UI.WebControls;
- >使用System.Web.UI.HtmlControls;
- >使用System.Xml;
- >使用compass.ClassFiles;
- > ///< summary>
- > /// TopNavBar的摘要描述。
- > ///< / summary>
- > public class TopNavBar:System.Web.UI.UserControl
- > {
- > protected System.Web.UI.WebControls.Xml Xml1;
- > protected System.Web.UI.WebControls.Repeater Repeater1;
- > private void Page_Load(object sender,System.EventArgs e)
- > {
- > //将用户代码置于此处初始化页面
- > }
- >
- > #region Web窗体设计器生成的代码
- > override protected void OnInit(EventArgs e)
- > {
- > //
- > // CODEGEN:ASP.NET Web表单需要此调用
- >设计师。
- > //
- > InitializeComponent();
- > base.OnInit(e);
- > }
- > ///< summary>
- > ///支持Designer的必需方法 - 不要修改
- > ///使用代码编辑器的方法的内容。
- > ///< / summary>
- > private void InitializeComponent()
- > {
- > this.Load + = new System.EventHandler(this.Page_Load);
- > }
- > #endregion
- > }
- > }
- >此外,xslt文件生成无序列表。有没有办法
- >在代码中打开或关闭其中一个列表项的可见性
- >落后?
- >
- >例如,如果显示五个列表项,我想隐藏
- >其中一个项目的可见性,有没有办法做到这一点?
- >
---
WBR,>
Michael Nemtsev ::博客: http://spaces.msn.com/laflour
有时一个人仍忠于某一事业,因为它的对手不会因为b $ b不再是平淡无奇的。 (c)Friedrich Nietzsche
Hello -D-,
Xml control has Visible property that can be set in True/False
-> How can I turn the visibility of the xml control on or off?
->
-> <%@ Control Language="c#" AutoEventWireup="false"
-> Codebehind="TopNavBar.ascx.cs"
-> Inherits="compass.user_controls.TopNavBar"
-> TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
-> <table cellSpacing="0" cellPadding="0" border="0">
-> <colgroup span="1" align="left" width="50%">
-> </colgroup>
-> <colgroup span="1" align="right" width="50%">
-> </colgroup>
-> <tr>
-> <td>
-> <asp:Xml Runat="server" DocumentSource="../sitemap.xml"
-> TransformSource="../topnavigationbar.xslt"
-> id="Xml1"></asp:Xml>
-> </td>
-> <td>
-> <form style="MARGIN: 0px" name="frmSearch" action="search.asp"
-> method="post">
-> Search <input type="text" size="25" name="txtQuery"> <A
-> href="javascript:document.frmSearch.submit()">
-> <IMG src="images/go.gif" align="absMiddle" border="0"></A>
-> </form>
-> </td>
-> </tr>
-> </table>
-> This is the code behind:
->
-> namespace compass.user_controls
-> {
-> using System;
-> using System.Collections;
-> using System.Data;
-> using System.Drawing;
-> using System.Web;
-> using System.Web.UI.WebControls;
-> using System.Web.UI.HtmlControls;
-> using System.Xml;
-> using compass.ClassFiles;
-> /// <summary>
-> /// Summary description for TopNavBar.
-> /// </summary>
-> public class TopNavBar : System.Web.UI.UserControl
-> {
-> protected System.Web.UI.WebControls.Xml Xml1;
-> protected System.Web.UI.WebControls.Repeater Repeater1;
-> private void Page_Load(object sender, System.EventArgs e)
-> {
-> // Put user code to initialize the page here
-> }
->
-> #region Web Form Designer generated code
-> override protected void OnInit(EventArgs e)
-> {
-> //
-> // CODEGEN: This call is required by the ASP.NET Web Form
-> Designer.
-> //
-> InitializeComponent();
-> base.OnInit(e);
-> }
-> /// <summary>
-> /// Required method for Designer support - do not modify
-> /// the contents of this method with the code editor.
-> /// </summary>
-> private void InitializeComponent()
-> {
-> this.Load += new System.EventHandler(this.Page_Load);
-> }
-> #endregion
-> }
-> }
-> Also, the xslt file generates an unordered list. Is there a way to
-> set the visibility for one of the list items on or off in the code
-> behind?
->
-> For example, if five list items are displaying and I want to hide the
-> visibility of one of the items, is there a way to do this?
->
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Michael,
感谢您的信息。我正在用户控件中使用xml控件,我已经在我的所有页面中放置了
。在某些页面上,我想将xml控件的
可见性变为false。
如何在我的aspx中指定xml控件可见性页面,所以我
可以独立控制每个页面的可见性吗?
谢谢,
-D-
" Michael Nemtsev" <是ne ***** @ msn.com>在消息中写道
news:17 *************************** @ msnews.microsof t.com .. 。
Michael,
Thanks for the info. I''m using the xml control within a user control that I
have placed in all my pages. On some of the pages, I want to turn the
visibility of the xml control to false.
How would I specify the xml control visibility in my aspx pages, so that I
can control the visibility independently for each one of my pages?
Thanks,
-D-
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:17***************************@msnews.microsof t.com...
你好-D-,
Xml控件有Visible属性,可以设置为True / False
- >如何打开或关闭xml控件的可见性?
- >
- > <%@ Control Language =" c#" AutoEventWireup =" false"
- > Codebehind =" TopNavBar.ascx.cs"
- > Inherits =" compass.user_controls.TopNavBar"
- > TargetSchema =" http://schemas.microsoft.com/intellisense/ie5"%>
- > < table cellSpacing =" 0" CELLPADDING = QUOT; 0" border =" 0">
- > < colgroup span =" 1"对齐= QUOT;左" width =" 50%">
- > < / colgroup>
- > < colgroup span =" 1"对齐= QUOT;右" width =" 50%">
- > < / colgroup>
- > < tr>
- > < td>
- > < asp:Xml Runat =" server" DocumentSource =" ../ sitemap.xml"
- > TransformSource =" ../ topnavigationbar.xslt"
- > id =" Xml1">< / asp:Xml>
- > < / td>
- > < td>
- > < form style =" MARGIN:0px"名称= QUOT; frmSearch" action =" search.asp"
- > method =" post">
- >搜索< input type =" text"大小= QUOT; 25"命名= QUOT; txtQuery"> < A
- > href =" javascript :document.frmSearch.submit()">
- > < IMG src =" images / go.gif"对齐= QUOT; absMiddle" border =" 0">< / A>
- > < / form>
- > < / td>
- > < / tr>
- > < / table>
- >这是背后的代码:
- >
- > namespace compass.user_controls
- > {
- >使用系统;
- >使用System.Collections;
- >使用System.Data;
- >使用System.Drawing;
- >使用System.Web;
- >使用System.Web.UI.WebControls;
- >使用System.Web.UI.HtmlControls;
- >使用System.Xml;
- >使用compass.ClassFiles;
- > ///< summary>
- > /// TopNavBar的摘要描述。
- > ///< / summary>
- > public class TopNavBar:System.Web.UI.UserControl
- > {
- > protected System.Web.UI.WebControls.Xml Xml1;
- > protected System.Web.UI.WebControls.Repeater Repeater1;
- > private void Page_Load(object sender,System.EventArgs e)
- > {
- > //将用户代码置于此处初始化页面
- > }
- >
- > #region Web窗体设计器生成的代码
- >覆盖受保护的void OnInit(EventArgs e)
- > {
- > //
- > // CODEGEN:ASP.NET Web表单需要此调用
- >设计师。
- > //
- > InitializeComponent();
- > base.OnInit(e);
- > }
- > ///< summary>
- > ///支持Designer的必需方法 - 不要修改
- > ///使用代码编辑器的方法的内容。
- > ///< / summary>
- > private void InitializeComponent()
- > {
- > this.Load + = new System.EventHandler(this.Page_Load);
- > }
- > #endregion
- > }
- > }
- >此外,xslt文件生成无序列表。有没有办法
- >在代码中打开或关闭其中一个列表项的可见性
- >落后?
- >
- >例如,如果显示五个列表项,我想隐藏
- >其中一个项目的可见性,有没有办法做到这一点?
- >
---
WBR,
Michael Nemtsev ::博客: http://spaces.msn.com/laflour
有时一个人仍然忠于一个事业,只因为它的反对者做了b $ b不会不再平淡无奇。 (c)Friedrich Nietzsche
Hello -D-,
Xml control has Visible property that can be set in True/False
-> How can I turn the visibility of the xml control on or off?
->
-> <%@ Control Language="c#" AutoEventWireup="false"
-> Codebehind="TopNavBar.ascx.cs"
-> Inherits="compass.user_controls.TopNavBar"
-> TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
-> <table cellSpacing="0" cellPadding="0" border="0">
-> <colgroup span="1" align="left" width="50%">
-> </colgroup>
-> <colgroup span="1" align="right" width="50%">
-> </colgroup>
-> <tr>
-> <td>
-> <asp:Xml Runat="server" DocumentSource="../sitemap.xml"
-> TransformSource="../topnavigationbar.xslt"
-> id="Xml1"></asp:Xml>
-> </td>
-> <td>
-> <form style="MARGIN: 0px" name="frmSearch" action="search.asp"
-> method="post">
-> Search <input type="text" size="25" name="txtQuery"> <A
-> href="javascript:document.frmSearch.submit()">
-> <IMG src="images/go.gif" align="absMiddle" border="0"></A>
-> </form>
-> </td>
-> </tr>
-> </table>
-> This is the code behind:
->
-> namespace compass.user_controls
-> {
-> using System;
-> using System.Collections;
-> using System.Data;
-> using System.Drawing;
-> using System.Web;
-> using System.Web.UI.WebControls;
-> using System.Web.UI.HtmlControls;
-> using System.Xml;
-> using compass.ClassFiles;
-> /// <summary>
-> /// Summary description for TopNavBar.
-> /// </summary>
-> public class TopNavBar : System.Web.UI.UserControl
-> {
-> protected System.Web.UI.WebControls.Xml Xml1;
-> protected System.Web.UI.WebControls.Repeater Repeater1;
-> private void Page_Load(object sender, System.EventArgs e)
-> {
-> // Put user code to initialize the page here
-> }
->
-> #region Web Form Designer generated code
-> override protected void OnInit(EventArgs e)
-> {
-> //
-> // CODEGEN: This call is required by the ASP.NET Web Form
-> Designer.
-> //
-> InitializeComponent();
-> base.OnInit(e);
-> }
-> /// <summary>
-> /// Required method for Designer support - do not modify
-> /// the contents of this method with the code editor.
-> /// </summary>
-> private void InitializeComponent()
-> {
-> this.Load += new System.EventHandler(this.Page_Load);
-> }
-> #endregion
-> }
-> }
-> Also, the xslt file generates an unordered list. Is there a way to
-> set the visibility for one of the list items on or off in the code
-> behind?
->
-> For example, if five list items are displaying and I want to hide the
-> visibility of one of the items, is there a way to do this?
->
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche
你好-D-,
< asp:Xml RUNAT = QUOT;服务器" Visible = false ..>
顺便说一句,如果你用你的页面打开IE,你可以调用上下文菜单并按ViewSource,
找到html标签(可能< div> ;)负责你的Xml控件和
然后使用JS document.getcontrolbyid()。style.display来控制你的可视性
动态
- >迈克尔,
- >
- >谢谢(你的)信息。我正在用户控件中使用xml控件
- >我放在我的所有页面中。在某些页面上,我想要
- >将xml控件的可见性变为false。
- >
- >如何在我的aspx页面中指定xml控件可见性,所以
- >我可以独立控制每个人的可见度
- >页面?
- >
- >谢谢,
- > -D-
- > Michael Nemtsev <是ne ***** @ msn.com>在消息中写道
- >新闻:17 *************************** @ msnews.microsof t.com ...
- > ;
Hello -D-,
<asp:Xml Runat="server" Visible=false ..>
BTW, if you open IE with you page you can call context menu and press ViewSource,
found with html tag (probably <div>) is responsible for you Xml control and
then use JS document.getcontrolbyid().style.display to contol you visibility
dynamically
-> Michael,
->
-> Thanks for the info. I''m using the xml control within a user control
-> that I have placed in all my pages. On some of the pages, I want to
-> turn the visibility of the xml control to false.
->
-> How would I specify the xml control visibility in my aspx pages, so
-> that I can control the visibility independently for each one of my
-> pages?
->
-> Thanks,
-> -D-
-> "Michael Nemtsev" <ne*****@msn.com> wrote in message
-> news:17***************************@msnews.microsof t.com...
->
Hello -D-,
Xml控件具有Visible属性,可以设置为True / False
> - >如何打开或关闭xml控件的可见性?
- >
- > <%@ Control Language =" c#" AutoEventWireup =" false"
- > Codebehind =" TopNavBar.ascx.cs"
- > Inherits =" compass.user_controls.TopNavBar"
- > TargetSchema =" http://schemas.microsoft.com/intellisense/ie5"%>
- > < table cellSpacing =" 0" CELLPADDING = QUOT; 0" border =" 0">
- > < colgroup span =" 1"对齐= QUOT;左" width =" 50%">
- > < / colgroup>
- > < colgroup span =" 1"对齐= QUOT;右" width =" 50%">
- > < / colgroup>
- > < tr>
- > < td>
- > < asp:Xml Runat =" server" DocumentSource =" ../ sitemap.xml"
- > TransformSource =" ../ topnavigationbar.xslt"
- > id =" Xml1">< / asp:Xml>
- > < / td>
- > < td>
- > < form style =" MARGIN:0px"名称= QUOT; frmSearch" action =" search.asp"
- > method =" post">
- >搜索< input type =" text"大小= QUOT; 25"命名= QUOT; txtQuery"> < A
- > href =" javascript :document.frmSearch.submit()">
- > < IMG src =" images / go.gif"对齐= QUOT; absMiddle" border =" 0">< / A>
- > < / form>
- > < / td>
- > < / tr>
- > < / table>
- >这是背后的代码:
- >
- > namespace compass.user_controls
- > {
- >使用系统;
- >使用System.Collections;
- >使用System.Data;
- >使用System.Drawing;
- >使用System.Web;
- >使用System.Web.UI.WebControls;
- >使用System.Web.UI.HtmlControls;
- >使用System.Xml;
- >使用compass.ClassFiles;
- > ///< summary>
- > /// TopNavBar的摘要描述。
- > ///< / summary>
- > public class TopNavBar:System.Web.UI.UserControl
- > {
- > protected System.Web.UI.WebControls.Xml Xml1;
- > protected System.Web.UI.WebControls.Repeater Repeater1;
- > private void Page_Load(object sender,System.EventArgs e)
- > {
- > //将用户代码置于此处初始化页面
- > }
- >
- > #region Web窗体设计器生成的代码
- >覆盖受保护的void OnInit(EventArgs e)
- > {
- > //
- > // CODEGEN:ASP.NET Web表单需要此调用
- >设计师。
- > //
- > InitializeComponent();
- > base.OnInit(e);
- > }
- > ///< summary>
- > ///支持Designer的必需方法 - 不要修改
- > ///使用代码编辑器的方法的内容。
- > ///< / summary>
- > private void InitializeComponent()
- > {
- > this.Load + = new System.EventHandler(this.Page_Load);
- > }
- > #endregion
- > }
- > }
- >此外,xslt文件生成无序列表。有没有办法
- >在代码中打开或关闭其中一个列表项的可见性
- >落后?
- >
- >例如,如果显示五个列表项并且我想隐藏
- >>其中一个项目的可见性,有没有办法做到这一点?
- >
---
WBR,
Michael Nemtsev ::博客: http://spaces.msn.com/laflour
有时一个人仍然忠诚于一个原因只是因为它的对手
- >不是
- >不再是平淡无奇的。 (c)Friedrich Nietzsche
Hello -D-,
Xml control has Visible property that can be set in True/False
-> How can I turn the visibility of the xml control on or off?
->
-> <%@ Control Language="c#" AutoEventWireup="false"
-> Codebehind="TopNavBar.ascx.cs"
-> Inherits="compass.user_controls.TopNavBar"
-> TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
-> <table cellSpacing="0" cellPadding="0" border="0">
-> <colgroup span="1" align="left" width="50%">
-> </colgroup>
-> <colgroup span="1" align="right" width="50%">
-> </colgroup>
-> <tr>
-> <td>
-> <asp:Xml Runat="server" DocumentSource="../sitemap.xml"
-> TransformSource="../topnavigationbar.xslt"
-> id="Xml1"></asp:Xml>
-> </td>
-> <td>
-> <form style="MARGIN: 0px" name="frmSearch" action="search.asp"
-> method="post">
-> Search <input type="text" size="25" name="txtQuery"> <A
-> href="javascript:document.frmSearch.submit()">
-> <IMG src="images/go.gif" align="absMiddle" border="0"></A>
-> </form>
-> </td>
-> </tr>
-> </table>
-> This is the code behind:
->
-> namespace compass.user_controls
-> {
-> using System;
-> using System.Collections;
-> using System.Data;
-> using System.Drawing;
-> using System.Web;
-> using System.Web.UI.WebControls;
-> using System.Web.UI.HtmlControls;
-> using System.Xml;
-> using compass.ClassFiles;
-> /// <summary>
-> /// Summary description for TopNavBar.
-> /// </summary>
-> public class TopNavBar : System.Web.UI.UserControl
-> {
-> protected System.Web.UI.WebControls.Xml Xml1;
-> protected System.Web.UI.WebControls.Repeater Repeater1;
-> private void Page_Load(object sender, System.EventArgs e)
-> {
-> // Put user code to initialize the page here
-> }
->
-> #region Web Form Designer generated code
-> override protected void OnInit(EventArgs e)
-> {
-> //
-> // CODEGEN: This call is required by the ASP.NET Web Form
-> Designer.
-> //
-> InitializeComponent();
-> base.OnInit(e);
-> }
-> /// <summary>
-> /// Required method for Designer support - do not modify
-> /// the contents of this method with the code editor.
-> /// </summary>
-> private void InitializeComponent()
-> {
-> this.Load += new System.EventHandler(this.Page_Load);
-> }
-> #endregion
-> }
-> }
-> Also, the xslt file generates an unordered list. Is there a way
to
-> set the visibility for one of the list items on or off in the code
-> behind?
->
-> For example, if five list items are displaying and I want to hide
the
-> visibility of one of the items, is there a way to do this?
->
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do
-> not
-> cease to be insipid." (c) Friedrich Nietzsche
---
WBR,
Michael Nemtsev ::博客: http://spaces.msn.com/laflour
有时一个人仍忠于某一事业,只因为它的反对者不会因为b $ b不再是平淡无奇的。 (c)Friedrich Nietzsche
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
这篇关于xml控件可见性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!