0
Answer

Add information in text box at runtime.

Sandhya Bhosale

Sandhya Bhosale

18y
2.1k
1
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