Text recognition in ASP.Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SV

    Text recognition in ASP.Net

    I am using ASP.Net / VB.Net v 2005.
    I want to add text recognition to one of the text box of suburb in my
    form. What I want to do is when user type any character in that text
    box, one dynamic list appear under that text box having all suburb
    name start with that character.
    How do I achieve that? Any hints……

    Any help will be appreciated.

    Thanks,
    SV
  • Leon Mayne

    #2
    Re: Text recognition in ASP.Net

    "SV" <swetavyas@gmai l.comwrote in message
    news:dbed5df7-890c-486c-9d20-5321cbf9bf4f@k1 g2000prb.google groups.com...
    I am using ASP.Net / VB.Net v 2005.
    I want to add text recognition to one of the text box of suburb in my
    form. What I want to do is when user type any character in that text
    box, one dynamic list appear under that text box having all suburb
    name start with that character.
    How do I achieve that? Any hints……
    Do you mean like the ajax autocomplete control?
    Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.


    You just need to write a web service which will list the possible suburbs
    for a given keystroke and point the control to your service.

    Comment

    • SV

      #3
      Re: Text recognition in ASP.Net

      Thanks Leon,

      I have downloaded AJAX Toolkit. But i am not getting any help re: How
      to implement autocomplete function in my current website.

      Could you help me please? I haven't used AJAX before.

      I really appreciate it.

      Thanks,
      SV

      On May 14, 6:16 pm, "Leon Mayne" <l...@rmvme.mvp s.orgwrote:
      "SV" <swetav...@gmai l.comwrote in message
      news:dbed5df7-890c-486c-9d20-5321cbf9bf4f@k1 g2000prb.google groups.com...
      I am using ASP.Net / VB.Net v 2005.
      I want to add text recognition to one of the text box of suburb in my
      form. What I want to do is when user type any character in that text
      box, one dynamic list appear under that text box having all suburb
      name start with that character.
      How do I achieve that? Any hints……
      >
      Do you mean like the ajax autocomplete control?http://asp.net/AJAX/AjaxControlToolk...lete/AutoCompl...
      >
      You just need to write a web service which will list the possible suburbs
      for a given keystroke and point the control to your service.

      Comment

      • SV

        #4
        AJAX Auto Complete: Doesn't display list

        Ahh I have solved it but now another problem…….

        I have made web service and consume it to my project.
        Web service runs perfect individually but when I consume web service
        in my project (by right click on solution explorer--add web
        references ---add reference). I got new folder in solution explorer
        name as "App_WebReferen ces" and under that folder i have

        - App_WebReferenc es
        - AjaxAutoComplet eWS
        - AjaxAutoComplet eWS.disco
        - AjaxAutoComplet eWS.discomap
        - AjaxAutoComplet eWS.wsdl


        I don’t know why it shows me AjaxAutoComplet eWS.wsdl and other files
        Instead of AjaxAutoComplet eWS.asmx file.
        In my web service, I have .asmx file and coded it into vb.net

        When I am writing code in default.aspx like:

        <asp:TextBox ID="TextBox1" runat="server" Width="322px"></asp:TextBox>

        <ajaxToolkit:Au toCompleteExten der
        runat="server"
        ID="autoComplet e1"
        TargetControlID ="TextBox1"
        ServiceMethod=" LookUpSuburb"
        ServicePath="Ap p_WebReferences/AjaxAutoComplet eWS/
        AjaxAutoComplet eWS.wsdl"
        MinimumPrefixLe ngth="1"
        CompletionInter val="1000"
        EnableCaching=" true"
        CompletionSetCo unt="20"
        CompletionListC ssClass="autoco mplete_completi onListElement"
        CompletionListI temCssClass="au tocomplete_list Item"

        CompletionListH ighlightedItemC ssClass="autoco mplete_highligh tedListItem"
        DelimiterCharac ters=", :;">
        </ajaxToolkit:Aut oCompleteExtend er>


        It doesn't work.
        It shows me just text box. No combo box having suburb names...

        Any help really appreciated

        Thanks,
        SV



        On May 16, 10:16 am, SV <swetav...@gmai l.comwrote:
        Thanks Leon,
        >
        I have downloaded AJAX Toolkit. But i am not getting any help re: How
        to implement autocomplete function in my current website.
        >
        Could you help me please? I haven't used AJAX before.
        >
        I really appreciate it.
        >
        Thanks,
        SV
        >
        On May 14, 6:16 pm, "Leon Mayne" <l...@rmvme.mvp s.orgwrote:
        >
        >
        >
        "SV" <swetav...@gmai l.comwrote in message
        >news:dbed5df 7-890c-486c-9d20-5321cbf9bf4f@k1 g2000prb.google groups.com....
        I am using ASP.Net / VB.Net v 2005.
        I want to add text recognition to one of the text box of suburb in my
        form. What I want to do is when user type any character in that text
        box, one dynamic list appear under that text box having all suburb
        name start with that character.
        How do I achieve that? Any hints……
        >
        Do you mean like the ajax autocomplete control?http://asp.net/AJAX/AjaxControlToolk...lete/AutoCompl...
        >
        You just need to write awebservice which will list the possible suburbs
        for a given keystroke and point the control to your service.- Hide quoted text -
        >
        - Show quoted text -

        Comment

        • Leon Mayne

          #5
          Re: AJAX Auto Complete: Doesn't display list

          "SV" <swetavyas@gmai l.comwrote in message
          news:104d21d4-6bf5-414a-83b2-df75195e52d8@s3 3g2000pri.googl egroups.com...
          I don’t know why it shows me AjaxAutoComplet eWS.wsdl and other files
          Instead of AjaxAutoComplet eWS.asmx file.
          In my web service, I have .asmx file and coded it into vb.net
          It doesn't copy the source files, it is taking a copy of the definition the
          web service provides. The WSDL file is a service contract for what methods
          the service provides etc:

          This allows your project to create proxy dummy objects so you can access the
          web methods as if you have made a local reference to a class.

          As it turns out you don't need to add a web reference anyway. You just need
          to change the values in the AutoCompleteExt ender tag to point to wherever
          the service is exposed. If it's sitting in the same web project then you can
          just use:

          <ajaxToolkit:Au toCompleteExten der
          runat="server"
          ID="autoComplet e1"
          TargetControlID ="TextBox1"
          ServiceMethod=" LookUpSuburb"
          ServicePath="~/PathTo/AjaxAutoComplet eWS.asmx"
          etc

          And if it's in a separate project then you'll have to point it to the full
          URL, e.g. http://localhost/PathTo/AjaxAutoCompleteWS.asmx for testing and
          then change it to wherever you're going to deploy it to before you make the
          project live.

          Comment

          • Leon Mayne

            #6
            Re: AJAX Auto Complete: Doesn't display list

            "SV" <swetavyas@gmai l.comwrote in message
            news:848ef64b-0da2-48ab-b69c-1428baf5bf51@q2 4g2000prf.googl egroups.com...
            <asp:TextBox ID="TextBox1" runat="server" Width="322px"></
            asp:TextBox><br />
            <ajaxToolkit:Au toCompleteExten der
            runat="server"
            ID="autoComplet e1"
            TargetControlID ="TextBox1"
            ServiceMethod=" LookUpSuburb"
            ServicePath="Au toAjaxDp.asmx"
            Whereabouts is AutoAjaxDp.asmx in your project? Try putting the path to it
            using the home (~) operator, e.g. if the asmx file is in the root folder
            then use:
            ServicePath="~/AutoAjaxDp.asmx "
            Or if it's in a subfolder (e.g. 'Service') then use:
            ServicePath="~/Service/AutoAjaxDp.asmx "

            --
            Leon Mayne


            Comment

            • SV

              #7
              Re: AJAX Auto Complete: Doesn't display list

              Ahhh...It's still not working......

              When I am putting direct path to .asmx file like "http://localhost/
              AjaxAutoComplet eWS/AjaxAutoComplet eWS.asmx"
              then when i am typing anything in textbox it shows me javascript error
              that "Access is denied".

              What shall I do now?

              It’s very annoying now.
              I really appreciate your replies.

              Is that there is no solution for this?

              On May 19, 6:05 pm, "Leon Mayne" <l...@rmvme.mvp s.orgwrote:
              "SV" <swetav...@gmai l.comwrote in message
              >
              news:848ef64b-0da2-48ab-b69c-1428baf5bf51@q2 4g2000prf.googl egroups.com...
              >
              <asp:TextBox ID="TextBox1" runat="server" Width="322px"></
              asp:TextBox><br />
              <ajaxToolkit:Au toCompleteExten der
                 runat="server"
                 ID="autoComplet e1"
                 TargetControlID ="TextBox1"
                 ServiceMethod=" LookUpSuburb"
                 ServicePath="Au toAjaxDp.asmx"
              >
              Whereabouts is AutoAjaxDp.asmx in your project? Try putting the path to it
              using the home (~) operator, e.g. if the asmx file is in the root folder
              then use:
              ServicePath="~/AutoAjaxDp.asmx "
              Or if it's in a subfolder (e.g. 'Service') then use:
              ServicePath="~/Service/AutoAjaxDp.asmx "
              >
              --
              Leon Maynehttp://leon.mvps.org/

              Comment

              • Leon Mayne

                #8
                Re: AJAX Auto Complete: Doesn't display list

                "SV" <swetavyas@gmai l.comwrote in message
                news:aa4da161-8612-474d-b64c-cb262a8f12d1@b5 g2000pri.google groups.com...
                When I am putting direct path to .asmx file like "http://localhost/
                AjaxAutoComplet eWS/AjaxAutoComplet eWS.asmx"
                then when i am typing anything in textbox it shows me javascript error
                that "Access is denied".
                Don't put the full url in, just use ~/AjaxAutoComplet eWS.asmx (if that's the
                name of youasmx file in the same web project as the calling page).


                Comment

                Working...