Showing posts with label property. Show all posts
Showing posts with label property. Show all posts

Wednesday, March 28, 2012

Multiple UpdateProgress controls not possible?

Hi,

I'm currently learning ASP.NET AJAX. I wanted to play around with the different settings of the DynamicLayout property of the UpdateProgress control. I dragged from the toolbox a scriptmanager, updatepanel and 2 updateprogress controls on the same page.

<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="UpdateProgress2.aspx.cs" Inherits="UpdateProgress2" %><!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> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> </div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> </asp:UpdateProgress> <asp:UpdateProgress ID="UpdateProgress2" runat="server"> </asp:UpdateProgress> </form></body></html>

However this results for the second updateprogress control into this error message:Duplicate component name "UpdateProgress2". Component names must be unique and case-insensitive. Am I trying something stupid/not allowed?

Grz, Kris.

Does the error go away if you change the ID of the second UpdateProgress? I notice that your codebehind class happens to be called "UpdateProgress2" as well, and that's not allowed.

I get a different error message for that, though: "member names cannot be the same as their enclosing type," so it's possible that's not the same error you're seeing.


Hi,

thanks! Renaming solved it. Man, I told you I was probably doing something stupidEmbarrassed. I was so focussed on learning the new stuff that I missed that one.

Grz, Kris.

Monday, March 26, 2012

My .aspx lost his format when I change a property on design mode

Hello,

I've just updated my project to the new ajax beta 1.

Everything looks fine, but when I make some change on my pages in design mode, the aspx source code lost completly the previous format.

Somebody could help me.

Thanks,

Rodrigo Sendin

Hello Ajax Guys,

I think my problem is related with an issue posted by "tschlarm" today (Beta 1 issues). I am working with Master Pages and I used to work in Design mode. After beta 1 I am having problems with the format of the aspx source code. (the source code format is totally changed when I work in Design)

I´ve modifed my web.config in order to change the tagPrefix of ajax controls (from asp to ajax), and the problem has stoped. My web.config was changed to:

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

<addtagPrefix="ajax"namespace="Microsoft.Web.UI.Controls"assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<addtagPrefix="ajax"namespace="Microsoft.Web.Preview.UI"assembly="Microsoft.Web.Preview"/>

<addtagPrefix="ajax"namespace="Microsoft.Web.Preview.UI.Controls"assembly="Microsoft.Web.Preview"/>

Thanks,
Rodrigo Sendin

Saturday, March 24, 2012

Need documentation on ScriptManager.EnableScriptGlobalization

Hi,

Not that it doesn't exist, but I couldn't find any docs on the ScriptManager.EnableScriptGlobalization property.

Does anyone know what it's for? It's of Boolean data type.

-Andy

hello

it's used by the scriptmanager component so that it knows if it should include the atlasglob.axd handler on the page. this handler is responsible for introducing Sys.CultureInfo used by the locale methods of the client side of the platform (take a look at the atlas.js file to see what i mean).


I've just spent several hours trying to work out why my application was throwing a Javascript syntax error in IE. Setting EnableScriptGlobalization to false has rectified the problem but I'm damned if I know why! Will setting this property to false have any implications?

hello.

that's strange. any chance of getting a small simple page that reproduces this problem?

as i said in my previous mail, by default, atlas creates an object with all the info related to the en-us culture and injects it on the page. when you enable globalization, the scriptmanager inserts a script line on the page that points to a special handler. this handler tries to get the current culture and build a new globalization javascript object which is configured to that culture. to my knowledge, there are few methods that take this info into account. disabling globalization will not have a lot of negative effects: the onyl problem is that those locale methods will allwys use the en-US culture as the current culture and you might get wrong formatations due to that (though you might not even see this if you're not using any of these methods),.


I'm wondering if the error may be caused by my use of a custom HttpModule for handling errors. I'll try to knock up a simple page to replicate the error - I'm in the middle of a release so it may be a few days before i get a chance...

hello again.

oki...put it here when you have the time to build a simple page.