469,631 Members | 1,218 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

Text recognition in ASP.Net

SV
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
Jun 27 '08 #1
7 1817
"SV" <sw*******@gmail.comwrote in message
news:db**********************************@k1g2000p rb.googlegroups.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...oComplete.aspx

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.

Jun 27 '08 #2
SV
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.mvps.orgwrote:
"SV" <swetav...@gmail.comwrote in message
news:db**********************************@k1g2000p rb.googlegroups.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.
Jun 27 '08 #3
SV
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_WebReferences" and under that folder i have

- App_WebReferences
- AjaxAutoCompleteWS
- AjaxAutoCompleteWS.disco
- AjaxAutoCompleteWS.discomap
- AjaxAutoCompleteWS.wsdl
I don’t know why it shows me AjaxAutoCompleteWS.wsdl and other files
Instead of AjaxAutoCompleteWS.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:AutoCompleteExtender
runat="server"
ID="autoComplete1"
TargetControlID="TextBox1"
ServiceMethod="LookUpSuburb"
ServicePath="App_WebReferences/AjaxAutoCompleteWS/
AjaxAutoCompleteWS.wsdl"
MinimumPrefixLength="1"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
CompletionListCssClass="autocomplete_completionLis tElement"
CompletionListItemCssClass="autocomplete_listItem"

CompletionListHighlightedItemCssClass="autocomplet e_highlightedListItem"
DelimiterCharacters=", :;">
</ajaxToolkit:AutoCompleteExtender>
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...@gmail.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.mvps.orgwrote:
"SV" <swetav...@gmail.comwrote in message
>news:db**********************************@k1g2000 prb.googlegroups.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 -
Jun 27 '08 #4
"SV" <sw*******@gmail.comwrote in message
news:10**********************************@s33g2000 pri.googlegroups.com...
I don’t know why it shows me AjaxAutoCompleteWS.wsdl and other files
Instead of AjaxAutoCompleteWS.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:
http://en.wikipedia.org/wiki/Web_Ser...ption_Language
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 AutoCompleteExtender tag to point to wherever
the service is exposed. If it's sitting in the same web project then you can
just use:

<ajaxToolkit:AutoCompleteExtender
runat="server"
ID="autoComplete1"
TargetControlID="TextBox1"
ServiceMethod="LookUpSuburb"
ServicePath="~/PathTo/AjaxAutoCompleteWS.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.

Jun 27 '08 #5
"SV" <sw*******@gmail.comwrote in message
news:84**********************************@q24g2000 prf.googlegroups.com...
<asp:TextBox ID="TextBox1" runat="server" Width="322px"></
asp:TextBox><br />
<ajaxToolkit:AutoCompleteExtender
runat="server"
ID="autoComplete1"
TargetControlID="TextBox1"
ServiceMethod="LookUpSuburb"
ServicePath="AutoAjaxDp.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
http://leon.mvps.org/

Jun 27 '08 #6
SV
Ahhh...It's still not working......

When I am putting direct path to .asmx file like "http://localhost/
AjaxAutoCompleteWS/AjaxAutoCompleteWS.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.mvps.orgwrote:
"SV" <swetav...@gmail.comwrote in message

news:84**********************************@q24g2000 prf.googlegroups.com...
<asp:TextBox ID="TextBox1" runat="server" Width="322px"></
asp:TextBox><br />
<ajaxToolkit:AutoCompleteExtender
* *runat="server"
* *ID="autoComplete1"
* *TargetControlID="TextBox1"
* *ServiceMethod="LookUpSuburb"
* *ServicePath="AutoAjaxDp.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/
Jun 27 '08 #7
"SV" <sw*******@gmail.comwrote in message
news:aa**********************************@b5g2000p ri.googlegroups.com...
When I am putting direct path to .asmx file like "http://localhost/
AjaxAutoCompleteWS/AjaxAutoCompleteWS.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 ~/AjaxAutoCompleteWS.asmx (if that's the
name of youasmx file in the same web project as the calling page).
Jun 27 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Junior | last post: by
1 post views Thread by Meena | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.