 |

|
while selecting the value from autosuggestbox, SelectedValueChanged event is getting fired but that time can't able to assign value from autosuggestbox to asp:textbox control. Please help me
modified 17 Apr '12 - 0:57.
|
|
|
|

|
Hi,
I would place the event to call the server at the click of the selected item down in the cascade.
E 'possible?
How? thanks a lot!
I hope for your help!
|
|
|
|

|
I wish to thank you from bottom from my Heart to creating this wonderful control.I'm new to Ajax but helped really well. But i had faced some minor Bugs which i want to share with you and i hope you would suggest me some improvements
1>I had used 5 AutoSuggest TextBox in page each are in a individual cell of Table. While showing the Suggestions the Controls below is goes Downwards as the List is showing suggestions which makes the Page Looks improper.
For Example In the Company name i had very less names so it won't disturb the Page Layout,but the Product List is almost 200-300 items in it,while showing the suggestions that Cells goes bigger as the Suggestion are Shown.
2>Sometimes working on the Page having AutoSuggest TextBox controls on it Shows "Error While creating the Controls ,AutoCallBAck Property Cannot set True Manually"
Then the whole project must be build and restart the Visual Studio to get back to Normal condition.
I really appreciate your hard work , and i can't thank you enough.
|
|
|
|

|
Very nice and useful control!!! No problem to involved it to my project. Only one question: is it possible to set AutoSuggestBox ReadOnly? When my DetailsView is in ReadOnly model I want the AutoSuggestBox is ReadOnly, too.
P.S. I have to put AutoSuggestBox out of DetailsView to make it work. I don't know how to set it as ReadOnly when the DetailsView is ReadOnly.
Many Thanks,
Jenning
|
|
|
|

|
hi ,
I use anthem AutoSuggestBox to display batchno. in my project , if i set control visible property at runtime its event are not working and it throw an java script error.
undefined is not an object
any suggestion on this welcome.
gunasekaran
modified on Tuesday, September 28, 2010 12:08 AM
|
|
|
|

|
hi, i'm try the code in vb.net but not work..
can you post me an example in vb.net? thank you
|
|
|
|

|
Hello Cassio and to all, optimal this plan but applying it to a my application web in which I interrogate 500000 records becomes slow too much. The problem is that all the data come loaded in the page_load. How it can not be only loaded all the data in the page_load but interrogating the databse when it comes typed the text in the textbox? Thanks for l' aid
|
|
|
|

|
can you help me version php
|
|
|
|

|
Hi Cassio, I downloaded the AutoSuggest TextBox project, and it is giving me scrolling problem. When the page is scrolling the suggestins are going up and down to. Please help.
Thanks & Regards,
Keshav Fulpagare
|
|
|
|

|
First of all, thanks a lot for this fantastic control. Much better than the AutoCompleteExtender of the AjaxControlToolkit.
I have created a user control, which contains this AutoSuggestBox. This user control works perfectly. But if I dynamically add this control to my web form like below, it doesn't work.
MyAutoSuggestBoxControl masbc = LoadControl("~/UserControls/MyAutoSuggestBoxControl") as MyAutoSuggestBoxControl;
MyPlaceHolder1.Controls.Add(masbc);
This dynamically added user control masbc does not work.
You have any idea how to shoot this problem? Thanks.
|
|
|
|

|
Dear Sir,
I have a launched new web site for .NET programming resources. www.codegain.com. I would like to invite to the codegain.com as author and supporter. I hope you will joins with us soon.
Thank You
RRaveen
Founder www.codegain.com
|
|
|
|

|
Hi Cassio,
i tried to get several autosuggest boxes working but yours is the best for me and its really simply to get it working (well, except for MultiViews).
Thank you so much!
The only problem is that I am using the control within a MultiView (and also in a user control sitting on a view of a MutliView) and that seems to make a difference (outside the MutliView it works totally fine). Within the MutliView the control adds the suggestion list (all values in a big block of text) right next to the textbox in the middle of the page (it still shows the suggestions).
The suggestions will only be shown partly and are then cut off if the control is near the bottom of the page.
Am i doing something wrong?
Thanks for any suggestions or help.
Cheers
Jana
modified on Wednesday, June 17, 2009 11:20 PM
|
|
|
|

|
Hi Cassio I download the LAST version of the AutoSuggest TextBox progect,and it seems You have not solve the scrolling problem yet,(when the page is scrolling) the suggestins are going up and down to ,Help plise .Thanks RembrAnt.
|
|
|
|

|
hi Cassio Mosqueira,
Nice Article ..Quite useful
but i hv doubt abt using yr code and dll in my projects..
is this source code require any licence agreement?
can i use it in my project..whether any licence agreement is required for tht or not?
|
|
|
|
|

|
Hi Cassio
i need to enable/disable an autosuggestbox based on the item selected in another autosuggestbox. How do i do this? I dont find autosuggestbox.enabled property. Could you plz help me out.
Thanks
Archana
|
|
|
|

|
First of all thank you for the control.. finally one that basically allows me to work as if I weren't dealing with AJAX.
However, I've ran into some major issues concerning the designer. Visual Studio 2008 SP1 has major issues handling that control. For instance, every couple hours, it suddenly adds two elements inside the AutoSuggestionBox markup.. and then naturally nothing will work anymore. If you remove the added textboxes, the designer can no longer render the control. The first thing it complains about is being unable to assign 'true' to AutoCallback.
Remove that and it starts moaning about properties like ItemNotFoundMessage - basically almost everything (one time it even complained about the Width parameter).
Also, if you assign events in the designer, there's an inexplicable access problem.. it says it cannot access the event handler when you try to compile.. even when you declare it as public (and I checked that the event args are all declared as public as well).
Do you have any plans of making the control more GUI friendly? The standard Anthem controls have not given me any grief so far and I can configure everything in the GUI and won't have to resort to code (I define everything but the ID in the OnInit method now.. that way the designer cannot complain).
I'm also couldn't quite figure out your mentioning of the ItemTemplate.
We have two control properties that seem to relate to what is shown in the textbox: DataKeyField and TextBoxDisplayField. However, how exactly do they matter and how do they relate to the ItemTemplate? As far as I can tell they seem to do nothing.
And with regards to the ItemTemplate.. so far every template I've seen included a control.. e.g.
<asp:label id="Label1" runat="server" text="<%# Bind("Creator") %>" xmlns:asp="#unknown">
Inside the control, you define the data binding.
Your example looks like this:
<![CDATA[<%# ((Customer)Container.DataItem).Name%>]]>
No control and consequently you cannot use the Bind or Eval statements. Could you elaborate a bit on that use of the ItemTemplate. How would you do it if your data source isn't a List but some sort of data set? Could you, with a data set, somehow use the DataKeyField and TextboxDisplayField to refer to column names in the data source?
Regards
Stephan
|
|
|
|

|
This is an amazing control. I loved it from the moment I used it. Unfortunately as with most custom controls we came up against a road block.
Problem statement:
I have a aspx page with 2 or more AutoSuggest boxes and one Submit button. I click the button and try to retrieve the Selected Value. It works !!!. Now after the first click, if I tab through the array of suggest boxes and click the submit button again, the AutoSuggest boxes have lost their Selected Value.
I have identified that this behaviour is because of this line of code in your OnKeyUp function in AutoSuggestBox.js
if (this.msOldTextBoxValue!=sNewValue)
{
this.SetSelectedValue("");
}
I just commented out that line and it seems to be working now.
However I was wondering if commenting this line would affect any other functionality of the control. Why is this line of code required?
|
|
|
|

|
Hello sir, i liked your code very much
but i want to implement two radio button choice and on the selection of either of then
i want to load different column data in the datacontainer of dataview. so can you help me
i am implementing it with asp.net and C#.net
please help me.
|
|
|
|

|
Hi Cassio,
First, overall your control works very well, thanks for posting it.
I am running into a problem with a certain situation though. The basic situation is that I'm getting a javascript error "'undefined' is null or not an object" whenever I perform an action that would fire a postback (keypress / onfocus / onblur) on an autosuggestbox that was loaded dynamically within an updatepanel.
Here's some more details:
I have a datalist that is within an updatepanel. Each row of my datalist has an autosuggestbox in it. I also have a button within my updatepanel that changes the amount of rows the datalist is bound to. On the initial load of the page, no matter how many rows the datalist starts out with, all the boxes work great. The error happens if I hit my button to add another row to the datalist, and then try to type in that new autosuggestbox...I'm pretty sure that it's never posting back, but running into the client side error right away. What's really strange is if I hit my button to add a new row, then type in one of the autosuggestbox's that had been on the datalist prior to that button click, not only will that work, but then the new box will also work perfect, no more javascript error. (I should also note that if I remove the updatepanel completely, everything works perfectly...so I know that the issue lies with dynamically adding a new autosuggestbox within an updatepanel)
I've done my best to try and update the AutoSuggestBox.cs to stop this from happening, but so far no luck, and I'm having trouble identifying where the actual problem is at. Things I've tried so far is changing your "RegisterClientScript()" function to do a "ScriptManager.RegisterClientScriptInclude" rather than a Page.RegisterClientScriptInclude. I've also tried stripping out any if statements regarding any javascript related functions to try and ensure they all fire no matter what, but I'm still getting this issue.
If you could provide any insight on how I might fix this, or even where I should start, I would appreciate it.
Thank you!
|
|
|
|

|
I also have the same problem… of IE 6
As I have develop the application in
And now when I have tried it with IE 6 specialty when we are using the auto suggest Text box one below the other the problem is coming as it changes the lay out.
So please help me out
|
|
|
|

|
How can I catch the underlying DataBound object when a user clicks or selects a suggested item.
I only can get the Text-property and only when the user clicks the item with the mouse.
_____________________________
...and justice for all
|
|
|
|

|
Hi,
Currently, when I move mouse over item, this item auto filled on textbox. Is there any way to only fill data on textbox when click?
I tried to dig your code and found that "onclick" event seem does not work.
Thanks.
|
|
|
|

|
Hey. I have tried out this control, and it is great. Thanks.
There is one thing thou:
If one write like "test" and then take a backspace to "tes" and then to "tesv". Very often
the suggestion box shows for a few seconds all suggestions for "test".
So is it somehow possible to not show the suggestions for "test" when it in the textbox has
"tesv". I'm not that knowlaged in JavaScript, but maby a varible that has the parameter for the
acctual searched text, and compere it to the text in the textbox?
Thanks
Thomas
|
|
|
|

|
Hi,
This looks like a gr8 article and a resource for autocomplete textbox.
But, I am using .NET 2003 still for one of my company's website and I was trying to add the .dlls that you provided with the example code in your article. But, it comes up with the following error - "The reference cannot be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component."
Please guide me on this!
Cheers
Siva
|
|
|
|
|

|
hi, I want to know that if the database is mysql.
how can I use a mysql database in this sample?
thank you!
codeuu,source code
|
|
|
|

|
Hi great control!!
I want to ask you how can I do this: AutoSuggest.Header.FindControl("pagerTop") ?
Thank's in advance.
|
|
|
|

|
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I added a reference as mentioned in the article and got me this error.
i dont know what that is
LiteralControl include = new LiteralControl(csslink);
Page.Header.Controls.Add(include);
Thanks for your help.
|
|
|
|

|
I love your Autocomplete, but i have one question.
I want to be able to click on one of the items in the results and have it automatically redirect to another web page.
Is there any way to do that?
|
|
|
|

|
if you use 2 "suggesttext" or more,you will find it .
it`s see not very well A blank ,after you click value of "autosuggesttext".
what i got to do make it unsee(Visible =false)?
help me ,thank you!
modified on Thursday, June 12, 2008 2:43 AM
|
|
|
|

|
May be a problem with my implementation. In myControl_SelectedValueChanged, I set a text box based on what was chosen for myControl.Text. This seems to work (i.e. debugging I see the value get put into TextBox1.Text) but doesn't change the value in the TextBox once the page is rendered. Any clue how to fix this?
Thanks,
Eric
Eric
|
|
|
|

|
I have used this code converting to VB.net.
It works fine.
But when i populate the datatable using query from sql ......it dosen't show any error but not able to show in the list.
Plz help me.
|
|
|
|

|
I used auto suggest control very well but now i got bug(suppose) in that,
what happened, when i select any item in drop down list of auto suggest
then it set selected value as per condition uptill it works fine
Now when i used tab key to get focus on autosugget it fires text changed event(why???), i just focus it , not changed any text, not even single char , due to this again drop down appear and if i didnt select any item and press Tab then i lost my previous selected value although it preserved text.
My point is while on focus it should not fire text changed event
if it didnt fire then problem solved but i didnt get success
So please help me.
Please
|
|
|
|

|
Hi Cassio,
Very nice control. I was wondering if you knew of an easy way of calling a client side javascript function on SelectedValueChanged as following:
function SelectedValueChanged(val)
{
alert('new value' + val);
}
I have successfully implemented the server side SelectedValueChanged function. But what I really need is a client side function.
Thanks for your help
|
|
|
|

|
I too have wanted to be able to select an option in my autosuggest box by hitting the enter key, and came up with a simple effective solution.
I added:
<anthem:button runat="server" causesvalidation="false" height="0px" width="0px" id="btnUpdate" visible="true" önclick="btnUpdate_Click" autoupdateaftercallback="true" enablecallback="true" />
to the same form that autosuggestbox is in, and added this function to change the focus.
public void btnUpdate_Click(object sender, EventArgs e)
{
form2.Focus();
}
You will have to hit the enter key twice to make the selection...once to actually set the selected value and again to change the focus from the autosuggestbox.
|
|
|
|

|
Hi,This is a great control to use. I am almost done with this control implementation. BUt I am getting problem when there is any space in my record. Records with space come in the list, but when I type it then it says items not found. Like if I am looking for "San diego" then the list come untill I type san, but when I type "san " then list disappears.
I am sure you will have a solution on this. Please help me, I am looking to implement your application as soon as possible.
Thanks & regards
Prithwish Biswas
Director
Dynamicark INC, Kolkata.
prithwish@dynamicark.com
Off:03365357048
+919836254162
|
|
|
|

|
Can I use more than one autosuggest in one page? Please help with code sample. And also when I use an autosuggest control, the area behind the drop down list which came can not be accessed with mouse click even after that layer became hidden.I put the control inside a layer in order to overcome the blank area left out when I use a table.It was not recapturing or going back.
|
|
|
|

|
Hi,
I am trying to use AutosuggestBox in my project.
I am using the control in master page.It is working fine in development environment. When I tried to publish the project it says "'JSAutoSuggestBox' is undefined". javascript error in the page load.
Can any one please let me know what was gone wrong.
One more thing i want to know that is there any validation if the user typed mismatches with the data loaded in the control? I mean if the user didn't select the dropdown it should say "please select the value" like that.
Thanks in advance
Saravanan
hai
|
|
|
|

|
Is there a way to use an OnFocus event of the Autosuggest Textbox?
|
|
|
|

|
Hi
i am using Autosuggest Controlin my project
i want that on entering some text in text box, suggestion is comming but it streches the table. I solved it by using "Div" so it comes over control, i am happy.
But now that div control, should be exactly below textbox, but it is placed left of textbox, i try to used style, css but didnt got success
so please help me
I fed up to do that, so give me any idea.
thanks!
|
|
|
|

|
I am noticing in IE 6 that the results for the Autosuggest box are causing links to not work properly when they are covered up by the results at any time.
For me I have the Autosuggest box in a right sidebar mixed in with some links and other text. When i search for something, if the results of that search extend down and cover any of the links below the suggest box, they get covered by something even after the results box is gone, and you have to refresh the page to make the links work again.
Is there a way to fix this?
|
|
|
|

|
I have a situation where I need to clear the value in the textbox via javascript.
I have tried
var ctl = document.getElementById('asbctl');
ctl.value = "";
but this does not work. any suggestions??
|
|
|
|

|
I'd like to show a spinny next to the textbox while the user waits for it to populate. I put in a JS function to handle this on the PostCallBackFunction and PreCallBackFunction of the control. While debugging, I see this getting set, but is never retrieved. Are those properties there only to satisfy the requirements of the ICallBackControl Interface or are they supposed to actually work?
Thanks,
cc
|
|
|
|

|
Hi ! all programer
I have one datalist control and there is one textboxes in itemtemplete, i one check box in the form . When i click on that check boxes so all the text boxes of the datalist should be disabled by java script
|
|
|
|

|
All I did was implement this at the automenu (top level)
overflow:auto; height:250px; width:800px;
The problem though is you can't always get the scrollbar to scroll correctly. As soon as you click on the scroll bars. The menu closes and you can't get the scroll bars working correctly. Most likely because you are firing off the MouseClick event..
Ideas on this?
|
|
|
|

|
Since, in ie6 if you want to embed a tool like this into your web pages you have to use the z-index property, otherwise you risk have users in ie6 see some pretty jacked up pages. However, in doing this you run into a new problem. In my case, a user types in the search box, sees results, clicks a result and some pre-data along with a link to a more detailed page appears directly below the search box. But, if the last size of the results box spans over the space where my pre-data appears, specifically links, you cannot click the link, it apparently doesn't set the height of that box to zero once the results disappear, instead it just makes the container's opacity 0%. So, my link sits behind an invisible box unable to be clicked. Anyone know a work around??
|
|
|
|

|
So So Perfect, thank u .
|
|
|
|

|
Hi Cassio Alves,
It’s so strange for me, when I bind data to my repeater, it shows this error:
Error evaluating client-side script!
Script: oJSAutoSuggestBox=new JSAutoSuggestBox;oJSAutoSuggestBox.msTextBoxID='_ctl0_ctl0_ctl0_MainArea_Main_Data_rptAddressAdLines_ctl1_tbAddressValue_ctl0';oJSAutoSuggestBox.msMenuDivID='DivMenu_ctl0_ctl0_ctl0_MainArea_Main_Data_rptAddressLines_ctl1_tbAddressValue_ctl0';oJSAutoSuggestBox.mnMaxSuggestChars=30;oJSAutoSuggestBox.mnKeyPress=300;oJSAutoSuggestBox.msMenuCSSClass='asbMenuoJSAutoSuggestBox);
Exception: ReferenceError: JSAutoSuggestBox is not defined.
I don’t know why, but when I test with your update that you sent to me, it’s ok.
Hope to hear from you soon.
Thanks,
Samnang
|
|
|
|

|
I really like this Autosuggest Textbox but I may be doing something wrong...
I'm trying to incorporate this into an existing website that didn't use Ajax/Anthem at all. I thought it would be easier just to put the AutoSuggest Textbox into a separate Class Library. Then I would just reference it and start using it. Everything works exactly the way I want it but we have an SEO (Search Engine Optimization) company telling us that we need to remove all the in-line javascript and have it in a JS file. Basically, all the javascript inside the AutoSuggestBox.js file appears within the HTML. If I put all the Autosuggest classes inside my website will it still generate all the javascript.
Brent
|
|
|
|
 |