Add information in text box at runtime.

Oct 28 2006 2:27 AM
I have a text with the following source code:

<input id="txtData" runat="server" class="txtfield" name="txtData" size="30" type="hidden" />

<script language="JavaScript" type="text/javascript">

var idGenerator = new IDGenerator(0);

var editor = new Editor(idGenerator);

editor.Instantiate();

</script>


As the textbox is hidden, the user will not be able to type any information in it.
But he can add info in the area that is created using the above script.

How can I write the code so that the text entered by the user can be stored using Stored Procedure.

I have wrirten it as :

cmd.Parameters.Add("@Article",txtData.Value);

But the textbox  txtData is hidden.

Please help