G
Guest
I am building a custom control that builds on the Textarea html control. I
have attached a toolbar on top of the Textarea that allows the creation of
buttons that will give the designer(during design-time) the ability to add or
remove buttons and their associated functions. These function associated
with the buttons are all client side programming because the round trip to
perform such things as making text bold would be impractical. Now, the
problem I am having, because these buttons rely on client side functions I
don't need a postback or round trip to the server. Nevertheless, when
pressed the button still posts back to the server and subsequently erases the
text in textarea. Am I going to have to set postback to false in the
server-control or do I have to rely on javascript to format the text during
the round trip and return the information based on the buttons instructions?
have attached a toolbar on top of the Textarea that allows the creation of
buttons that will give the designer(during design-time) the ability to add or
remove buttons and their associated functions. These function associated
with the buttons are all client side programming because the round trip to
perform such things as making text bold would be impractical. Now, the
problem I am having, because these buttons rely on client side functions I
don't need a postback or round trip to the server. Nevertheless, when
pressed the button still posts back to the server and subsequently erases the
text in textarea. Am I going to have to set postback to false in the
server-control or do I have to rely on javascript to format the text during
the round trip and return the information based on the buttons instructions?