Atlas:AutoCompleteExtender Problems

Last post 11-02-2007 3:54 PM by DisturbedBuddha. 9 replies.

Sort Posts:

  • Atlas:AutoCompleteExtender Problems

    09-15-2006, 6:44 PM
    • Loading...
    • RamzyEbeid
    • Joined on 09-15-2006, 10:37 PM
    • Posts 37

    Dear Group

    My name is Ramzy N.Ebeid

    i am using ASP.NET 2.0 C#

    i have a question related to the part of Atlas:AutoCompleteExtender.

    1 - i want to pass more that 2 parm., i am also asking if there is a way to make this issue manully, if yes then can you tell me how to do it.

    2 - can i read session varibles from webservice

    3 - can i know the javascript file that is responsible for this part

    thank you.

     

     

    Ramzy N. Ebeid
    Team Leader – Development Division
    USBC
    Telephone:(720)212-0810
    email:zonzone@hotmail.com

  • Re: Atlas:AutoCompleteExtender Problems

    09-19-2006, 8:51 PM
    Well I fell into the same issue. THe best way around it is to use session variables. I used Session variables and it worked just fine. Atlas will probably come out with a better solution on their next release but until then..it is all our creative imagination. Good luck
  • Re: Atlas:AutoCompleteExtender Problems

    09-21-2006, 3:39 PM
    • Loading...
    • RamzyEbeid
    • Joined on 09-15-2006, 10:37 PM
    • Posts 37

    thank you for your reply.

    i want to know how did you read SessionVariable from WebService.

     

    please let me know

    thank you.

  • Re: Atlas:AutoCompleteExtender Problems

    09-22-2006, 2:07 PM

    for instance

    The page had a requestid. I did a session(memberid) = requestid.

     

    in the function of the webservice, I just stored the session(memberid)  into an integer value.

    memberid = session(memberid)

    in your query parameter...addparameterwithValue, ("@memberId", memberid)

    Hope this helps

     

  • Re: Atlas:AutoCompleteExtender Problems

    09-22-2006, 6:00 PM
    • Loading...
    • RamzyEbeid
    • Joined on 09-15-2006, 10:37 PM
    • Posts 37

    thank you for your reply,

    please i want other help from you, i want to set focus in a control in Update panel, do you have any idea about that.

    Set focus to a control inside a Updatepanel in Atlas

     

    thank you

  • Re: Atlas:AutoCompleteExtender Problems

    09-23-2006, 10:56 AM

    Hello.

    I have some problem about atlas auto complete extender too.

    My questions are:

    1-) When I changed the parameter prefixText's name as city_name, I can not see the correct result under my textbox. I want to see the related cities , for example when the user enters m, I want to see only Milano,Madrid,Monaco,Munchen etc but I see all the cities like Roma,London etc. Where is the problem , am not I change the web service's function's parameters name?

    2-)I want to use a method whose parameters count are 4 not a method in web service with two parameters(prefixText and count.).

    3-)I do not want to use a web service,I want to use a function in my code page , how can I achieve this?

    4-) I can not understand the usage of count parameter. What is the count parameters job? When I run the web service and enter the prefixText as m and entered the count as 2, I see all the cities whose first character is m but I want to see only two. I read in an article in code project that "The count parameter specifies the maximum number of possible values to return to the client. ". And am not I change the count paramters value in my aspx page?

    5-) I use Atlas July release. I can not see the before entered values on textbox which is targetcontrol of the atlas auto-complete extender. This is normal? If you answers my questions I will be more happy. Good Afternoon.

  • Re: Atlas:AutoCompleteExtender Problems

    10-23-2006, 9:32 AM
    • Loading...
    • Beckham
    • Joined on 09-26-2006, 3:31 PM
    • Posts 9

    Hi

    You have to change your Database Stored Procedure and you can pass all the parameters you want:

    1) if you want all the cities that have the M, go to yor stired procedure and change the LIKE operator behavios of the query I guess you have something like this:

    LIKE '%' + PrefixText + '%' change it to : LIKE PrefixText + '%'

    3) I am not sure but All I have read, I know it is not possible to use a fuction in your page.

     

  • Re: Atlas:AutoCompleteExtender Problems

    01-26-2007, 4:45 AM
    • Loading...
    • SuperSpike
    • Joined on 01-25-2007, 3:35 PM
    • Posts 37

    Hello friends! I had find solution for your problem!

    In WebService, if you want to use a variable in the Session that are declared in a page .aspx or .cs, you must write (EnableSession = true) in the [WebMethod tag]

    Example:

     

    using ....
    ...........

    ..........

    /// <summary>
    /// Summary description for AutoCompleteService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ScriptService]
    public class AutoCompleteService : System.Web.Services.WebService {

         [WebMethod(EnableSession = true)]
        public string[] YourMethod(string prefixText, int count)
        {
            string varSession = Session["variable"].ToString();

            ..............

           .............
     

     

  • Re: Atlas:AutoCompleteExtender Problems

    11-02-2007, 7:01 AM
    • Loading...
    • RandomGuy
    • Joined on 08-05-2004, 7:43 AM
    • UK
    • Posts 7

    Thanks, that is exactly what i need! 

  • Re: Atlas:AutoCompleteExtender Problems

    11-02-2007, 3:54 PM

    To answer RamzyEbeid's question about setting focus:

        Dim sm As ScriptManager = ScriptManager.GetCurrent(Page)
        sm.SetFocus(WhateverControlID)

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
Page 1 of 1 (10 items)
Microsoft Communities
Page view counter