Using AJAX for a search results box

G

Guest

Hi

Following Eliyau's suggestion, I've decided to use AJAX for my search
thingy. SO, I've got a textbox for the search criteria and a Repeater control
to display the results.

At the moment, I'm using the textbox with a button. When the button is
clicked, we create the SQL and then I've overridden the OnPreRender event to
get the results and DataBind with the Repeater.

I think I've got my setup stuff sorted for AJAX, but how do I get it to
rebind the Repeater with a new set of results? Can I just call the code thats
called by OnPreRender? Do I have to do something else?

Ant help/articles appreciated - cheers!



Dan
 
L

Lucas Tam

At the moment, I'm using the textbox with a button. When the button is
clicked, we create the SQL and then I've overridden the OnPreRender
event to get the results and DataBind with the Repeater.

I think I've got my setup stuff sorted for AJAX, but how do I get it
to rebind the Repeater with a new set of results? Can I just call the
code thats called by OnPreRender? Do I have to do something else?

Ant help/articles appreciated - cheers!

Are you using .NET 1.1?

I'm using Thycotics Javascript Remoting... that seems to work well.

Otherwise you can try Dart's Live Controls.
 
B

Bruce Barker

with AJAX you use client dhtml rather than server controls. .net 1.0/1.1
does not have any AJAX support. your client code (javascript) should use an
iframe or XMLHTTP to make a web request to a .net page written to respond
with the info desired, either xml, javascript variables or actual html are
the most common. once you have the response, use client script to render the
table.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top