Showing posts with label toolkit. Show all posts
Showing posts with label toolkit. Show all posts

Wednesday, March 28, 2012

AJAX Beta 2 and Toolkit 61102 released but missing CalendarExtender, TabPanel and TabConta

Any idea if these are likely to be put back in as I finally got them working?

Calendar and Tabs currently only exist in the Development branch as they are not yet stable for release. I believe that the beta2 changes in the Release branch will be merged back into the Development branch soon.

I have 55 pages using Tabs now and about 40 other pages that need the fixes in the Beta2 release.

This now makes it difficult to decide whether to temporarily code out all the Tab panels somehow and replace them with something else or wait until Tabs are back in the Toolkit.

Any idea when the Tabs will be back in? Guess?

Help...please...Crying


I'm looking at migrating Tabs right now, but keep in mind tabs is currently still in development and is not fully stable enough for the release branch. Its implementation may still change slightly before it hits the release.
Thanks. Much appreciated.

Monday, March 26, 2012

ajax autocomplete text

Hi,

I downloaded ajax 1.0 beta 2 and the controls toolkit.

I want to make an autocomplete textbox that while typing letters in it,

a dropdownlist is opened under it and filled by ajax with every new letter typed in the textbox.

When choosing a value in the ddl, it disappears and the selected value inserted into the textbox.

I saw such examples in atlas, but I prefer to use ajax 1.0 , since I relized that this is the recommended product.

Is there any control in the controls toolkit for that ? Did somebody here tried it before ?

Thanks a lot !

AutoCompleteExtender currently lives in the Futures CTP:http://www.microsoft.com/downloads/details.aspx?FamilyId=29B6B62B-A25A-498D-AA14-90B68CF2E392&displaylang=en

AJAX Assembly

I am running visual studio on my desktop and laptop. Both have had the AJAX Control toolkit and AJAX extensions installed. I mostly do my development work on my desktop but every once in a while I take my laptop. When I take my laptop I copy and paste the visual studio 2005 folder from 'documents' and copy it onto my laptop.

I've just done this recently and I am getting errors "Unrecognized tax prefix or device filter 'ajaxToolkit' on all my ajax controls. When I create a new page and insert an ajax control Visual Studio registers an assembly 'Assembly="AjaxControlToolkit" and tags it as "cc1". On my desktop visual studio doesn't register any assembly. It just calls the control <ajaxToolkit:...> and things work.

I've checked the bin folder and it does contain the AJAX dll. I'm sure it's something simple here, can someone tell me what is missing? Thank you.

try this in your aspx

<%@.RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1" %>


I know about registering the assembly this way. I was wondering why on my desktop machine I don't have to register the assembly in my aspx and when I open it on my laptop I, all of a sudden, do.


Hi,

This can be also registered in web.config.

For instance:

<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
</controls>

Ajax application not working when deployed to web server

I installed the extender and then the toolkit and was able to create the sample application described here:http://ajax.asp.net/ajaxtoolkit/Walkthrough/UsingSampleExtender.aspx

However, when I deploy the webpage to my company's web server I get the following error when I try to run it:

Server Error in '/ajaxtest' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:\WebSites\ajaxtest\web.config line 41)

Source Error:

Line 39: </httpHandlers>Line 40: <httpModules>Line 41: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 42: </httpModules>Line 43: </system.web>


Source File:E:\WebSites\ajaxtest\web.config Line:41


The file it is referencing (E:\WebSites\ajaxtest\web.config) is there. Does anyone have any idea what's going on? I've Googled the problem and searched on here but nothing seems to work.

Thanks in advance!

Do you have System.Web.Extensions.dll in the bin directory in the server?

Do you mean the bin application of my AJAX enabled web app?

If so, that particular DLL is not in the bin folder, but it's not in the bin folder on my local machine either and it runs fine there. It just doesn't run on the web server.


If you don't have a bin of your application in the bin folder, maybe it's because you don't have a webApp project but a web site project. But, in both cases, you should have more dll's in the bin folder and that dll's should be copied to the bin folder on the server!

That's true. It is a web site project and not a web app project. However, I do have a bin folder for the application on my development machine and the server. When run on my development machine the application works, but when run on the server it doesn't. And neither bin folder has the dll you mentioned.

I'm sorry if I was confusing before.

Regardless, I will see about getting that dll into the proper folder and see what happens from there. Thanks again for your help and advice!


