Label3.Text = "?Thanks for considering our shop for your wholesale requirements successfully insert. We will contact you within next few hours on your mail..";
DataSet ds = objAdmin.InsertWholesaleCartItem();
cb.Checked = false;
sbmt_btn.Visible = false;
//Button1.Visible = true;
}
//Response.Redirect("WholesaleOrder.aspx");
}
else
{
lblerror.Text = "Please select any item !!";
}
}
0
Devendra KumarRank #3,132 · 457 reputationPosted Feb 14, 2016, 10:22 PM EST
0
if any check box checked error hide..
if not checked then show error on label
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 14, 2016, 8:35 PM EST
use this javascript
function CheckBoxClicked(chk){
var dl = document.getElementById ("<%=DataList1.ClientID%>"); //Replace DatList1 with your DataList IDvar inputs = dl.getElementsByTagName("input") ;
for(var i=0;i{
if(inputs[i].id == chk.id)inputs[i].checked = true;
else
inputs[i].checked = false;}
}
}
And to your checkbox in datalist add this
Chandu KumawatRank #1,449 · 1.1K reputationPosted Feb 14, 2016, 8:49 PM EST
Devendra KumarRank #3,132 · 457 reputationPosted Feb 14, 2016, 10:16 PM EST
Devendra KumarRank #3,132 · 457 reputationPosted Feb 14, 2016, 10:22 PM EST
ali tuncerRank #1,499 · 1.1K reputationPosted Feb 17, 2016, 4:16 PM EST
create a bool variable(isCheckBoxSelected) and set it to False before foreach..
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts