G
Guest
Hi
I developed a usercontrol with a textbox and an htmlInputHidden
When I add my usercontrol in a webform, it works properly
If I add my control in a template column of a datagrid i have some problems
When I load the webform, the usercontrol has a UniqueID like this: "LookUp1:txtRisultato", then I value the text of this textbox with a client-side script. If i post the page, the value saved in the textbox.text is null, but i see that the UniqueID is changed, and now is "DataGrid1:LookUp1:txtRisultato"
How can i refer to my usercontrol with an ID which doesn't changes
Why the UniqueID changes
P.S. I noticed that if I value the textbox sending the right ID (DataGrid1:LookUp1:txtRisultato) the post is made properl
Thank yo
Alessandro Rossi
I developed a usercontrol with a textbox and an htmlInputHidden
When I add my usercontrol in a webform, it works properly
If I add my control in a template column of a datagrid i have some problems
When I load the webform, the usercontrol has a UniqueID like this: "LookUp1:txtRisultato", then I value the text of this textbox with a client-side script. If i post the page, the value saved in the textbox.text is null, but i see that the UniqueID is changed, and now is "DataGrid1:LookUp1:txtRisultato"
How can i refer to my usercontrol with an ID which doesn't changes
Why the UniqueID changes
P.S. I noticed that if I value the textbox sending the right ID (DataGrid1:LookUp1:txtRisultato) the post is made properl
Thank yo
Alessandro Rossi