Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
Add information in text box at runtime.
Sandhya Bhosale
Oct 28 2006 2:27 AM
1.8k
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Add items to dropdown menu
Unbelievable! a Labels created dynamically invisible just because they overlapped, buttons - OK, why is that?