TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Devendra Kumar
NA
517
246.3k
find null value dynamic textbox
Jan 25 2016 11:39 PM
please solve my problem
first i create text box...
protected void ddsize_SelectedIndexChanged(object sender, EventArgs e)
{
if (counter > 1)
return;
foreach (ListItem item in ddsize.Items)
{
if (item.Selected)
{
Panel1.Visible = true;
TextBox txtprice = new TextBox();
txtprice.ID = "txt_price" + item.Value;
txtprice.Width = 30;
Label lbl = new Label();
lbl.Text = item.Text;
Panel1.Controls.Add(lbl);
Panel1.Controls.Add(txtprice);
}
}
counter++;
and then find that id in another forachloop...code is
foreach (ListItem item in ddsize.Items)
{
if (item.Selected)
{
TextBox text = (TextBox)Panel1.FindControl("txt_price" + item.Value);
}
}
Reply
Answers (
3
)
at no single company can R.
Instead of XML,I want to insert data using JSON to SQL Table