Showing posts with label includes. Show all posts
Showing posts with label includes. Show all posts

Wednesday, March 21, 2012

A question about Beta 1 and Beta2

I have downloaded the beta1 from the ajax.asp.net,and it includes 3 dll files:AJAXExtensionsToolbox.dll,Microsoft.Web.Extensions.Design.dll,Microsoft.Web.Extensions.dll

when the ajax 2 was published, I download it and refresh the beta 1 use it.

it run all ok in my computer.

I copy the source file to another computer,and set up ajax beta 2 at that computer.

it run ok, too,but when I choose the designer,the ajax controls were all error.

Don't do that, make sure you uninstall beta1 from you developer computer and then install beta 2, even coping the file does not work as the installer adds the files into the GAC

oh,sorry,I describe it not clearly.

I don't use copy.

I unnitall the beta 1 and set up the beta 2 .

what should I do?

thank u for your reply.


What exactly do you mean by what do you now?

Are you experiencing errors with the previous Ajax App? Recompile and programming should come as normal.. we are a little confused by the what to do now...


If you are missing the Intelissense, some have reported that changing the web.config entries to reference something like ajax instead of asp.. provides it... Others working with MasterPages find as long as the master page is open in the designer it works.. see my blog entry ontech-review.org for web.config entries and other install tips...

Check you web config to make sure all is resgistered for the Beta 2 :

http://alpascual.com/blog/al/archive/2006/10/24/Manually-upgrading-from-Atlas-to-ASP.NET-2.0-Ajax.aspx


OK.

the ajax beta 1:I downloat and install it.the default file include files:AJAXExtensionsToolbox.dll,Microsoft.Web.Extensions.Design.dll,Microsoft.Web.Extensions.dll

and the ajax beta 2: in another computer( it have never installed the beta 1,it is pure).I install the beta 2 directly.

but the default file noly inluce Microsoft.Web.Extensions.dll.the vs.net toolbox have no ajax control.

I add ajax control into toolbox.and add it to a website.

the website run ok.but the control response error in the design view.

I have modified the pre from asp to ajax.

thank you for your reply.


albertpascual,thank you for your reply.but the link I can't open.
What error do you get opening the link?

A premium AutoComplete for AJAX?

Is there anyway to emulate the complete functionality of the comboBox control in MS Access that includes Autocomplete, column headers etc? I've seen some 3rd party ones, but am not at liberty at my company to acquire them.

I've used the autocomplete extender but I really need the column headers and "not-in-list" event. I was thinking I could use a datagrid or datalist to emulate this.

hi,

check this

http://ajax.asp.net/ajaxtoolkit/AutoComplete/AutoComplete.aspx


I'm sorry. I guess I should have mentioned thathttp://ajax.asp.net/ajaxtoolkit/AutoComplete/AutoComplete.aspx was mystarting point.
Presently, I am showing Cost Center numbers in one column. What I would like to do is have an additional column that displays a name description. If I were to add yet a third column, which is a possibility, it would just be nice to be able to display the column headers just as you do in Microsoft Access.


Here's what I have so far in the autocomplete.asmx (ONE column) , please help me adjust this for additional columns.

<%@.WebServiceLanguage="VB"Class="autocomplete" %>

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections.Generic

<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<System.Web.Script.Services.ScriptService()> _

PublicClass autocomplete
Inherits System.Web.Services.WebService

<WebMethod()> _

PublicFunction GetSuggestionsFromDataset(ByVal prefixTextAsString,ByVal countAsInteger)AsString()

' Define data set

Dim dsAsNew DataSet()
Dim dtAsNew DataTable()
Dim drAs SqlDataReader = PurchasingBLL.GetCostCenters
Dim daAsNew PurchasingTableAdapters.tbl_CostCenterTableAdapter ds.Tables.Add(dt)
dt.Columns.Add(New DataColumn("Word",GetType(String)))
dt.Rows.Add("Cost Center")

DoWhile dr.Read
dt.Rows.Add(New ListItem(dr("FullCCNum")))
Loop

Dim suggestionsAsNew List(OfString)()
Dim wordsAs DataRow() = dt.[Select]("Word LIKE '" + prefixText +"%'")
Dim numAsInteger = IIf((words.Length < count), words.Length, count)

For iAsInteger = 0To num - 1
suggestions.Add(DirectCast(words(i)("Word"),String))
Next

Return suggestions.ToArray()

EndFunction

EndClass

I suppose I could put a "label" or something underneath the textbox, but I notice that the extender attaches exactly "Flushed" at the bottom, so I probably have to do some trickery to make that happen. Any suggestions?


This is not currently supported. We do want to allow users to set custom datatypes in the autocomplete flyouts bound to item templates but we are still investigating that approach.


Ok, then what about something less daunting like perhaps just helping me add another column in the web service?
I'm confused of the exact useage of the array ("suggestions") that was provided in the example.

I tried this, but it still only returns one column, - and as you can see, I haven't touched the "Suggestions" array.
Or -- is adding column headers specifically what is not supported?

dt.Columns.Add(New DataColumn("Word",GetType(String)))
dt.Columns.Add(New DataColumn("Descr",GetType(String)))

dt.Rows.Add("Cost Center")
DoWhile dr.Read
dt.Rows.Add(New ListItem(dr("FullCCNum")))
Loop

dt.Rows.Add("Description")

DoWhile dr.Read
dt.Rows.Add(New ListItem(dr("CC_Descr")))
Loop


Hi, may be you can consider returning a string array can represent the result in a well formated way?

For instance:

[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
string[] words = prefixText.Split(new char[] { ';' });
string[] result = new string[16];
for (int i = 0; i < 16; i++)
{
result[i] = datarow["column1"] + "\t[ Use a tab to separate different columns ]" + datarow["column2"] ;
}
return result;
}


Would you mind translating to Visual Basic-- I have a translator, but it doesn't like that usage of datarow:

PublicSharedFunction GetCompletionList(ByVal prefixTextAsString,ByVal countAsInteger)AsString()
Dim wordsAsString() = prefixText.Split(NewChar() {";"c})
Dim resultAsString() =NewString(15) {}

For iAsInteger = 0To 15
result(i) = DataRow("column1") +"" & Chr(9) &"[ Use a tab to separate different columns ]" + DataRow("column2")
Next

Return result

EndFunction