In the input box, enter fill + dynamic prompt information + drop-down selection, and in the input box, prompt information.

Source: Internet
Author: User

In the input box, enter fill + dynamic prompt information + drop-down selection, and in the input box, prompt information.

The input box can be filled in and can be selected in the drop-down list. A dynamic prompt is displayed when the input box is filled in.

 

 

Using System; using System. collections. generic; using System. linq; using System. web; using System. web. UI; using System. web. UI. webControls; public partial class Default2: System. web. UI. page {protected void Page_Load (object sender, EventArgs e) {if (IsPostBack) {} using (UsersDataContext con = new UsersDataContext () {string s = ""; int count = 0; List <Users> ulist = con. users. toList (); for (int I = 0; I <ulist. count; I ++) {if (count> 0) s + = ","; s + = ulist [I]. nickname; count ++;} HiddenField1.Value = s; // place the required information in the hidden control }}}
Background Data

 

<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Default2.aspx. cs" Inherits = "Default2" %> <! DOCTYPE html> Page display

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.