The dll you need should be here:

C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\System.Web.Extensions.dll

Put it on bin folder on server and it should work, I hope. :P


SWEET! That did the trick!

Thanks a million, Agapito! I really appreciate it.


Gracias! Friend! it worked.

Yes

Saturday, March 24, 2012

AJAX and Toolkit

Last week I downloaded and installed AJAX and the associated toolkit viaASPAJAXExtSetup.msi andAjaxControlToolkit.zip respectively.

When I open thetoolkit.sln file in VS2005, I get a flock of error messages, most notable of which are messages to the effect that the app is unable to find the System.Web.Extensions.dll and System.Web.Extensions.Design.dll files.

In looking at the installed files I noticed the following differences between the AJAX Extensions files and the Toolkit Files:

o AJAX Extensions inC>Program Files>Microsoft ASP.Net>ASP.Net 2.0 AJAX Extensions>v1.0.61025 folder contains aweb.config file that includes numerous "microsoft.web" and "Microsoft.Web.Extensions" entries.

o AtlasControlToolkit files in C>Program Files>Microsoft ASP.Net, the resultant files also containweb.config files: One in each of the "SampleWebSite", "ToolkitTests", and "ToolkitWebsiteTemplate" sub-folders. Each of these threeweb.config files include numerous "system.web" and "System.Web.Extension" entries.

I assume that theSystem.Web.xxx is the appropriate syntax.

Is there possibly a newer version of theASPAJAXExtSetup.msifile that synchronizes the syntax between these two apps?

Is there something else that I may have missed?

(I had previously been using ATLAS: I uninstalled the ATLAS app, and deleted the toolkit folder before I installed teh AJAX apps)

Never mind.

I downloadedASPAJAXExtSetup.msi againand the toolbox now works OK.

All of the config files now match each other.

Ajax and TargetCOntrolID issue

In Atals, toolkit control can be out side of Updatepanel that includes the target Control. But For AJAX, it reports

An extender can't be in a different UpdatePanel than the control it extends.

or

The TargetControlID of 'PopupControlExtender1' is not valid. A control with ID 'DateTextBox' could not be found

How to solve this issue? It's painful if I need to change all toolkit controls in page for AJAX.

Beta 1 changed how everything worked compared to Atlas. You will need to place the extenders and target control within the same Update Panels (With exception of the ModalPopup - if you use this weeks Release Build on CodePlex)... Yes it will probably be a little more work but whats in the Betas now will be the RTM version so - its either now or then...

Ajax and MasterPage issues (tags like scriptManager and html - not recognized)

I am having problem with AJAX Toolkit and MasterPages.

When I create a new Content Page and use html tags or ahax scriptManager I recevied lots of errors.

I cannot seem to get this resolved.

Here find below example I am working on - none of the html or scriptManager stuff for ajax is being recongnised.

Please assist.

File Sample

------------

<%@dotnet.itags.org.PageLanguage="C#"MasterPageFile="~/MasterPage.master"AutoEventWireup="true"CodeFile="laz.aspx.cs"Inherits="laz"Title="Untitled Page" %>

<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Server">

</asp:Content>

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<scriptrunat="server">

protectedvoid btnRefresh_Click(object sender,EventArgs e)

{

}

</script>

<htmlxmlns="http://www.w3.org/1999/xhtml">

<headid="Head1"runat="server">

<title>Untitled Page</title>

<linkhref="StyleSheet.css"rel="stylesheet"type="text/css"/>

</head>

<body>

<formid="form1"runat="server">

<asp:ScriptManagerID="ScriptManager1"runat="server">

</asp:ScriptManager>

<asp:PanelID="Panel1"runat="server"CssClass="modalPopup"Height="50px"Width="235px"style="display:none"DefaultButton="btnOk">

<asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional">

<ContentTemplate>

<%=DateTime.Now.ToString() %>

<divstyle="display:none">

<asp:ButtonID="btnRefresh"runat="server"Text="Refresh"OnClick="btnRefresh_Click"/>

</div>

</ContentTemplate>

</asp:UpdatePanel>

<asp:ButtonID="btnCancel"runat="server"Text="Cancel"/>

<asp:ButtonID="btnOk"runat="server"Text=" OK "/>

</asp:Panel>

