Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
How I can store data using TextBox at runtime in c#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Vishal Pandey
18y
2.1k
1
Reply
I,m creating some textbox at runtime .
int i =0;
if
(datared[
"object type text"
].ToString().ToUpper() ==
"TEXT"
)
{
i++;
TextBox
t1 =
new
TextBox
();
t1.ID =
"t"
+ i;
this
.form1.Controls.Add(t1);
HtmlTableCell
Celltxt =
new
HtmlTableCell
();
this
.form1.Controls.Add(Celltxt);
Celltxt.Controls.Add(t1);
//Celltxt.Controls.Add(ADD);
Rowtxt.Cells.Add(Celltxt);
}
// End Text
i,m not able that how i can add record in database if i create textbox at runtime.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Database
error while inserting a float number to sql server, pls help!!!