| |

VerySource

 Forgot password?
 Register
Search
View: 729|Reply: 6

Masters, please come in and help !!!

[Copy link]

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-26 13:40:01
| Show all posts |Read mode
In GRIDVIEW, there is a department to choose, but many departments are not suitable for DROPDOWNLIST. They use pop-up windows. The department-related information in the new window is now available, including the INDEX of ROWS in the parent window. The value is returned to the textbox of a row of GRIDVIEW in the parent window, I do not know how to solve

window.opener.document.all. [That is, I want to locate a textbox in a certain line of GRIDVIEW], how to write this, I ca n’t do it for a long time
Reply

Use magic Report

1

Threads

31

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-2-17 18:00:02
| Show all posts
To use body, you should use window.control name.property directly.
I did not try ...
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-2-19 09:15:01
| Show all posts
With index is easy to handle.


window.opener.document.all.GridView1.Rows [index] .cells [0] .firstChild.value = "value";
Reply

Use magic Report

1

Threads

31

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-2-19 12:45:01
| Show all posts
Is such that:
window.document.all.TextBox1.value
This value is the value of the Textbox :)
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-2-19 14:15:01
| Show all posts
The IDs of these textboxes are regular and fixed. You can first pass the textbox ID to the subpage through the parameters, and then assign the value of the subpage to the textbox by passing the ID of the past textbox.
Reply

Use magic Report

0

Threads

26

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-2-20 13:00:03
| Show all posts
Did I pop up a form by clicking a button in the row?
Then you add in the passed parameter of that button, this.id of this button.
For example, the name of your Textbox in the template column is: Txt1; the name of the button is: btn1
Then you need to add a parameter to your btn1 click event (you will write this event), it is best to write it in the script, for example, window.open ("a. apsx? id = "+ this.id.replace (" btn1 "," Txt1 ")), this.id is the resolved id name of the button (which may be a very long one), and then you replace it That's it, so what you pass is the ID of Txt1.
Then you can write directly to that ID over there.
window.opener.document.all. [The ID of Txt1 passed in].
Reply

Use magic Report

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-3-5 13:30:01
| Show all posts
With index is easy to handle.


window.opener.document.all.GridView1.Rows [index] .cells [0] .firstChild.value = "value";



-------------------------------------------------- ----------------------
What is needed is this effect, the TEXTBOX control positioned in the row is assigned, but the above method does not work
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list