C # get parameter GetParameter

Source: Internet
Author: User

Yesterday encountered a problem, getparameter, when the first time to enter the page to read the default value, should have read "all" this character.

Then in the actual read process is not so, the actual reading is the object value of the class

Ability to read "All" when re-running

So I asked the great God to help me solve the problem and ask why the problem occurred.

Details are as follows:

There are two drop-down boxes, drop-down boxes 1, and drop-down boxes 2

The data in the dropdown box 2 is changed according to the data of the dropdown box 1.

For the first time, the default value for drop-down box 1 is "All", and the drop-down box 2 should be "All" by default, but it is not.

After telling the details, I was told that this is the reason why the default value for drop-down box 2 does not have data

Start modifying, get data, drop-down box 1 and drop-down box 2 data at the same time get

When the data of the dropdown box 1 = "All", the drop-down box 1 of the Id= "", while the drop-down box 2 of the id= "";

The data in the dropdown box 1! = "All", drop-down box 1 of the id= "corresponding value", drop-down box 2 Id= "based on the 1 ID get"

So get the data, run, perfect!

How can a rookie like me get away with the help of a great God?

C # get parameter GetParameter

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.