Re: How can I get the value from the client-side created element object?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Patrice (nobody_at_nowhere.com)
Date: 05/25/04


Date: Tue, 25 May 2004 17:40:43 +0200

Check :
- you have a name attribute
- it is inside the client side form tag
- it is enabled (likely by default)

Else it is not posted to the server

Patrice

"Quentin Huo" <q.huo@manyworlds.com> a écrit dans le message de
news:eTjNQzeQEHA.964@TK2MSFTNGP10.phx.gbl...
> Hi:
>
> I created a web-form user control. And in client-site, there is a link
which
> will create a Input element object when it is clicked.
>
> <script language=javascript>
>
> ......
> var nameInput = document.createElement("input");
> nameInput.setAttribute("id", "authorname");
> .....
>
> </script>
>
> But when click "save" button" on this page, I can not get the value of
the
> created element object in the user control by (in C#)
>
> ......
> string x=Request["authorname"];
> ......
>
> So how can I get the value from the client-side created element in a user
> control of ASP.NET?
>
> Thanks
>
> Q.
>
>
>
>


Quantcast