B
Bjorn Sagbakken
Hello
In VS2005:
I am adding buttons and textboxes dynamically into a table, that also
dynamically expands.
So far, so good, actually very nice.
But I am having trouble starting the desired subroutine on postback. To me
it seems like the button click event looks for a client script instead of
going to the aspx codepage and execute the sub there.
The same thing happens with textboxes, where I programatically add
("OnBlur")=mySub
The browser raises an error, saying "mySub is undefined". In the aspx
codepage mySub is set as Public, by to no help. The browser obviously looks
for a client sub called mySub.
Note: I have added "Runat=Server" to the controls, and I thought this would
do.
As with many things, I guess there is a simple solution to this, only I
haven't found it (yet).
Regards
Bjorn
In VS2005:
I am adding buttons and textboxes dynamically into a table, that also
dynamically expands.
So far, so good, actually very nice.
But I am having trouble starting the desired subroutine on postback. To me
it seems like the button click event looks for a client script instead of
going to the aspx codepage and execute the sub there.
The same thing happens with textboxes, where I programatically add
("OnBlur")=mySub
The browser raises an error, saying "mySub is undefined". In the aspx
codepage mySub is set as Public, by to no help. The browser obviously looks
for a client sub called mySub.
Note: I have added "Runat=Server" to the controls, and I thought this would
do.
As with many things, I guess there is a simple solution to this, only I
haven't found it (yet).
Regards
Bjorn