Showing posts with label query. Show all posts
Showing posts with label query. Show all posts

Monday, March 26, 2012

Ajax AutocompleteExtender

Hi All

I have a query with reference AutoCompleteExtender.

CompletionListCSSClass using Stylesheet named autocomplete_completionListElement which set height of autocomple box 200px. when server return few records, the height does not automatically adjusted.

Is it possible to adjust height automatically?

Kind Regards

Bhavesh

Hi Brvaland,

brvaland:

Is it possible to adjust height automatically?

Do you mean manually adjust the height property?(The Control will automatically control its height property)

If yes , please add this code to your page.

<script type="text/javascript" language="javascript">
function pageLoad(){
$find("myACEBID").add_shown(reAdjustHeight);
}
function reAdjustHeight(){
$get($find("myACEBID")._completionListElementID).style.height = "120px"
}
</script>

Best regards,

Jonathan

Ajax Approach

Hi all,

Well my query is regarding the optimal use of ajax,I have to build a user control that is functioning of tree view .example

There are three pane

1.In fist pane there is a tree view

2 In 2nd pane ,contain the list that is populated on click of a node(on text click)

3 In third pane when i double click the item of second pane it should moved into 3rd pane.

4.when i clicked on the node of the tree its child should filled from the database (this is imp one as no whole page should be post back only that node part should generated here i take a help of ajax)

Any any kind of help will contribute to me.

thanks

My suggested approach will be this:

1. Send requests for data to server side via SriptMethod on page or WebMethod on ScriptService .

2. Get the data as objects to client side (It will be if you're working with JSON)

3. Handle all UI changes in client side (Fore example: expand node on callback function - after you've received data from server)


Thanks its good and will work fine i hope iam still searching for good .

what approach is better ie use a .net treeview control in update panel or make a ajax call on clicking on each node i know the 2nd one is good but i need some more facts like if i used ist one and when a node clicked event is generated then whole tree view is posted but in second one there is on demand loading

please send some more views

thanks

Wednesday, March 21, 2012

Ajax address lookup

Hi everyone,

The need has arisen to allow the users to query a database containing all the names of the contacts.

I was thinking that this would be an excellent task for ajax.

The primary requirement of the operation is to allow the user to enter the keystrokes

of the person they are looking for, and have the list of possible records displayed

in a grid, and as the users types in more letters, the list gets smaller and smaller.

A round trip to the database as the old school methods would allow simply

is not acceptable any more...

I have setup a web service to return a dataset based on the field and text that is entered

in the form, the problem i am having is actually using ajax to call the web service and

update the datagrid with the results from the web service call.

does anyone have a sample or know of a website that has a sample for this operation??

thanks

tony

The autocomplete extender does that.

http://ajax.asp.net


Thought this might help you all out there;

First, Some good resources to test with;

USA Zip code Information[Get State Code,City,Area Code,Time Zone,Zip Code ]

http://www.webservicex.net/uszip.asmx?wsdl

------------------------------------------

USA Zip code Information
[Get State Code,City,Area Code,Time Zone,Zip Code ]
http://www.webservicex.net/uszip.asmx?wsdl

------------------------------------------

I have to dig up my generic sample code then I'll post it here as well but, it's easier to write the code than to find the free services.


Yes, please post some sample code. I'm very interested in an exmple showing how to make use of that particular feature from them.