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

Wednesday, March 28, 2012

ASP.net AJAX throws errors in some browsers

These browsers are:

Mozilla (latest version)
Seamonkey (latest version)
Netscape (latest version)

See this error message:

AJAX error in diverse browsers

Has anyone encountered the same problems in the mentioned browsers? I couldn't check Mac browsers, any known issues in Mac browsers would be interesting too.
Any other browsers that don't like the asp.net AJAX?

This is normallly because you modify the response by using Response.write.Make sure you use a Literal control instead of using response.write.

Mac browsers will have the same error.

It's also possible that the error is caused by Tracing where the pageoutput is set to true. You must set that to false.
<traceenabled="true"requestLimit="128"pageOutput="false"traceMode="SortByTime"localOnly="false"/>


Hi Richard,

thanks for your reply. So I may not use <%= WhateverString %> neither, right? I can't use Response.Write in my code behind files and neither in the "HTML" source code, is that what you are saying?

Steve


Hi Steve,

Yes that is what I meand. I hope it helped you.


To be clear, <%= is just an alias for Response.Write; so there's no differnece at all once it compiels. If it helps, you *can* use Response.Write, just not inside an UpdatePanel, nor as part of any code that will be subject to responding to an update panel's asynch postback.

ASP.Net AJAX messing up my code and not known element???

I am trying to add AJAX Version 1.0 to an existing site and I believe I have added everything needed to the web.config file. Installed the AJAX Extensions in the GAC and added the AJAX Toolkit to the VS 2005 Toolbox.

When I drag AJAX items into my aspx pages I get red Squiggly Lines on the ScriptManager and UpdatePanel.

I just added a RequiredFieldValidator and it tells me that it is also not a known element.

Also I have noticed some strange new attributes in my html e..g.__designer:wfdid="w2"

What is going on, could somebody help me out, thanks, newbie

I forgot to mention that I am using Master and Content pages. When I add the AJAX Extensions such as ScriptManager to the Master page I have no red squiggly lines. I guess I have to add <form> tags to my content pages to make this all work.

Not true, I tried it and the red squiggle lines are gone but the page does not show up correctly. Basically the content page portion does not get displayed . So adding the <form> tag to the content page is not the solution.

What am I doint wrong?? Newbie


Fixed - here is a helpful article.

http://ajax.asp.net/docs/tutorials/UsingUpdatePanelMasterPages.aspx

ASP.NET Ajax CTP version and .NET 3.0?

Does anybody know if the CTP version of the ASP.NET Ajax works with .NET 3.0?

It should work Since basic framework(CLR version) used by both ASP.NET AJAX and .NET3.0 is .NET 2.0.

Monday, March 26, 2012

ASP.NET AJAX and AtlasUIMap

I've been trying to use the AtlasUIMap in the latest version of ASP.NET Ajax and am having problems. The error I get:Assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not contain a Web resource with name 'Microsoft.Web.Resources.ScriptLibrary.AtlasUIMap.js'.

I've tried a number of different things including changing the name from AtlasUIMap to AjaxUIMap, I've searched the ScriptLibrary folder, and so on and am not finding the Map UI anymore. Has this been removed from the latest release?

Here's the code that errors:

<ajax:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<ajax:ScriptReference Name="AjaxUIMap.js" />
</Scripts>
</ajax:ScriptManager>

Thanks,

Scott

hello.

i think that is correct, ie, it has been removed from this version.


Thank you. I hope they add it back in, I would like to test out this functionality.

ASP.NET AJAX 1.0 RC

I have just dowloaded ASP.NET AJAX 1.0 RC and have a couple question:

When is the next version of ASP.NET AJAX planned for? Will it be easy to upgrade?When uploading my web site to a hosting server, what do i need to upload to get AJAX work on this server?How can i add ASP.NET AJAX 1.0 RC to an existing ASP.NET 2.0 website developed with Visual Web Developer 2005?

Thanks.

They are in RC mode, so I cant imagine it will be too hard. (however, RC is RC, its still up in the air)

You probably cannot count on Ajax being installed in the GAC on your hosting service until 1.0, so you will need to deploy System.Web.Extensions.dll, and if used Microsoft.Web.Preview.dll and AjaxControlToolkit.dll. This might need to be confirmed as I have not deployed anything to a production environment yet.

Here is alink on converting an existing project to the new version.


Hi

copy the System.Web.Extensions.dll (and any other similar dll) to the bin folder on production and it should work.



hello.

this is only necessary if the server that is hosting the web app doesn't have the dll installed on the gac (which will be automatically done if you run the installer on the server). btw, putting the dll on the bin folder will only work if your app is configured to run in full trust mode (if the dll is on the gac, running in meddium trust is enough).


Hi,

My question is regarding this last post.
What if the host is configured as Medium trust ?
Can we override this with a <trust> section in web.config ?
Do we have anything else to take care of ?


I really really really hope this changes by 1.0, I'm not sure I like running in full trust. And what if our "hosting provider" wont install it in the GAC?
I'd have to agree with Helios, I much preferred when you could deploy a self contained batch of files and not be needed to update the GAC. Which I assume would have to be updated with each future release. It was much cleaner when the only outside dependency was that the framework was installed: I thought that one of the beauties of the .net approach.
Any ideas when version when 1.0 is being released?

Hi, I'm having some of the same issues here when using the new December release.

Everything works great on my development machine, but then after moving everything over to my production server, I receive the ddl errors (mentioned above).

So I copied the dll's (as said in one of the above replies) to the bin found, and now I receive the "medium trust" conflict (since my host service will not allow full trust).

Is there currently a way around this permission issue without changing to full trust or asking my host provider to include the new version into their GAC? If not, it looks like I'll be going back to an earlier version when everything was nicely accessable from the AltlasControlToolkit.dll and the Microsoft.web.atlas.dll (without permission errors).

Thanks in advance.

ASP.NET Ajax 1.0 Installation Error

I'm trying to install ASP.NET Ajax 1.0. First, I uninstalled a previous beta version. Now when I run the 1.0 installation and the wizard starts copying files, I get the following error:

Product: Microsoft ASP.NET 2.0 AJAX Extensions 1.0 -- Error 1304. Error writing to file: System.Web.Extensions.Design.dll. Verify that you have access to that directory.

Does anyone know how to resolve this issue?

Thanks.

I had a different problem, I couldn't get a clean uninstall on my XP dev box. But I followed the procedure in the following post:Uninstall issue with ASP.NET AJAX 1.0 Beta 2;http://forums.asp.net/thread/1502566.aspx.

I'm wondering if you got a clean uninstall.

Otherwise, I'd check the obvious. Look for the System.Web.Extensions.Design.dll file in your file system (mine is located at c:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025) and make sure the account you're using for the install has permission to write to the directory (like the error says :).


Thanks for the reply. I've tried both of your suggestions, but neither worked. The version I had installed was the "Atlas" June CTP. I've tried installing Beta 2, RC1, and 1.0. All of these give me this same error:

Product: Microsoft ASP.NET 2.0 AJAX Extensions 1.0 -- Error 1304. Error writing to file: System.Web.Extensions.Design.dll. Verify that you have access to that directory.

Any other ideas?...Please?....Anyone?...Help!


Does the System.Web.Extensions.Design.dll file already exist on your system? Unless it the error message is wrong it sounds like the file is there and you can't overwirte it. I know that I'm stating the obvious and asking you to check the obvious, but unfortunately I've been burned by the obvious too often not to check it :)


