Home Backend Development C#.Net Tutorial .NET compound control input drop-down control

.NET compound control input drop-down control

Dec 20, 2016 am 11:16 AM
collections ui

Use System;
Use System.Collections.Generic;
Use System.ComponentModel;
Use System.Text;
Use System.Web;
Use System.Web.UI program;
Use System.Web.UI.WebControls; Used in
System.Collections;

namespace QC_Control
{
  ///


  ///Customized input drop-down box class
  ///

 [ToolboxData("< ;{0}:CustomInputDropdownControl RUNAT=Server> DropDownList(); // Dropdown box
Private TextBox TxtBox = new TextBox();
_values ​​of private Hashtable = new Hashtable(); //The value used to bind the drop-down box

          ///
                                       Value reference variable setting/getting encapsulated method ///

Items that expose Hashtable ViewState of {

                                                                 Value"] = new Hashtable();

                                                                                                                                                             . ”] = value; }
}


                                                                                                                                                                   
                     Public CustomInputDropdownControl ()
                                                                                                                                                                 
               ///Rewrite the control class Rendering method body
         ///  
                                                                                                                                                                                                                                                             . ID = "DDL" + base.ID;
        TxtBox.ID = "TXT"                                                                               using use with use with use using           using using       through using    ‐           ‐ ‐                                                                                                                            --- in print, in, " ='0'> ");
//The reason why clientID is used here is because when in the card option, the .NET program will automatically name the base.ID
        ddlListItem.Attributes.Add ("onChange", getFocusValue (TxtBox.ID, ddlListItem.ID) ; Height: 15px; Border: 0pt;");
                                                                                                                                                                                                    . Keys key)
                                                     ListItem item = new ListItem();
                                                                                                                       ListItem         ); Output); t OUTPUT.WRITE ("& lt;/ span & gt; & lt; span style = 'location is: absolute; border top: solid is 1pt # c1C1C1C1; It is 1pt # C1C1C1; width: 170 pixels, height: 19px; "& gt;");
txtbox.RenderControl ;; "/ +"CRIPT:"+" document.getElementById('"+TxtId +"').value = document.getElementById('"+ddlId +"') available options [document.getElementById('"+ddlId +"').selectedIndex] .value;"ToString();
                                           

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why does the Elden Ring UI keep showing up? Why does the Elden Ring UI keep showing up? Mar 11, 2024 pm 04:31 PM

In Elden's Ring, the UI page of this game will be automatically hidden after a period of time. Many players do not know how the UI is always displayed. Players can select the gauge display configuration in the display and sound configuration. Click to turn it on. Why does the Elden Ring UI keep displaying? 1. First, after we enter the main menu, click [System Configuration]. 2. In the [Display and Sound Configuration] interface, select the meter display configuration. 3. Click Enable to complete.

What are the common UI component libraries in Vue? What are the common UI component libraries in Vue? Jun 11, 2023 am 11:47 AM

Vue is a popular JavaScript framework that uses a component-based approach to build web applications. In the Vue ecosystem, there are many UI component libraries that can help you quickly build beautiful interfaces and provide rich functions and interactive effects. In this article, we will introduce some common VueUI component libraries. ElementUIElementUI is a Vue component library developed by the Ele.me team. It provides developers with a set of elegant,

Two Chinese Google researchers released the first purely visual 'mobile UI understanding' model, four major tasks to refresh SOTA Two Chinese Google researchers released the first purely visual 'mobile UI understanding' model, four major tasks to refresh SOTA Apr 12, 2023 pm 04:40 PM

For AI, "playing with mobile phones" is not an easy task. Just identifying various user interfaces (UI) is a big problem: not only must the type of each component be identified, but also the symbols used , position to determine the function of the component. Understanding the UI of mobile devices can help realize various human-computer interaction tasks, such as UI automation. Previous work on mobile UI modeling usually relies on the view hierarchy information of the screen, directly utilizing the structural data of the UI, and thereby bypassing the problem of identifying components starting from the screen pixels. However, view hierarchy is not available in all scenarios. This method usually outputs erroneous results due to missing object descriptions or misplaced structural information, so even if you use

Explore the most popular jQuery mobile UI frameworks Explore the most popular jQuery mobile UI frameworks Feb 27, 2024 pm 12:03 PM

The jQuery mobile UI framework is a tool for developing mobile applications. It provides rich interface components and interactive effects, allowing developers to quickly build excellent mobile user interfaces. In this article, we will explore some of the most popular jQuery mobile UI frameworks and provide specific code examples to help readers better understand and use these frameworks. 1.jQueryMobiljQueryMobile is an open source mobile UI framework based on HTML5 and CSS3.

What does ui mean? What does ui mean? Mar 14, 2024 pm 03:20 PM

UI is the abbreviation of "User Interface", which is mainly used to describe the human-computer interaction, operation logic and beautiful interface of the software. The purpose of UI design is to make software operation easier and more comfortable, and fully reflect its positioning and characteristics. Common UI designs are divided into physical UI and virtual UI, among which virtual UI is widely used in the Internet field.

Comprehensive testing of Android 15 Beta 4 is completed and the countdown to stable version release has begun Comprehensive testing of Android 15 Beta 4 is completed and the countdown to stable version release has begun Jul 29, 2024 pm 07:57 PM

A few days ago, Google officially pushed the Android 15 Beta 4 update to eligible Pixel smartphone and tablet users. This marks that the Android 15 operating system has entered the platform stable stage, indicating that its stable version will be officially released with global users in the next few days. Meet. At the same time, this development also injects new vitality into Samsung Electronics' Galaxy device series to accelerate the development process of its OneUI7.0 version. 1.[Android15Beta4 promotes Samsung OneUI7.0 stable build](https://www.cnbeta.com/articles/tech/1427022.htm) With Android15Bet

What is the difference between ux and ui design What is the difference between ux and ui design Sep 27, 2022 pm 03:52 PM

The difference between ux and ui design: 1. UX makes the interface easier to use, and UI makes the interface more beautiful; 2. UX allows users to achieve their goals, and UI makes the interface enhance the brand sense; 3. UX core goals guide users to complete tasks, UI does not; 4. The deliverables of UI and UX are different. The output of UX includes UX experience report, function definition, function planning, project progress, etc., while the output of UI includes visual and interaction, visual design, brand design, motion design, and component design. and design language, etc.

what does ui mean what does ui mean Mar 14, 2024 pm 03:09 PM

UI, the full name of user interface, refers to the design of human-computer interaction, operation logic and beautiful interface in software. It is divided into physical UI and virtual UI, among which virtual UI is widely used in mobile Internet. Good UI design not only makes the software look tasteful, but more importantly, makes software operation comfortable and easy, fully reflecting the software's positioning and characteristics.

See all articles