client-side scripting interfacing with viewstate?

T

TR

Is it possible to cause a server-side control to remember data that was
inserted into it via a client-side script?

Assuming this:

<DIV id=outerpanel runat=server>
<DIV id=innerpanel runat=server>
</DIV>
</DIV>

Now, a client-side script injects HTML into 'innerpanel' and makes
'innerpanel' visible. Is there any way for the client-side script to
update the viewstate so the aspx page remembers these changes?

Thanks!
TR
 
V

Vidar Petursson

Hi

I would think the only way would be stuffing a <input type="hidden" with
the div data or if its BIG a hidden textarea <textarea style="display:none"
then onsubmit you could stuff it...

--
Best Regards
Vidar Petursson
==============================
Microsoft Visual: Scripting MVP 2000-2004
http://www.icysoft.com/
http://www.deus-x.com/ Instant e-commerce
http://www.microsoft.com/technet/scriptcenter/
Playground: http://213.190.104.211/ ( IE 5.5+ only )

No matter where you go there you are
==============================
 
T

TR

Hi Vidar,
Thanks for the suggestion of the hidden input type. We were
actually trying to avoid a postback, though, trying to keep
things client-side. Once postback enters into the picture, the
options are more numerous.
Regards
TR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top