No it does not exist on my system. Let me rephrase that...The only time it exists on my system is during the installation of ASP.NET Ajax Extensions. In the middle of the installation, the System.Web.Extensions.Design.dll file is written to the C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 folder. I think (and I'm guessing here) that the problem arises when the installation tries to add this assembly the GAC. I copied the file to another folder before cancelling the installation. Then I tried to add it to the GAC manually, but I received the following error:

You do not have rights to add assemblies to the assembly cache. Contact your system administrator for assistance.

This itself is a bit baffling considering that my user account is in the Aministrators group on this system.


Yes this does sound frustratingly interesting. If I were in your situation I'd try (1) adding then removing another signed assembly with gacutil to the GAC to see if your account really does have a problem. (2) creating a fresh admin account to see if it has the problem.

Also try clearing out the download cache. Try "gacutil /ldl" followed by "gacutil /cdl". During development I've had some problems with the download cache in the past, so clearing it is on my check list.

I guess the good news it seems like it may only be a permission problem. Unless the dll has been corrupted, you know that the dll is OK because Ajax RTM V1 has been widely installed. You could always grab a fresh copy of the Ajax v1 to make sure all is well.

If you haven't already taken the time, you might want to read the upgrade instructions and see if they provide any insights:

http://ajax.asp.net/documentation/default.aspx?tabid=47

http://ajax.asp.net/documentation/Migration_Guide_CTP_to_RTM.aspx

ASP.NET AJAX 1.0 Beta Documentation problem

I just transfered my code to new AJAX release. There is a lot of problem with documentation of this version. We need it more to be able to use this version of AJAX library.

Some of problems: In the previous version I can get hmtl select control currently selected value easily but no it is a problem...

lstboxUsers = new Sys.UI.Select($get('lstboxUsersId'))

lstboxUsers.get_selectedValue();

Is there any way to do this in new version, I solve much harder problems but this one stay ansolved :).

Regards,

Shegi

Note that the select control is in the Preview bits now and was renamed to 'Selector' in order to make it work for xml-script in Safari. The following should work for you:

var lstboxUsers = new Sys.Preview.UI.Selector($get('lstboxUsersId'));

var selection = lstboxUsers.get_selectedValue();


Thanks Chenriks, can you tell me one more thing?

In previous version of AJAX library it was possible to add click handler on selector control (code is below). What is the syntax in new version of AJAX? Do you have access to some kind of documentation for this?

lstboxUsers.selectionChanged.add(UserOnSelectionClick);

// List Box changes

function UserOnSelectionClick(sender, args)

{

}

Regards,

Shegi


it's:

lstboxUsers.add_selectionChanged(UserOnSelectionClick);

I hope it helps

AW

Saturday, March 24, 2012

ASP.Net AJAX - Cannot Set focus to a TextBox inside an Update Panel

Hi; I am using the released version of AJAX Controls and I am working on a Web Application with a Masterpage.
What I would like to do is, I have two Radiobuttons and two TextBoxes inside an update panel; When the user clicks the RadioButton1, I would like to set the focus to TextBox1 and if the user clicks the RadioButton2, I would like to set the focus to the TextBox2. I have googled for it and found couple of similar solutions that works with the beta AJAX assembly "Microsoft.Web.Atlas" but it doesn't work with the ASP.Net AJAX which I am using in my current project.

The following code works just fine when I use theMicrosoft.Web.Atlas soplease let me know if anyone knows a solution that works with the released version of AJAX Controls; Thanks in advance.

//***************************************************************************************

//Code behindprotected void RadioButton1_CheckedChanged(object sender, EventArgs e) { SetMyFocus(ref TextBox1); TextBox1.Focus(); }private void SetMyFocus(ref TextBox txtBox) {string focusString ="setTimeout(\"$('" + txtBox.ClientID + "').focus(); \", 100);"; ClientScript.RegisterStartupScript(this.GetType(),"focusString", focusString,true); }protected void RadioButton2_CheckedChanged(object sender, EventArgs e) { SetMyFocus(ref TextBox2); TextBox2.Focus(); }

//***************************************************************************************
 The following code is from the source view of the page
 
<%@dotnet.itags.org. Page Language="C#" MasterPageFile="~/Test.master" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" Title="Untitled Page" %><%@dotnet.itags.org. Register Assembly="Microsoft.Web.Atlas" Namespace="Microsoft.Web.UI" TagPrefix="cc1" %><asp:Content ID="Content1" ContentPlaceHolderID="CPHTest" Runat="Server"> <cc1:ScriptManager ID="ScriptManager2" runat="server" EnablePartialRendering="true"> </cc1:ScriptManager> <cc1:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" OnCheckedChanged="RadioButton1_CheckedChanged" GroupName="Group1" /><br /> <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" GroupName="Group1" OnCheckedChanged="RadioButton2_CheckedChanged" /><br /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br />   </ContentTemplate> </cc1:UpdatePanel></asp:Content>

Hi,

I am using the new SetFocus method of the ScriptManager class.

Example:

ScriptManager1.SetFocus(TextBox2);

I works with the last release of Microsoft AJAX.

