• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.ImageButton类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Web.UI.WebControls.ImageButton的典型用法代码示例。如果您正苦于以下问题:C# ImageButton类的具体用法?C# ImageButton怎么用?C# ImageButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ImageButton类属于System.Web.UI.WebControls命名空间,在下文中一共展示了ImageButton类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: createGameField

        protected void createGameField(int gridSize)
        {
            ImageButton tb = new ImageButton();

            if (ListOfButtons != null)
                ListOfButtons.Clear();

            for (int i = 1; i <= gridSize; i++)
            {
                tb = new ImageButton();
                tb.ID = i.ToString();
                tb.Width = 40;
                tb.Height = 40;
                tb.BackColor = System.Drawing.Color.White;

                tb.ImageUrl = @"https://upload.wikimedia.org/wikipedia/commons/c/c7/Minesweeper_unopened_square.svg";

                tb.Click += new ImageClickEventHandler(this.Button_Click);

                gameField.Controls.Add(tb);

                ListOfButtons.Add(tb);
            }

            gameField.Width = (int)(Math.Sqrt(gridSize) * 40);
            gameField.Height = gameField.Width;
        }
开发者ID:SebastianUdden,项目名称:FrontRowCollaboration,代码行数:27,代码来源:AwesomeGridSweeper.aspx.cs


示例2: OnInit

        protected override void OnInit(EventArgs e)
        {
            dataTab = this.TabViewDetails.NewTabPage("Videos");
            dataTab.Controls.Add(this.tabVideos);

            btnDownloadVideos = dataTab.Menu.NewImageButton();
            btnDownloadVideos.ID = "btnDownloadVideos";
            btnDownloadVideos.ClientIDMode = System.Web.UI.ClientIDMode.Static;
            btnDownloadVideos.AlternateText = "Download";
            btnDownloadVideos.ImageUrl = GlobalSettings.Path + "/narnoo/distributors/icons/icons_download.png";
            btnDownloadVideos.ValidationGroup = "";

            btnAddToChannel = dataTab.Menu.NewImageButton();
            btnAddToChannel.ID = "btnAddToChannel";
            btnAddToChannel.ClientIDMode = System.Web.UI.ClientIDMode.Static;
            btnAddToChannel.AlternateText = "AddToChannel";
            btnAddToChannel.ImageUrl = GlobalSettings.Path + "/narnoo/distributors/icons/icons_add_to_channel.png";
            btnAddToChannel.ValidationGroup = "";

            btnDeleteVideo = dataTab.Menu.NewImageButton();
            btnDeleteVideo.ID = "btnDeleteVideo";
            btnDeleteVideo.ClientIDMode = System.Web.UI.ClientIDMode.Static;
            btnDeleteVideo.AlternateText = "Delete";
            btnDeleteVideo.ImageUrl = GlobalSettings.Path + "/narnoo/distributors/icons/icons_delete_video.png";
            btnDeleteVideo.ValidationGroup = "";

            this.pagerVideos.PageIndexChanged += pagerVideos_PageIndexChanged;
        }
开发者ID:Narnoo,项目名称:Narnoo-ASP.NET-SDK,代码行数:28,代码来源:Videos.aspx.cs


示例3: initPage

        protected void initPage()
        {
            RegistedUser MySelf = new RegistedUser();
            MySelf = (RegistedUser)Session["User"];
            MySelf.Userservice = new UserServiceClasses.RegisterUserService();
            List<Message> PublishMessageList =  MySelf.Userservice.GetUserUreadPublicMessages(MySelf.UserName);
            Panel single = new Panel();
            foreach (Message singleMessage in PublishMessageList)
            {

                HyperLink MessageFrom = new HyperLink();
                MessageFrom.Text = singleMessage.userFrom.NickName;
                MessageFrom.NavigateUrl = "~/WebPage/UserOwnZonePage/UserOwnZonePage/UserOwnZonePage.aspx?VisitedUserID=" + singleMessage.userFrom.UserName; ;
                single.Controls.Add(MessageFrom);
                Label MessageCon = new Label();
                MessageCon.Text = singleMessage.content;
                single.Controls.Add(MessageCon);

                ImageButton deleteButton = new ImageButton();
                deleteButton.ImageUrl = "~/newpng/Trash.png";
                deleteButton.Height = new Unit(48);
                deleteButton.ID = singleMessage.ID.ToString();
                deleteButton.OnClientClick += "DeleteItem";
                deleteButton.Click += new ImageClickEventHandler(deleteButton_Click);
                single.Controls.Add(deleteButton);

            }
            this.ALLPublicMessage.Controls.Add(single);
        }
开发者ID:xiasiliang-hit,项目名称:purchase_shop,代码行数:29,代码来源:UserPublicMessagePage.aspx.cs


示例4: InitializeCell

 public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
 {
     base.InitializeCell(cell, cellType, rowState, rowIndex);
     if (cell == null)
     {
         throw new ArgumentNullException("cell");
     }
     ImageButton button3 = new ImageButton {
         ID = "rise",
         ImageUrl = this.RiseUrl,
         CommandName = "Rise"
     };
     ImageButton child = button3;
     ImageButton button4 = new ImageButton {
         ID = "fall",
         ImageUrl = this.FallUrl,
         CommandName = "Fall"
     };
     ImageButton button2 = button4;
     if (cellType == DataControlCellType.DataCell)
     {
         cell.Controls.Add(button2);
         cell.Controls.Add(child);
     }
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:25,代码来源:SortImageColumn.cs


示例5: SearchTask2Json

        private void SearchTask2Json(string task)
        {
            DataTable dtSearchTask = Library.Data.JSONToDataTable(task);
               int searchTotal = dtSearchTask.Rows.Count;

            for (int i = 0; i < searchTotal; i++)
               {
               ImageButton imgBtn = new ImageButton();
               imgBtn.ID = i.ToString();
               imgBtn.ImageUrl = "/img/poster.png";
               imgBtn.Width = 50;
               imgBtn.Height = 50;

               HyperLink hl = new HyperLink();
               hl.ID = i.ToString();
               hl.Text = dtSearchTask.Rows[i]["TaskTitle"].ToString();

               Label lbl = new Label();
               lbl.ID = i.ToString();
               lbl.Text = dtSearchTask.Rows[i]["TaskDetail"].ToString()+"<br /> <hr />";

               pnlSearchTask.Controls.Add(imgBtn);
               pnlSearchTask.Controls.Add(hl);
               pnlSearchTask.Controls.Add(lbl);

               }
        }
开发者ID:recepSungurtas,项目名称:increment-the-app,代码行数:27,代码来源:SearchTask.aspx.cs


示例6: createTable

 public void createTable()
 {
     Reservation reservation = (Reservation)Session["reservationBusy"];
     List<WorkStation> busy = new List<WorkStation>(reservation.WsBusy);
     int cont = 1;
     int z = 0;
     for (int i = 0; i < 6; i++)
     {
         TableRow tr = new TableRow();
         myTable.Rows.Add(tr);
         for (int j = 0; j < 5; j++)
         {
             TableCell tc = new TableCell();
             tc.ID = "" + cont;
             ImageButton btn = new ImageButton();
             if (z < busy.Count)
             {
                 if (busy[z].Busy == true)
                 {
                     btn.ImageUrl = "img/StationBusy.png";
                     btn.Enabled = false;
                 }
                 else
                 {
                     btn.ImageUrl = "Images/indice.png";
                 }
             }
             btn.Click += new ImageClickEventHandler(btn_Click);
             tc.Controls.Add(btn);
             tr.Cells.Add(tc);
             cont++;
             z++;
         }
     }
 }
开发者ID:jedelsan,项目名称:LabControlv3,代码行数:35,代码来源:SelectReservation.aspx.cs


示例7: OnInit

        protected override void OnInit(EventArgs e)
        {
            dataTab = this.TabViewDetails.NewTabPage("Videos");
            dataTab.Controls.Add(this.tabVideos);

            btnDownloadVideos = dataTab.Menu.NewImageButton();
            btnDownloadVideos.ID = "btnDownloadVideos";
            btnDownloadVideos.AlternateText = "Download";
            btnDownloadVideos.ClientIDMode = System.Web.UI.ClientIDMode.Static;
            btnDownloadVideos.ImageUrl = GlobalSettings.Path + "/narnoo/distributors/icons/icons_download.png";
            btnDownloadVideos.ValidationGroup = "";

            btnRemoveFromChannel = dataTab.Menu.NewImageButton();
            btnRemoveFromChannel.ID = "btnRemoveFromChannel";
            btnRemoveFromChannel.AlternateText = "Remove from channel";
            btnRemoveFromChannel.ClientIDMode = System.Web.UI.ClientIDMode.Static;
            btnRemoveFromChannel.ImageUrl = GlobalSettings.Path + "/narnoo/distributors/icons/icons_remove_from_channel.png";
            btnRemoveFromChannel.ValidationGroup = "";


            this.pagerVideos.PageIndexChanged += pagerVideos_PageIndexChanged;


            this.btnChangeChannel.Click += btnChangeChannel_Click;
        }
开发者ID:Narnoo,项目名称:Narnoo-ASP.NET-SDK,代码行数:25,代码来源:Channels.aspx.cs


示例8: ShowImages

        public void ShowImages()
        {
            if (_images != null)
            {
                imgMain.ImageUrl = !_images[0].Contains("no-image.jpg") ? _images[0].Substring(0, _images[0].IndexOf(".jpg")) + "-main.jpg" : _images[0];
                lnkImage.NavigateUrl = _images[0];
                pnlThumbs.Controls.Clear();
                if (_images.Count > 1)
                {
                    for (int i = 0; i < _images.Count; i++)
                    {
                        ImageButton image = new ImageButton();
                        image.ID = "imgThumb" + i.ToString();
                        image.ImageUrl = !_images[i].Contains("no-image.jpg") ? _images[i].Substring(0, _images[i].IndexOf(".jpg")) + "-thumb.jpg" : _images[i];
                        image.CssClass = "thumb img-responsive";
                        //image.Click += new ImageClickEventHandler(image_Click);
                        image.OnClientClick = "changeImg(this.src);return false;";

                        pnlThumbs.Controls.Add(new LiteralControl("<div class='col-lg-4'>"));
                        pnlThumbs.Controls.Add(image);
                        pnlThumbs.Controls.Add(new LiteralControl("</div>"));
                    }
                }
            }
        }
开发者ID:yoorke,项目名称:pinshop,代码行数:25,代码来源:ProductImages.ascx.cs


示例9: CreateChildControls

 protected internal override void CreateChildControls()
 {
     this.Controls.Clear();
     this._logInLinkButton = new LinkButton();
     this._logInImageButton = new ImageButton();
     this._logOutLinkButton = new LinkButton();
     this._logOutImageButton = new ImageButton();
     this._logInLinkButton.EnableViewState = false;
     this._logInImageButton.EnableViewState = false;
     this._logOutLinkButton.EnableViewState = false;
     this._logOutImageButton.EnableViewState = false;
     this._logInLinkButton.EnableTheming = false;
     this._logInImageButton.EnableTheming = false;
     this._logInLinkButton.CausesValidation = false;
     this._logInImageButton.CausesValidation = false;
     this._logOutLinkButton.EnableTheming = false;
     this._logOutImageButton.EnableTheming = false;
     this._logOutLinkButton.CausesValidation = false;
     this._logOutImageButton.CausesValidation = false;
     CommandEventHandler handler = new CommandEventHandler(this.LogoutClicked);
     this._logOutLinkButton.Command += handler;
     this._logOutImageButton.Command += handler;
     handler = new CommandEventHandler(this.LoginClicked);
     this._logInLinkButton.Command += handler;
     this._logInImageButton.Command += handler;
     this.Controls.Add(this._logOutLinkButton);
     this.Controls.Add(this._logOutImageButton);
     this.Controls.Add(this._logInLinkButton);
     this.Controls.Add(this._logInImageButton);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:30,代码来源:LoginStatus.cs


示例10: Page_Load

        protected void Page_Load( Object sender, EventArgs e )
        {
            try
            {
                UserInfo _UserInfo = UserController.GetCurrentUserInfo();

                foreach( ModuleAction action in this.MenuActions )
                {
                    if( action.CommandName == ModuleActionType.PrintModule )
                    {
                        if( action.Visible && PortalSecurity.HasNecessaryPermission( action.Secure, PortalSettings, ModuleConfiguration, _UserInfo.UserID.ToString() ) )
                        {
                            bool blnPreview = false;
                            if( Request.Cookies["_Tab_Admin_Preview" + PortalSettings.PortalId] != null )
                            {
                                blnPreview = bool.Parse( Request.Cookies["_Tab_Admin_Preview" + PortalSettings.PortalId].Value );
                            }
                            if( blnPreview == false || ( action.Secure == SecurityAccessLevel.Anonymous || action.Secure == SecurityAccessLevel.View ) )
                            {
                                if( PortalModule.ModuleConfiguration.DisplayPrint )
                                {
                                    ImageButton ModuleActionIcon = new ImageButton();
                                    if( !String.IsNullOrEmpty(PrintIcon) )
                                    {
                                        ModuleActionIcon.ImageUrl = PortalModule.ModuleConfiguration.ContainerPath.Substring( 0, ModuleConfiguration.ContainerPath.LastIndexOf( "/" ) + 1 ) + PrintIcon;
                                    }
                                    else
                                    {
                                        ModuleActionIcon.ImageUrl = "~/images/" + action.Icon;
                                    }
                                    ModuleActionIcon.ToolTip = action.Title;
                                    ModuleActionIcon.ID = "ico" + action.ID;
                                    ModuleActionIcon.CausesValidation = false;

                                    ModuleActionIcon.Click += new ImageClickEventHandler( IconAction_Click );

                                    this.Controls.Add( ModuleActionIcon );
                                }
                            }
                        }
                    }
                }

                // set visibility
                if( this.Controls.Count > 0 )
                {
                    this.Visible = true;
                }
                else
                {
                    this.Visible = false;
                }
            }
            catch( Exception exc ) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException( this, exc );
            }
        }
开发者ID:huayang912,项目名称:cs-dotnetnuke,代码行数:58,代码来源:PrintModule.ascx.cs


示例11: OpenDialogForButtonWithLocation

 public void OpenDialogForButtonWithLocation(ImageButton button, string message)
 {
     ScriptManager.RegisterClientScriptBlock(
         button,
         typeof(ImageButton),
         DateTime.Now.ToString().Replace(":", " "),///使用当前时间作为标识
        "alert('" + message + "');location='PaperLists.aspx'",
        true);
 }
开发者ID:zhouhao,项目名称:OnlineExamSystem,代码行数:9,代码来源:AjaxCommond.cs


示例12: CrearImagen

 public ImageButton CrearImagen(String id, String cls, String url)
 {
     ImageButton imagen = new ImageButton();
     imagen.ID = id;
     imagen.CssClass = cls;
     imagen.ImageUrl = url;
     //imagen.Attributes.Add("runat", "server");
     return imagen;
 }
开发者ID:jeragones,项目名称:BolsaEmpleo,代码行数:9,代码来源:cInterfaz.cs


示例13: cargar_ofertas_academicas

        public void cargar_ofertas_academicas()
        {
            Oferta[] ofertas = new Oferta().cargar_por_tipo("2");
            for (int i = 0; i < ofertas.Length; i++)
            {
                TableRow fila1 = new TableRow();
                TableCell celda = new TableCell();
                celda.CssClass = "td";
                celda.Text = ofertas[i].Oficio;
                TableCell celda1 = new TableCell();
                celda1.CssClass = "td";
                celda1.Text = ofertas[i].Entidad;
                TableCell celda2 = new TableCell();
                celda2.CssClass = "td";
                celda2.Text = Convert.ToDateTime(ofertas[i].Fecha).ToString("dd-MM-yyyy");
                TableCell celda3 = new TableCell();
                celda3.CssClass = "td";
                celda3.Text = Convert.ToDateTime(ofertas[i].Fecha_limite).ToString("dd-MM-yyyy");
                TableCell celda4 = new TableCell();
                celda4.CssClass = "td";
                HyperLink link = new HyperLink();
                link.Text = "Ir a la oferta";
                link.NavigateUrl = Global.ruta + "/mostrar_oferta.aspx?id=" + ofertas[i].Id;
                celda4.Controls.AddAt(0, link);
                TableCell celda7 = new TableCell();
                celda7.CssClass = "td";
                HyperLink link_usu = new HyperLink();
                link_usu.Text = ofertas[i].Usuario;
                celda7.Controls.AddAt(0, link_usu);

                fila1.Cells.Add(celda);
                fila1.Cells.Add(celda1);
                fila1.Cells.Add(celda2);
                fila1.Cells.Add(celda3);
                fila1.Cells.Add(celda7);
                fila1.Cells.Add(celda4);

                TableCell celda5 = new TableCell();
                celda5.CssClass = "td";
                TableCell celda6 = new TableCell();
                celda6.CssClass = "td";
                if (ofertas[i].Cod_usuario.Equals(cod))
                {
                    ImageButton edit = new ImageButton();
                    edit.ImageUrl = "~/Imagenes/edit.png";
                    edit.CommandName = ofertas[i].Id;
                    edit.PostBackUrl = "~/Paginas/editar_oferta.aspx?tipo=2&ofe=" + ofertas[i].Id;
                    celda5.Controls.AddAt(0, edit);
                    HyperLink link_eli = new HyperLink();
                    link_eli.Text = "<a href=\"ejemplo.htm\" target=\"_blank\" onClick=\"window.open('/Paginas/mensaje_eliminar.aspx?id=" + ofertas[i].Id + "&op=2', this.target, 'width=250,height=50,left=540,top=200,scrollbars=NO, resizable=NO'); return false;\"><img src=\"/Imagenes/eliminar_btn.png\"></a>";
                    celda6.Controls.AddAt(0,link_eli);
                }
                fila1.Cells.Add(celda5);
                fila1.Cells.Add(celda6);
                Table1.Rows.Add(fila1);
            }
        }
开发者ID:MavcDev,项目名称:Observatorio-Laboral,代码行数:57,代码来源:ofertas_empleo.aspx.cs


示例14: InitializeControls

        protected override void InitializeControls(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
        {
            button = new ImageButton { ImageUrl = "", CommandName = CommandName };
            button.SetId(ChildId);

            if (Click != null) button.Click += Click;

            cell.Controls.Add(button);
        }
开发者ID:NLADP,项目名称:ADF,代码行数:9,代码来源:IconButton.cs


示例15: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {

            #region Interfaz
            //Hashtable htbPermisos = (Hashtable)Session["permisos"];
            //char cPermiso = (char)htbPermisos["estados"];
            Master.FindControl("btnNuevo").Visible = false;
            Master.FindControl("btnEliminar").Visible = false;
            Master.FindControl("btnMostrar").Visible = false;
            Master.FindControl("btnReportes").Visible = false;
            Master.FindControl("rdbFiltro1").Visible = false;
            Master.FindControl("rdbFiltro2").Visible = false;
            Master.FindControl("rdbFiltro3").Visible = false;
            Master.FindControl("btnBuscar").Visible = false;
            Master.FindControl("txtBuscar").Visible = false;
            Master.FindControl("lblBuscar").Visible = false;

            //imbNuevo = (ImageButton)Master.FindControl("imgBtnNuevo");
            //imbNuevo.Click += new ImageClickEventHandler(this.imbNuevo_Click);
            imbEditar = (ImageButton)Master.FindControl("imgBtnEditar");
            imbEditar.Click += new ImageClickEventHandler(this.imbEditar_Click);

            //imbEliminar = (ImageButton)Master.FindControl("imgBtnEliminar");
            //imbEliminar.Click += new ImageClickEventHandler(this.imbEliminar_Click);
            //imbMostrar = (ImageButton)Master.FindControl("imgBtnMostrar");
            //imbMostrar.Click += new ImageClickEventHandler(this.imbMostrar_Click);
            //imbReportes = (ImageButton)Master.FindControl("imgBtnReportes");
            //imbReportes.Visible = false;
            imbAceptar = (ImageButton)Master.FindControl("imgBtnAceptar");
            imbAceptar.Click += new ImageClickEventHandler(this.imbAceptar_Click);
            imbAceptar.ValidationGroup = "Configuracion";
            imbCancelar = (ImageButton)Master.FindControl("imgBtnCancelar");
            imbCancelar.Click += new ImageClickEventHandler(this.imbCancelar_Click);
            //rdbTodos = (RadioButton)Master.FindControl("rdbFiltro1");
            //rdbTodos.Text = "Nombre y Clave";
            //rdbTodos.Checked = true;
            //rdbClave = (RadioButton)Master.FindControl("rdbFiltro2");
            //rdbClave.Text = "Clave";
            //rdbNombre = (RadioButton)Master.FindControl("rdbFiltro3");
            //rdbNombre.Text = "Nombre";
            //lblReportes = (Label)Master.FindControl("lblReportes");
            //lblReportes.Visible = false;
            //btnBuscar = (Button)Master.FindControl("btnBuscar");
            //btnBuscar.Click += new EventHandler(this.btnBuscar_Click);
            //txbBuscar = (TextBox)Master.FindControl("txtBuscar");
            lblNombreModulo = (Label)Master.FindControl("lblNombreModulo");
            lblNombreModulo.Text = "Cambiar Contraseña";
            #endregion

            if (!IsPostBack)
            {
                txbUsuario.Text = Session["usuario"].ToString();
                txbUsuario.Enabled = false;
                Habilita();

            }
        }
开发者ID:jibarradelgado,项目名称:medicuri,代码行数:57,代码来源:CambiarContraseña.aspx.cs


示例16: MyPager

 public MyPager()
 {
     _pre = new ImageButton();
     _next = new ImageButton();
     _first = new ImageButton();
     _end = new ImageButton();
     _go = new ImageButton();
     _lb = new Label();
 }
开发者ID:romanu6891,项目名称:fivemen,代码行数:9,代码来源:MyPager.cs


示例17: AddEmailImageButton

        private void AddEmailImageButton(Panel p)
        {
            this.emailImageButton = new ImageButton();
            this.emailImageButton.ID = "SendEmailImageButton";
            this.emailImageButton.CssClass = this.GetImageButtonCssClass();
            this.emailImageButton.ImageUrl = this.Page.ResolveUrl(ConfigurationHelper.GetReportParameter("EmailIcon"));

            p.Controls.Add(this.emailImageButton);
        }
开发者ID:kevinhuo88888,项目名称:mixerp,代码行数:9,代码来源:CommandPanel.cs


示例18: AddCalendarButton

 protected virtual void AddCalendarButton()
 {
     ImageButton child = new ImageButton();
     child.ImageUrl = GlobalConfig.ImagesPath + "calendaricon.gif";
     child.ImageAlign = ImageAlign.Top;
     child.Width = Unit.Pixel(18);
     child.Height = Unit.Pixel(18);
     child.Click += new ImageClickEventHandler(this.calendarButton_Click);
     this.Controls.Add(child);
 }
开发者ID:ChrisNelsonPE,项目名称:surveyproject_main_public,代码行数:10,代码来源:AnswerFieldCalendarItem.cs


示例19: AddCloseImageButton

        private void AddCloseImageButton(Panel p)
        {
            this.closeImageButton = new ImageButton();
            this.closeImageButton.CssClass = this.GetImageButtonCssClass();
            this.closeImageButton.ID = "CloseImageButton";
            this.closeImageButton.OnClientClick = "window.close();";
            this.closeImageButton.ImageUrl = this.Page.ResolveUrl(ConfigurationHelper.GetReportParameter("CloseIcon"));

            p.Controls.Add(this.closeImageButton);
        }
开发者ID:kevinhuo88888,项目名称:mixerp,代码行数:10,代码来源:CommandPanel.cs


示例20: CreateNewImage

 public static ImageButton CreateNewImage(string cssClass, string id, string src, string[] attrs, string[] values)
 {
     var newImage = new ImageButton { CssClass = cssClass, ID = id, ImageUrl = src };
     var c = 0;
     foreach (var attr in attrs)
     {
         newImage.Attributes.Add(attr, values[c++]);
     }
     return newImage;
 }
开发者ID:Why1noob,项目名称:Ammonia,代码行数:10,代码来源:Global.asax.cs



注:本文中的System.Web.UI.WebControls.ImageButton类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.Label类代码示例发布时间:2022-05-26
下一篇:
C# WebControls.Image类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap