asp.net - problem with search -


hey, i've search in website. if search particular world works fine in pages not in contact us. contact page contains validation controls. tried removing validation controls, search works fine. on these how make search though validation controls, present.

function keypress(txt) { //alert(txt); if(txt == "search") { document.getelementbyid("ctl00_txtsearch").value = ""; } } function onblur(txt) { if(txt == "") { document.getelementbyid("ctl00_txtsearch").value = "search"; // txtsearch.style.color = "silver"; } } function button_onclick() { if(document.getelementbyid("").value == "" || document.getelementbyid("").value == "search ") { document.getelementbyid("").focus(); alert("please enter text"); return false; } }

i think need validation group each page , each set of controls. things can third party search component following.

http://www.sitesearchasp.net/

try this.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -