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

c# - Getting "Internal .Net Framework Data Provider error 30" error when column has NULL value -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

SAP Web Service from .NET via WCF -