How do I get the value of textbox in the datalist 20?

Updated on technology 2024-02-08
7 answers
  1. Anonymous users2024-02-05

    int sum=0;

    for(int i = 0 ;i< -1;i++) assumes that the ID of the datalist is datalist1

    textbox tb=(textbox)("Slag with tt"Suppose that the ID of the Senliang Number Candidate text box is set to TT when you design the DataList

    sum+=;

    That's the idea.

    Use the findcontrol method to find the text box for each row of the datalist and sum it.

    My program doesn't debug the syntax may be something not quite right, if there is a problem please hi me.

  2. Anonymous users2024-02-04

    string tt=""

    for(int i = 0; i < i++)textbox t = "textbox1"Textbox1 is the control ID, and the ID is unique.

    tt=;Get the value.

    If you want to get the value of another control, you can replace it directly.

    textbox t = "textbox2"))label l = "label1"))

  3. Anonymous users2024-02-03

    You need to find the textbox control in the datalist control first, and then assign it a value, give you 2 statements, and see for yourself, I use the textbox textbox1 = textbox) here"textbox1");It's to find the controls, so take a good look at it!!

  4. Anonymous users2024-02-02

    You can use FindControls to find the name of the control, or you can iterate through all the controls in the datalist in if(

  5. Anonymous users2024-02-01

    You can add an id to this text box, and if you want jquery, you can write $("#id").val(), the id in parentheses is the value of the id you defined.

  6. Anonymous users2024-01-31

    Traverse over the element to get the corresponding item for the text.

  7. Anonymous users2024-01-30

    You can add an id to this text box, and if you want jquery, you can write $("#id").val(), the id in parentheses is the value of the id you defined.

Related questions
2 answers2024-02-08

Know, you can earn 42 experience points per day:

2 points for the first login, 20 points for voting, and 20 points for the first 10. >>>More

9 answers2024-02-08

set ie=createobject("")"about:blank"

str="text") >>>More

8 answers2024-02-08

Your anomaly was triggered, but it was eaten.

Because the using statement is actually try....Finally, your ** is equivalent to. >>>More

5 answers2024-02-08

On the Windows 7 development platform, the Android Studio development tools use the following methods to limit the maximum number of characters that can be entered in EditText. >>>More

7 answers2024-02-08

1. Approach the interview with a calm mind and be prepared to withstand setbacks. Even if you fail the interview for a while, don't judge the hero with one failure. >>>More