"Thomas Hansen" <po*******@gmail.comwrote in message
news:11*********************@b75g2000hsg.googlegro ups.com...
On Mar 28, 8:13 pm, "Eric Layman" <namyalcire[at no spam]gmail.com>
wrote:
>HI,
Im on dotnet 1.1
I've generated extra checkboxes, textboxes via client side javascript:
eg:
var inputElement = document.createElement('input');
inputElement.setAttribute('type', 'radio');...
inputElement.setAttribute('id', 'xx');
...
How do i capture these values via server side?
var el = document.createElement('input');
el.type='hidden';
el.value = someValue;
el.id='myEl';
theForm.appendChild(el);
...!
Then you can do (server side) stuff like:
string tmp = Request.Params['myEl'];
But in general terms you really shouldn't DO this...!!
Thomas
--
http://ajaxwidgets.com
ASP.NET 2.0 Ajax Widgets
----- Original Message -----
From: "Thomas Hansen" <po*******@gmail.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Thursday, March 29, 2007 2:36
Subject: Re: how to grab values from javascript generated items?
On Mar 28, 8:13 pm, "Eric Layman" <namyalcire[at no spam]gmail.com>
wrote:
>HI,
Im on dotnet 1.1
I've generated extra checkboxes, textboxes via client side javascript:
eg:
var inputElement = document.createElement('input');
inputElement.setAttribute('type', 'radio');...
inputElement.setAttribute('id', 'xx');
...
How do i capture these values via server side?
var el = document.createElement('input');
el.type='hidden';
el.value = someValue;
el.id='myEl';
theForm.appendChild(el);
...!
Then you can do (server side) stuff like:
string tmp = Request.Params['myEl'];
But in general terms you really shouldn't DO this...!!
Thomas
--
http://ajaxwidgets.com
ASP.NET 2.0 Ajax Widgets
Hi Thomas,
Thanks for the reply.
May I know why not? Sometimes they may be instances which we may have to
generate extra table rows or mayb extra textboxes on the fly.
Im curious whether dotnet catered for these situations and perhaps there's a
nice built in widget to do the validations for these on the fly controls! =)
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com