<asp:ButtonID="Button2"runat="server"Text="Button"Enabled="false"style="display:none"/>

<ajaxToolkit:ModalPopupExtenderID="ModalPopupExtender1"runat="server"TargetControlID="Button2"PopupControlID="Panel1"CancelControlID="btnCancel"DropShadow="true"BackgroundCssClass="modalBackground">

</ajaxToolkit:ModalPopupExtender>

<inputid="Button3"type="button"value="Click Me"onclick="showModalPopup()"/>

<scripttype="text/javascript"language="javascript">

function showModalPopup(){

$get("<%=btnRefresh.ClientID %>").click();

$find("<%= this.ModalPopupExtender1.ClientID %>").show();

}

</script>

</form>

</body>

</html>

...........?

why are all the tags outside the <asp:Content? Aren't they suppose to be inside?


Honestly is does not matter if the content is inside the ASP tag or not. I was testing the contents outside. Here find the same results with ASP tag and content inside.

With the below I receive 7 errors

1. Only content controls allowed directly in content page. LINE 16

2. Validation XHTML 1.0 Element body cannot be in nested within <div> - I do not have div tag in ths aspx page but maybe it comes from the masterpage? LINE 14

3. Element Script Manager not a knwon element LINE 16

4. Element UpdatePanel unknown element LINE 19

5. Validation Element contenttemplate is not supported LINE 20

6. Element Button is not a known element Line 23

<%@.PageLanguage="C#"MasterPageFile="~/MasterPage.master"AutoEventWireup="true"CodeFile="laz.aspx.cs"Inherits="laz"Title="Untitled Page" %>

<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Server">

<scriptrunat="server">

protectedvoid btnRefresh_Click(object sender,EventArgs e)

{

}

</script>

<body> LINE 14

<formid="form1"runat="server">

<asp:ScriptManagerID="ScriptManager1"runat="server"> LINE 16

</asp:ScriptManager>

<asp:PanelID="Panel1"runat="server"CssClass="modalPopup"Height="50px"Width="235px"style="display:none"DefaultButton="btnOk">

<asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional"> LINE 19

<ContentTemplate> LINE 20

<%=DateTime.Now.ToString() %>

<divstyle="display:none">

<asp:ButtonID="btnRefresh"runat="server"Text="Refresh"OnClick="btnRefresh_Click"/> LINE 23

</div>

</ContentTemplate>

</asp:UpdatePanel>

<asp:ButtonID="btnCancel"runat="server"Text="Cancel"/>

<asp:ButtonID="btnOk"runat="server"Text=" OK "/>

</asp:Panel>

<asp:ButtonID="Button2"runat="server"Text="Button"Enabled="false"style="display:none"/>

<ajaxToolkit:ModalPopupExtenderID="ModalPopupExtender1"runat="server"TargetControlID="Button2"PopupControlID="Panel1"CancelControlID="btnCancel"DropShadow="true"BackgroundCssClass="modalBackground">

</ajaxToolkit:ModalPopupExtender>

<inputid="Button3"type="button"value="Click Me"onclick="showModalPopup()"/>

<scripttype="text/javascript"language="javascript">

function showModalPopup(){

$get("<%=btnRefresh.ClientID %>").click();

$find("<%= this.ModalPopupExtender1.ClientID %>").show();

}

</script>

</form>

</body>

</asp:Content>


from what you have here is that you have a <body> and <form> tags; those normally are already declared in the MasterPage. Check it again.


Yes I added the tags in Master page and removed from content page.

Also I added a masterpage.master.vb file and applied the imports which solved the issue with the scriptmanager.

Wednesday, March 21, 2012

Ajax and Expression Web

Hi Guys,

Is it possible to add the Microsoft Ajax Framework to Expression web so that the controls show up in the Expression Web toolkit ?

If not is a version going to be availble for Expression web ?

Kind Regards

Andy

I would really like to know this as well. If Expression Web is the future of front-end web development, why can't I use the official ASP.Net AJAX components in my projects? Is there some other way to work with developers using Visual Studio 2005 and the new control toolkit?

Does anyone have any information on this?

I'd really like to know if this is possible. I'd agree that it is insane if not! I wish Microsoft would consolidate their web design/development products into one (preferably Visual Studio).

Thanks in advance.


I found this link about the topic http://blogs.msdn.com/andrewj/archive/2006/12/13/custom-asp-net-controls-and-expression-web.aspx , but it talks about using the GAC. Can someone from MS chime in and tell us if our controls must be in the GAC to use them in expression web?

Thanks,

Jon


You can access the ajax items in Expression provided the web.config is setup to use MS Ajax. What I did was create a project using the ajax web template (control or just ajax) in Visual Studio 2005 and then opened up that project in Expression. The issue is the tags are available in the 'code' view, but you get an error in 'designer' mode. You'll also see this if you build user controls that reference 3rd party controls (like the RAD controls). I have not been able to get the designer to use the controls without this error so I'm assuming the designer does not know about the 'referenced' dll objects.

If you don't have VS Studio or the Ajax template, you can manually add the ajax support -- but it is a bit of a pain...

-Don


Andy

Easiest way is to open up to explorer windows, one to where you install the ajaxcontroltoolkit.dll and the other to windows\assembly.

Drag and drop the ajaxcontroltoolkit.dll into the assembly folder.

Add the following to each page which references controls from the toolkit, best to double check the version and publickeytoken - you can see the values in the assembly folder.

<%@. Register
Assembly="AjaxControlToolkit, Version=1.0.10606.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %>


ToolkitScriptManager still can't display for some reason, I'll keep digging.

HTH

Rob


Thanks for that Rob, but why do we have to struggle to do it and why can Microsoft Visual Web Developer Express a free tool from Microsoft install the Ajax controls but the money costing Expression Web can't !!!

All I can say is . . . BRING ON THE NEXT VERSION OF EXPRESSION WEB . . . as the ability to add new controls easily is crucial, at the moment you have to build part in Expression Web and then open it in VWD Express to use Ajax, its just so annoying !!!


When I try to either drag n drop or copy/paste the system will not allow me to put the ajaxcontroltoolkit.dll into the Wndiows/Assembly directory.

There are seveal ajax controls I would like to use on my site but can not get them to work in Expression Web. We have just converted to using Expression Web for designing updates to our application. The tool is far superior to the old FrontPage but I am having some learning pain when trying to step up to ASP.NET and learn how to use it.


Has there been any progress made on this issue? I googled it a bit but didn't turn up too much.

I have just installed Expression Web and I am a bit hesitant to use it because the site I am currently designing makes heavy use of AJAX controls.

I did read a few things about using custom ASP.NET controls in Expression. About using GAC and editting your web.config. Will these same techniques allow Expression Web to fully integrate AJAX controls?

http://blogs.msdn.com/andrewj/archive/2006/12/13/custom-asp-net-controls-and-expression-web.aspx


So I got everything working. I figured I'd explain how for future viewers.

This is how you get Ajax and the AjaxControlToolkit working in Expression Web (code view w/ intellisense and design view with properties).

STEP 1 - In your sites web.config file you must have the following:

<system.web>
<pages>
<controls>
<addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addtagPrefix="ajaxToolkit"namespace="AjaxControlToolkit"assembly="AjaxControlToolkit, Version=1.0.10920.16768, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
</controls>
</pages>

<compilationdebug="true">
<assemblies>
<addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<addassembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<addassembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<addassembly="AjaxControlToolkit, Version=1.0.10920.16768, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
</assemblies>
</compilation>
</system.web>

NOTE: The assmebly version and keys may vary depending on what version of the toolkit you have installed. These are simple enough to find in the sample website for the AjaxControlToolkit's web.config.

NOTE: Since the AjaxControlToolkit is referenced in the web.config you do not need to include <%@. Register Assembly... %> on each of your pages.

STEP 2 - Add the AjaxControlToolkit.dll to your site's bin folder.

STEP 3 - Add the AjaxControlToolkit.dll to GAC

This is simple. Open the Visual Studio Command Prompt (from Start menu) and navigate to the bin folder of your site and type d:\> gacutil /i AjaxControlToolkit.dll

Now open your site in Expression Web and everything should be working!


One thing I would like to add...

The line in <assemblies> for the AjaxControlToolkit has version info and a publicKeyToken that cannot be found in the web.config of the sample website and it will vary depending on the version of the Toolkit you have installed.

To find this info you can either write a small program (1 line of code really) or just put the following line into a Watch while you are debugging something:

System.Reflection.Assembly.LoadFile(@."[PathToAjaxControlToolkit]\SampleWebSite\Bin\AjaxControlToolkit.dll").FullName

