29 Sep
Posted by ikaruga as ASP.NET, JavaScript, SQL, dashCommerce 3.0.1
I have a web user control (.ascx) that holds my product DataList. This product DataList has an ‘add to cart’ button in each item. When I hit one of the ‘add to cart’ button, the ‘Invalid postback or callback argument’ error shows up. Postback from other controls are fine.
<asp:DataList ID=”dlCatalog” runat=”server” SkinId=”catalogList”>
<ItemTemplate>
<div class=”productBox”>
<div class=”productImageContainer”>
<asp:HyperLink ID=”hlImageLink” [...]
Here’s a simple javascript function that checks if a given string is a valid email address.
function email_checker(email){
if(email == “”){
return false;
}
else{
if(email.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi)){
return true;
}
else{
return false;
}
}
}
Try it:
test