"RobG" <no_spam@_nospam.com> wrote in message
news:(E-Mail Removed)...
>>> Thanks for the feedback. Unfortunately, I need the submit button handler
>>> to set a hidden field based on the value of one of the form's controls
>>
>> Is there a reason that can't you use JavaScript for that...?
>
> I need to encrypt the data on the server side and assign it to the hidden
> field before posting.
Hmm - OK...
In which case, I can only think of the following:
1) Keep your existing page which does the postback to encrypt the data
2) Add an <asp:Literal> control to the page
3) As part of the postback, use a StringBuilder to create the entire text of
an HTML form and add that to the Literal control
4) Finally, inject a piece of JavaScript to submit the dynamically created
form
This is pretty messy, but it's not unheard of... E.g. this is the way people
typically integrate PayPal into their ASP.NET apps...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net