This will give you the text to put in the assembly attribute for the <add assembly=""/> line.

The file you reference here must be the same one you add to the GAC.



Oh won't some kind soul come and mark my post as the answer?


Yeah, I had a problem getting that going too. A quick powershell script handed the info over for me. I guess Reflector would produce the same result as well.

PowerShell script:

$assembly = [System.Reflection.Assembly]::LoadFile("path\to\AjaxControlToolkit.dll")
$name = $assembly.GetName()
"<SafeControl Assembly=""{0}"" Namespace=""{1}"" TypeName=""*"" />" -f $assembly.FullName,$assembly.GetName().Name

Output:

<SafeControl Assembly="AjaxControlToolkit, Version=3.0.11119.25533, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TypeName="*" />

AJAX And Content Pages

Hi to all..

I have the binaries of ajax control toolkit i do not have installed ajax extensions. then how to use these features of ajax in my project - how to add reference of it?

I have designed a master page and all the other pages - that are content pages, so how to use AJAX control toolkit in content pages.

Hi there,

first of all you have to install the Ajax Extension package (MSI), then from your project, you have to add a reference to AjaxControlToolkit assembly. Finally, select the toolbox window, right click on there, add a new tab, for instance "Ajax Toolkit", and then right click on this new tab and select the "Choose Items" option, at this point a new window will be opened so then select the "Browse" button and click on the AjaxControlToolkit assembly and that's all. You will see the whole AjaxControlToolkit on your toolbox window.

I hope it helps.

Regards,

Fernando.



hi,,

thank you for give me suggession.

i have already done that thing but the problem is when i put <asp:ScriptManager>.. inside the content page the following build error comes there "unknown type <asp:scriptmanager>"

and second thing is

if it runs successfully then there is an error in web browser like in status bar of browser "done, But with errors..."

sys. - undefined.

these errors i've faces so far so please guild for that also..

Thank you

Bhavin

AJAX and AJAX Control Toolkit deploying to production

Hi,

We have a web site that has been built using ASP.NET, Microsoft AJAX, and the AJAX Control Toolkit.

Question:

Is there anything we should do before we move the web site to the production servers? For example, in ASP.NET, we need to change the debug="true" to "false" on the web.config. Is there anything similar that we need to do for AJAX and the toolkit?

Thank you

I'm not an ajax.asp.net expert, the next has been enough for me:

Ajax.asp.net extensions 1.0 must be installed on production server. You can download from here http://go.microsoft.com/fwlink/?LinkID=77296

No modifications required for the control toolkit. The binaries (dlls) are included inside Bin folder in solution when toolkit was added to solution. Check if they are present.

I recommend publish your web site with the utility "public website" from VS2005, if it's possible for you.

Hope this can help you.

Miguel Tomico.

AJAX accordion panel scrolled in IE7 but fine in Firefox

I am using the ajax accordion panel toolkit in my default page. As below:

<ajaxToolkit:Accordion ID="Accordion" SelectedIndex="0" ContentCssClass="" HeaderCssClass="" HeaderSelectedCssClass=""
runat="server" FadeTransitions="true" FramesPerSecond="30"
TransitionDuration="350" AutoSize="None">
<Panes>
<ajaxToolkit:AccordionPane ID="AccordionPane1" runat="server">

<Header>

...

Now the funny thing is the IE7 can't function at all on the default page, while firefox has no errors at all.

So did anyone have the same issue? is this a bug in the IE7?

...

You may find that IE is being pushed into quirks mode which may be causing you issues. The Toolkit assumes IE is instandards mode. For more information on Quirks Mode seehttp://en.wikipedia.org/wiki/Quirks_mode

-Damien


Thanks for your quick replay.

Here is my document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

Refer to the Quirks table on Wiki, it's not Quirk under IE7.0

XHTML 1.0 Transitional doctype without an XML declaration
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">SSAAAAAAQ

Do you have any other solution?


There must be an overflow style being applied... Maybe you have something set in you CSS that is effecting your panel?

You can use Firebug to see applied styles (in Firefox) or the IE Developer Toolbar will do similar in IE.

-Damien


Yeah, you were right. I omited overflowed div segment, now it's working again.

Another method sharing is that:

when the table width = 100%, better to use the autoSize="Fill" in that case, the layout will be good, no scrolled bar on the side or bottom.