Hope this helps,

David


Wow; that works great; Thanks for the quick reply.

Jacob


I am using the Atlas beta version. I am having the same textbox focus problem. I tried to use the setFocus(), but i couldnt find the setFocus() of the scriptmanager.

Where to use

ScriptManager1.SetFocus(TextBox2);

I just have the

ScriptManager1.Focus() method. please help.

Thanks in Advance


Use the latest version of ASP.NET AJAX


Thanks lot

I also having same prob and search the web for solution. This is tha only place that I found a resolution.

Thanks lot again

asp.net 2.0: is there any where where we can check ajax version

Hi,

Sometimes I run into problems in the server that I don t run in my developement machine, especially regardingAjax,validation,Ajax control toolkitlikeValidatorCalloutExtender...etc

Are you aware if there re different versions of Ajax or any thing else that might be causing these little weird behaviours on the production machine different from our dev machines?

If so how can we check the Ajax or customValidators version?

I m just making a hypothesis, let me know pls if any other possibility?

Thank thee

You can check the version of the currently installed Ajax Control Toolkit.dll by going to C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AJAX Control Toolkit\Binaries and setting the view to Tiles or just hovering your mouse over the AjaxControlToolkit.dll. The latest version is currently 1.0.10920.0.

You can also check the versions of the AJAX individual controls by right-clicking in the Toolbox and selecting Choose Items then under the tab .NET Framework Components you can scroll through and check the versions of all the AJAX Controls by clicking on them.


hello.

another option is to look at the web.config file and see the info that is shown on the <assemblies> element...


I can t check that, because all those files are copied from my development machine to the server anyway, so obviously the web.config file is the same and gonna say the same version. There must be something outside the web site solution that interfers.

I can't check toolbox in the server since there is no visual studio there. On my dev machine , the ajaxcontrolToolkit controls version is: 1.0.10618.0

One more thing, when I remove the UpdatePanel from my page, every thing works well.

Thanks for tryimg to help me.


Is the ajaxcontroltoolkit.dll version on the server the same as the one on your dev box? Also if you haven't already, take a look at the following link and more specifically the section "Controls that Are Not Compatible with UpdatePanel Controls". I'm not sure if this will help, but if nothing else you'll be better informed.Smile

http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx


hello.

tutus:

I can t check that, because all those files are copied from my development machine to the server anyway, so obviously the web.config file is the same and gonna say the same version. There must be something outside the web site solution that interfers.

well, then use reflector to load the dlls and check the versions of the assemblis you want

btw, if you're building a 2.0 web site, you'll need to download the compat validators since the ones that come with asp.net 2.0 don't work with the updatepanel.

ASP.Net 2.0 AJAX Futures December CTP features Timeframe

OK, I know in advance this may be a bad question, as everyone is concerned right now with getting version 1.0 out of RC. However I have to ask: what is the (very) general time frame/plan for the features listed in "ASP.Net 2.0 AJAX Futures December CTP" to be released? Is this the beginning of the next major MS AJAX version, Or is this considered a supplemental release to the current version? Should I plan on (for example) a years worth of development before the next major release? Or is this considered a supplemental build, and we will perhaps have a quicker turn around time? The name of the CTP ("2.0") leads me to believe we are talking about the next major version, which leads me to believe some of these 2.0 features may not be supported for about a year? Am I mistaken? Comments?

I know, I know, let's get 1.0 out there first, I agree. (Yes, great work to MS on 1.0). However it would be nice to know if I should plan on waiting a year before I can officially roll out some of the features listed in version 2.0. I apologize in advance knowing this surely has already been discussed, but I can not find an article/forum post/blog entry. Perhaps someone can provide some links? My boss was specifically asking about one of the features in 2.0, specifically Auto complete. Thanks,

David

ASP.NET AJAX 1.0 — Provides the core ASP.NET 2.0 AJAX Extensions and Microsoft AJAX Library for creating AJAX-style applications with either server-centric or client-centric development models. At final release, this package will be fully supported by Microsoft Premier Support Services.

Wednesday, March 21, 2012

Are we going to have a next CTP?

Or the next release will be the 1.0 version?

Another CTP is comingaccording to the last reply on this topic... hopefully just in time for DevConnections :-)