So the value of both the textbox and the label in the usercontrol should now read "New Value". This is utterly confusing, my page is definitely getting refreshed or the label would still say "Some Value" instead of "New Value". Load 'Put user code to initialize the page here If Not Page. Add(ctr Text Box) End Sub Here's Web User Control1(HTML): Here's Web User Control1(VB): Private Sub Page_Load(By Val sender As System. -- Curt Christianson site: wrote: That's why I included the code, it's a very small project. It's working perfectly for the label, but the textbox is not updating. Text = str Test Jeff "Curt_C [MVP]" wrote: not 100% sure I followed BUT...
The code for each of the 4 items follows, I can't figure this one out for the life of me. Here's Module1: Module Module1 Public str Test As String End Module Here's Web Form1(HTML): Here's Web Form1(Code Behind): Private Sub Page_Load(By Val sender As System. Is Post Back Then str Test = "Some Value" End If Dim ctr Text Box As Web User Control1 Place Holder1. Clear() ctr Text Box = Load Control("Web User Control1.ascx") ctr Text Box. The core question being, why is the label being updated but not the textbox? you say you are calling the parent page to refresh...
It also has a button that executes some client script to refresh the parent window and close the popup. Load 'Put user code to initialize the page here Text Box1. Text = str Test End Sub Here's Change (HTML): That's why I included the code, it's a very small project. It's working perfectly for the label, but the textbox is not updating. Text = str Test Jeff "Curt_C [MVP]" wrote: not 100% sure I followed BUT...
So the value of both the textbox and the label in the usercontrol should now read "New Value". This is utterly confusing, my page is definitely getting refreshed or the label would still say "Some Value" instead of "New Value". Load 'Put user code to initialize the page here If Not Page. Add(ctr Text Box) End Sub Here's Web User Control1(HTML): Here's Web User Control1(VB): Private Sub Page_Load(By Val sender As System. The core question being, why is the label being updated but not the textbox? you say you are calling the parent page to refresh...
I have developed a small application in Share Point.Instead, you can specify only the region of the page to be refreshed.As a result, users no longer see the whole page reload with every postback.-- Curt Christianson site: wrote: Sorry, here you go: Change (VB) Private Sub Page_Load(By Val sender As System. I was unable to find a solution, perhaps an MS person could clarify why this would happen....-- Curt Christianson site: wrote: Yeah I noticed the same thing, if it's all one page it works fine, it only doesn't work on the user control.