<asp:imagebutton id="ImageButton1" imageurl="~/Images/images/btn-search.jpg" runat="server" onclick="Submitownerid_Click" onclientclick="return OwnerIDvalidation();" xmlns:asp="#unknown" />
function OwnerIDvalidation() { var City = document.getElementById("<%=ddldropcity.ClientID%>").value; if (City == "Select City") { alert("City has to be Select"); document.getElementById("<%=ddldropcity.ClientID%>").focus(); return false; } return true; }
protected void Submitownerid_Click(object sender, ImageClickEventArgs e) { Cityname = "Select City"; Owner_ID = txtownerid.Text; USERName = string.Empty; CustomerActivatedStartdate = string.Empty; CustomerActivatedEnddate = string.Empty; GetOwnerDetailsByownerid(Owner_ID); //txtName.Text = ""; }
return false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)