| |

VerySource

 Forgot password?
 Register
Search
Author: oyoxoyox

There is another problem with dynamically adding user controls

[Copy link]

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-9-29 18:30:02
| Show all posts
But the two freetextboxes are in the same user control and how to change them is the same.
======>
It's not the problem, it's the problem in these two and other user controls.
Reply

Use magic Report

1

Threads

8

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

 Author| Post time: 2020-9-29 18:45:01
| Show all posts
RE: No other user controls
------------------
I looked at the html code
Both of them have the same code
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-9-29 19:00:01
| Show all posts
If these two TextBoxes are in the same user control, their IDs cannot be the same.
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-9-29 19:15:01
| Show all posts
Do you have the source code?

Open the FreeTextBox project,

Open the file FreeTextBox.cs.

Replace all base.ID with this.ClientID.Replace("_","")

Replace all this.ID with this.ClientID.Replace("_","")


Unexpectedly, such a well-known control makes this kind of mistake.
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-9-29 19:30:01
| Show all posts
Compile it and replace freetextbox.dll under bin.
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-9-29 19:45:01
| Show all posts
However, this control is still doing well.
Reply

Use magic Report

1

Threads

8

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-9-29 20:15:01
| Show all posts
I'm next
Reply

Use magic Report

1

Threads

8

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-9-29 20:30:01
| Show all posts
A word
Strong
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