ConnectionString="<%$ ConnectionStrings:MyConn %>"
SelectCommand="SELECT * FROM [product] WHERE ([IDM] = @IDM)">
Type="Int32" />
i want to use the value of txtbox1 & txtbox2 for save the data in database using the code-behind code
but in code-behind txtbox1 and txtbox2 is not show..
any one help me....
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ali tuncerPosted May 11, 2016, 5:46 AM
try this way :
foreach (RepeaterItem item in repeat1.Items)
{
TextBox txtbox2 = (TextBox)item.FindControl("txtbox2");
if (txtbox2 != null)
{
string productname= txtbox2.Text;
//you can use productname here
}
}