You need to Register for free and Login to post a message in the forum.

Forum

Results not displayed with AutoCompleteExtender
Last Post 2010-02-22 05:20 PM by Woz. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
WozUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2010-02-11 07:19 PM  
Hi,

I am having an issue with AutoCompleteExtender displaying the results
returned from its query in my Module. I have everything working,
If I open up FireBug and start typing I can see it processing the
 javascript and returning the first 10
results (under firebug response tab as:

<br><div selected="true" role="tabpanel" cl ="netInfoResponseText netInfoText "><pre role="list"><pre cl ="csharpcode">{"d":["*****","*****",<span cl ="kwrd"><</span><span cl ="html">br</span><span cl ="kwrd">></span>"*****"</pre><pre cl ="csharpcode">,"******","*****",<span cl ="kwrd"><</span><span cl ="html">br</span><span cl ="kwrd">></span>"*****</pre><pre cl ="csharpcode">","*****","*****",<span cl ="kwrd"><</span><span cl ="html">br</span><span cl ="kwrd">></span>"*****","****</pre><pre cl ="csharpcode">"]}<br>


So I know it is getting the correct results as I type. But for some reason they
are not showing up anywhere on my module. Does anyone have any experience in using
AutoCompleteExtender and getting it to work?

Thanks,

Chris

Incase anyone needs the code I am using:
.ascx page:

<br><span cl ="kwrd"></span>    <span cl ="kwrd"><</span><span cl ="html">asp:TextBox</span> <span cl ="attr">ID</span><span cl ="kwrd">="txtContactName"</span> <span cl ="attr">runat</span><span cl ="kwrd">="server"</span> <span cl ="attr">Height</span><span cl ="kwrd">="21px"</span> <span cl ="attr">Width</span><span cl ="kwrd">="212px"</span> <span cl ="attr">AutoPostBack</span><span cl ="kwrd">="true"</span><span cl ="kwrd">><!--</span--><span cl ="html"><br>asp:TextBox</span><span cl ="kwrd">><</span><span cl ="html">br</span><span cl ="kwrd">><</span><span cl ="html">asp:RequiredFieldValidator</span> <span cl ="attr">ID</span><span cl ="kwrd">="RequiredFieldValidator3"</span> <span cl ="attr">runat</span><span cl ="kwrd">="server"</span> &<span cl ="attr">lt</span>;<span cl ="attr">br</span><span cl ="kwrd">><br></span> ControlToValidate="txtContactName" ErrorMessage="You must select a Contact Name"<span cl ="kwrd">></span>*<br><span cl ="kwrd"><!--</span--><span cl ="html"><asp:RequiredFieldValidator</span><span cl ="kwrd">></span><span cl ="kwrd"><br><</span><span cl ="html">cc1:AutoCompleteExtender</span> <span cl ="attr">ID</span><span cl ="kwrd">="AutoCompleteExtender1"</span> &<span cl ="attr">lt</span>;<span cl ="attr">br</span><span cl ="kwrd">><br></span> TargetControlID="txtContactName" runat="server" ServiceMethod="GetContactList" <br>     ServicePath="AutoComplete.asmx"<br><span cl ="kwrd"><</span><span cl ="html">br</span><span cl ="kwrd">></span>MinimumPrefixLength="2" CompletionSetCount="10" ContextKey="false"<span cl ="kwrd">><br><</span><span cl ="html">br</span><span cl ="kwrd">></span>    <span cl ="kwrd"><</span><span cl ="html">Animations</span><span cl ="kwrd">><br><</span><span cl ="html">br</span><span cl ="kwrd">></span>        <br><span cl ="kwrd"><</span><span cl ="html">OnShow</span><span cl ="kwrd">><</span><span cl ="html">br</span><span cl ="kwrd">></span>        <br><span cl ="kwrd"><</span><span cl ="html">FadeIn</span> <span cl ="attr">Duration</span><span cl ="kwrd">=".5"</span> <span cl ="attr">fps</span><span cl ="kwrd">="20"</span> <span cl ="kwrd">/><</span><span cl ="html">br</span><span cl ="kwrd">><br></span> <span cl ="kwrd"><!--</span--><span cl ="html">OnShow</span><span cl ="kwrd">><</span><span cl ="html">br</span><span cl ="kwrd">></span>    <span cl ="kwrd"><!--</span--><span cl ="html">Animations</span><span cl ="kwrd">><</span><span cl ="html">br</span><span cl ="kwrd">><!--</span--><span cl ="html">cc1:AutoCompleteExtender</span><span cl ="kwrd">></span><br>



.ascx.vb page:

<br> Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load<span cl ="kwrd"><br></span> ' Determine if AJAX is installed<span cl ="kwrd"><br></span><span cl ="kwrd"></span> If DotNetNuke.Framework.AJAX.IsInstalled Then<span cl ="kwrd"><br></span><span cl ="kwrd"></span> DotNetNuke.Framework.AJAX.RegisterScriptManager()<span cl ="kwrd"></span><span cl ="html"></span><span cl ="kwrd"><br></span>                ' Create a reference to the Script Manager<span cl ="kwrd"><br></span> Dim objScriptManager As ScriptManager = ScriptManager.GetCurrent(Me.Page)<br><span cl ="kwrd"></span>                ' Add a reference to the web service<span cl ="kwrd"><br></span><span cl ="kwrd"></span> Dim objServiceReference As ServiceReference = New ServiceReference<br><span cl ="kwrd"></span>                objServiceReference.Path = "~/DesktopModules/ClaimsAssociation/AutoComplete.asmx"<span cl ="kwrd"><br></span> objScriptManager.Services.Add(objServiceReference)<span cl ="kwrd"><br></span> 'objScriptManager.EnablePageMethods = True<span cl ="kwrd"><br></span><span cl ="kwrd"></span> DotNetNuke.Framework.AJAX.WrapUpdatePanelControl(Me.pnlUpdate, True)<br> End If<span cl ="kwrd"><br></span><span cl ="kwrd"></span> End Sub<br><span cl ="kwrd">



WozUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2010-02-22 04:58 PM  
Edited to clean up the post some. Sorry didnt realize it looked like that, when I previewed it everything looked fine


Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2010-02-22 05:03 PM  
if you are posting code, its best to attach it in a zip to the forum post


Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
WozUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2010-02-22 05:20 PM  
Attached Codefiles in a zip. Hope this makes things easier

Thanks,

Chris

1222201114071.zip

You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

iPhone website logo in DNN root directory by JohnnieD
I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
RE: Fixed size container by Joseph Craig
Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
Fixed size container by Aggiedan97
I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
RE: DNN 6.1 app_offline.htm by Joseph Craig
If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
RE: DNN site automatically redirects to a different domain name. by Joseph Craig
Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
DNN 6.1 app_offline.htm by Dave Hassall
Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
RE: DNN site automatically redirects to a different domain name. by imran shaikh
Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds