Showing posts with label version. Show all posts
Showing posts with label version. Show all posts

Monday, March 26, 2012

Conflict of TextboxWatermarkExtender and validators

I downloaded the latest version of Atlas and built a test page to see if TexboxWatermarkExtender would work with a validator. The code is below. When I click on the submit button for the first time (with no data in the textbox), I see correct behavior: validation fails, I see the error message, and the page is not posted back. If I make no changes and click on the submit button again, for a split-second I see a javascript error in the IE ("Sys.Application.findObject(...) is null or not an object"), and then the page is posted back. Needless to say, no validation occurs.

I am new to Atlas, so forgive me if I am making a rookie mistake somewhere:

<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage" %><%@dotnet.itags.org. Register assembly="AtlasControlToolkit" namespace="AtlasControlToolkit" tagprefix="cc1" %><!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"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <atlas:ScriptManager runat="server" EnablePartialRendering="true" ID="scriptManager" /> <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" EnableViewState="true"> <cc1:TextBoxWatermarkProperties WatermarkText="mm/dd/yyyy" TargetControlID="txtDate" /> </cc1:TextBoxWatermarkExtender> <asp:TextBox ID="txtDate" runat="server" ToolTip="mm/dd/yyyy"></asp:TextBox> <asp:RegularExpressionValidator ID="regexDate" runat="server" ControlToValidate="txtDate" CssClass="evError" ErrorMessage="Enter the date in format MM/DD/YYYY" Display="Dynamic" ValidationExpression="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d" /> <asp:Button ID="Button1" runat="server" Text="Button" /></div> </form></body></html>

Check out this thread for more info about TBW+validators:http://forums.asp.net/thread/1273626.aspx

We'll be adding this to the FAQ, too. Thanks!


Thanks a lot, will do. I missed your reply until now, sorry.
In case anyone is curious, this code only started working when I added an UpdatePanel

Saturday, March 24, 2012

Configuring VS2005 to use the AJAX Control Toolkit

Hi,

I have installed the lasted version of the ASP.Net AJAX and then downloaded the ASP.Net AJAX Control Toolkit. When trying to add the items to the Toolbox of a new ASP.NET AJAX Web Site raises the following error:

There was an error loading types from assenbly AjaxControlToolkit.dll "Could not load file or assembly System.Web.Extensions, Version:1.0.61025.0", the system couldn't find the specified file.

The file instaled in my system is: ..\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\Microsoft.Web.Extensions.dll

How can I fix this problem?.

Thanks

Marco

Matellor:

Hi,

I have installed the lasted version of the ASP.Net AJAX and then downloaded the ASP.Net AJAX Control Toolkit. ... ..\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\Microsoft.Web.Extensions.dll

It's sounds like you did not install the latest version. Microsoft.Web.Extensions is from the beta, RC1 has System.Web.Extensions. Make sure you installed RC1 if you're using the latest toolkit.

Wednesday, March 21, 2012

complex webservices with ajax beta 1

Is there an example of a complex webservice with the beta version of ms ajax? I can't get it to work like the previous version did. I returned a class A in a webservice, where class A has a public class B field. In the generated javascript proxy, there's no reference to class B whatsoever. Am I missing something? Are there some examples I'm missing?

The generated javascript proxy just include top-level classes, i.e., does not recurse into the types.
If you need to include class B in the generated javascript proxy, you need to apply the Microsoft.Web.Script.Services.GenerateScriptTypeAttribute on your web service definition or web method definition.

I hope that helps.

Maíra

Compatability Issues ? AjaxControlToolkit.dll

Hi I am using both the AjaxControlToolkit version 1.0.10301.0 AjaxControlToolkit version 1.0.10920.0 and i'm getting compatability issues, either a failure to load the assembly, or after I added the files to the GAC now getting ambigious namespace errors.

Can you inform me of a way of having both the version of the AjaxControlToolkit assemblies running within the same application.?

thanks.

i have two applications which are using different version of ajaxcontroltoolkit

<addtagPrefix="asp1"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.10920.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<addtagPrefix="asp0"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
<addnamespace="AjaxControlToolkit"assembly="AjaxControlToolkit"tagPrefix="ajaxToolkit"/>

in my web.config i ahve the above three lines but getting error

Error 133 Could not load file or assembly 'System.Web.Extensions, Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.


Error 134 Could not load file or assembly 'System.Web.Extensions, Version=1.0.10920.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.


I don't understand what benefit you are trying to gain by running two versions. Each version is basically backwards compatible. Trash them both and download the latest version and only use that (Version 1.0.11119.0).

http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=8513

Don't install version 3.0.11119.0 unless you are running Visual Studio 2008.


Thanks

i have installed ASPAJAXExtSetup.msi from :http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en

and remove the previous version but i dont see the dll in GAC ? and where do i see the installed version?


even thou i remove the previous version(1.0.61025.0 ) and install the new version (1.0.10920.0) and when i create a new web site project ajax enabled i see the old version (1.0.61025.0) in the web.config?

<controls>
<addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>

<assemblies>
<addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>

what else i'm missing?


My apologies. I was still half asleep this morning and I copied and pasted the wrong version numbers. 1.0.61025.0is the lastest version of the ASP.NET AJAX Extensions. If your web.config is showing that, you are where you want to be. The 1.0.11119.0 that I told you is the latest version of the Toolkit. But this should have solved your intial problem, correct?


DisturbedBuddha:

My apologies. I was still half asleep this morning and I copied and pasted the wrong version numbers. 1.0.61025.0is the lastest version of the ASP.NET AJAX Extensions. If your web.config is showing that, you are where you want to be. The 1.0.11119.0 that I told you is the latest version of the Toolkit. But this should have solved your intial problem, correct?

after spending lot of my time i figured out that 1.0.6 is the latest ext and 1.0.9 is the latest toolkit.

thanks