Wednesday, March 28, 2012

Atlas, Firefox, and TinyMCE

I can't get TinyMCE to work with Firefox and Atlas.

Any changes made to the TextArea that tinyMCE is attached to are lost on postback. However, IE is fine, and removing the <atlas:ScriptManager> tag fixes it in Firefox too.

The following simple page fails:

<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">tinyMCE.init({mode : "textareas"});</script>
</head>
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server" />
<asp:TextBox id="tb" runat="server" Rows="10" TextMode="multiLine" Text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."></asp:TextBox>
<br />
<asp:Button ID="saveBtn" runat="server" Text="Postback" />
</form>
</body>
</html>
Has anyone successfully used tinyMCE and Firefox with Atlas enabled? Having said that, this 'Write a New Post' form looks very much like TinyMCE, and I'm using Firefox!?!
Any ideas?

Are people using other rich text editors successfully with Atlas?

Freetextbox?

FckEditor?


I've run into the same problem. Have you been able to figure this out? If so, what was your solution?

Thanks,
kevin


I had the same problem and solved it as follows:

- remove the ValidateRequest=false directive to avoid possible security issues

- add encoding : "xml"to the tinyMCE.Init code. This translates the HTML-code to XML and by doing this the secuity message won't appear.

- when filling the tinyMCE control with text, use TinyMCE.Text = Server.HtmlDecode(value); to translate it back into HTML

This worked out fine for me. I use the TinyMCE in a user control. The HTLM-translation is implemented in the Text property of the control.

Hopefully this helps.

Atlas, AJAX and InfoPath

I am working on the architecture of a new application based on Sharepoint Forms Libraries and InfoPath. There are several features of Atlas and AJAX that could be benificial in the contruction and interaction of these forms. So the promary question here is, Is there a way to use Atlas and AJAX in an Infopath form?

TIA

Infopath is a rich client, which basicly means that you can do a lot more in infopath than in a web browser. I'm not sure why would you want to use AJAX with infopath, and I highly doubt that you can use it in infopath.

Check out this website for more info on what you can do with infopath forms
http://www.infopathdev.com/


Also to add to that. Atlas can work on ASP.NET v1.1 (Which is what the current Sharepoint version runs on), however it is designed to work better with ASP.NET v2.0. Microsoft Office Sharepoint Server 2007 (MOSS 2007) will run off of ASP.NET v2.0. Also InfoPath won't just be a Client Application/Windows Application any longer... you will the ability to load the Forms created into a browser with most of the same features that would exist in InfoPath. However, MOSS 2007 and InfoPath 2007 won't be release till the end of this year and possible next year in coordination with Vista.

Good luck!

JoeWeb


Thank you for your prompt response. The reason for considering this scenario is primarily for the UpdatePanel and the Autofill objects. I was thinking that these could minimize network traffic. Also, thank you for the URL.

Harry


Thank you. I am anticipating on having SMS push .NET v2 to all of our client machines. The infopath forms will ba carrying v2 code behind and my thought was include AJAX for the data comunication for lists and lookups.

Just a thought.

Atlas XML Script

Is the Atlas XML Script syntax defined somewhere?
Thank you,
Jason Lind

Visit Nikhil Kotary's blogg for more info and downloads regarding Atlas:

http://www.nikhilk.net/Entry.aspx?id=92

Atlas x IIS

Dear frinds,

If I want to publish my site on a remote server (Windows 2003), this server nedd to have installed the Atlas Install?
Mu application has the atlas DLL in bin folder, but the server need the Atlas install?

It works for me with the Atlas dll in the bin without installing on the server.

Joe

Atlas works on Dev. Machine - not on IIS

hi,

I have installed Atlas - and just tried the simple example with the Labels and Time refreshing.

Works perfectly on the development machine, although it doesnt work once i publish it to the IIS server.

any ideas as to how to get it to work?

thank you.Depends on what the error is...

Atlas works on Dev machine but not on the production server

I get the following error when I try and run Atlas.

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:The system cannot find the file specified. (E:\AtlasTest\web.config line 144)

Source Error:

Line 142: </httpHandlers>Line 143: <httpModules>Line 144: <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>Line 145: <add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>Line 146: <add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>


Source File:E:\AtlasTest\web.config Line:144

All of the ATLS DLL's are in the bin directory and I have a couple of home grown components that work fine from the bin directory. The root is marked as an IIS application. The only thing I can think of, is the server is a Windows 2000 server NOT 2003 or XP.

.Net 2.0 runs OK - Will ATLAS run on a Windows 2000 server?

If so any other ideas why I can't get Atlas to run?

Twisted Rider,

That's quite an interesting error - the module concerned is stored inside the Microsoft.Web.Atlas.dll file, are you absolutly sure it's inside the Bin directory on the server?

How have you published the application? Have you used the publish functionality from within VS.NET 2005?

Kind regards,

Phil.


My pages work fine, if there are no atlas components on it, and when I start adding atlas components, it starts showing the following error: Please help, I have tried a lot and unable to solve the issue.

Security Exception

Description:The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details:System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] Microsoft.Web.Services.BridgeModule.OnBeginRequestHandler(Object source, EventArgs eventArgs) +0 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Looks like the server needs permission to use the System.NET namespace, I don't know much about this - anyone else got any ideas?

Solved this by overwritting web.config file with the following code:

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<add name="InventoryTrackingConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\InventoryTracking.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.

Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>
<trust level="Full" originUrl=""/>
<compilation debug="true" strict="false" explicit="true">
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
</system.web>
</configuration>


hello.

if i recall correctly, the problem is that bridges require full control. if you're not using bridges, then remove them from the web.config file an i think that you should be able to run in the "traditional" meddium trust level.


Can you please elaborate on how do we change the trust settings.

Plip:

Twisted Rider,

That's quite an interesting error - the module concerned is stored inside the Microsoft.Web.Atlas.dll file, are you absolutly sure it's inside the Bin directory on the server?

How have you published the application? Have you used the publish functionality from within VS.NET 2005?

Kind regards,

Phil.

Thanks for the response. The "Microsoft.Web.Atlas.dll" is in the "bin" directory, and I used VS2005 to publish the App. Any other ideas?


Found something interesting. I created a simple one button Atlas web page, worked great. But if any of the following assemblies(all seem to belong to MS office) are being used I get the error. The assemblies work fine without Atlas and Atlas works fine without the assemblies. Together they work on the development machine but fail on the server. There must be something wrong with the install/confiuration on the server, any ideas where to start looking?

<addassembly="office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="VSTOStorageWrapper.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.VisualStudio.Tools.Applications.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Tools.Excel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Tools.Outlook, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="Microsoft.Office.Tools.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

<addassembly="Microsoft.VisualStudio.OfficeTools.Controls.ManagedWrapper, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<addassembly="Microsoft.Office.Interop.SmartTag, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

Server Error in '/' 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 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. (E:\OpRpts\web.config line 69) (E:\OpRpts\web.config line 110)

Source Error:

Line 108:</httpHandlers>Line 109:<httpModules>Line 110:<add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>Line 111:<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>Line 112:<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>


Source File:E:\OpRpts\web.config Line:110


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


Figured part of it out. The office assemblies were not in the GAC. Added them to the bin directory as a test and the Atlas started loading ok. Still can't figure out why everything worked without Atlas, guess I'll just check it off to ghosts in the machine.

Just the same also here. Turned both options ON and it start working...In my experimenting it had a for a while a message about the security error, but it sure cannot be...

Atlas wont work on server

Hello.

I uploaded all my files in my atlas projekt to the server.

Now it won't work at all. everytime the atlas shoud change something instead of reload the page the page is reloaded.

On my local machine this is not any problem, and the atlas.dll file is in the bin filer so i do not think thats the problem.

Any Idea?

Thanks

Hi,

just a guess here but did you change the web.config to state that debug="false" on your server? If not try that option (you can change it in the web.config file). I read that the Atlas assembly regenerates other pointers to the resources for every request when in Debug mode.

Grz, Kris.


XIII:

Hi,


just a guess here but did you change the web.config to state that debug="false" on your server? If not try that option (you can change it in the web.config file). I read that the Atlas assembly regenerates other pointers to the resources for every request when in Debug mode.


Grz, Kris.

No that dident work ..

But thanks for the answer :D

Any other idea??

I think you have to install Atlas in the Server for it to work, not just the .dll


mrmercury:

I think you have to install Atlas in the Server for it to work, not just the .dll

Normally the deployment of the needed assembly to the /bin subfolder should suffice.

Grz, Kris.


hello guys.

besides adding the dll, you might also need to register the asbx extension used by brigdes. however, i think that this is not the problem you're having. have you configured your web site to use asp.net 2.0?


Luis Abreu:

hello guys.


besides adding the dll, you might also need to register the asbx extension used by brigdes. however, i think that this is not the problem you're having. have you configured your web site to use asp.net 2.0?


Yes my server have asp 2 and i have also installed atlas on the server.

The site is working exept atlas so its must be a config error i think.

Thanks for answering.
I'm having problems getting a simple Atlas Updatepanel on my server too.
I've got the Microsoft.Web.Atlas.dll in the ASP.NET Bin folder, copied the Web.config from a new website created using the Atlas template.

I've got a page with a dropdownlist and a gridview with a load of template fields (the gridview's SqlDataSource has a controlparameter for the dropdown's SelectedVale). I added a Scriptmanager and wrapped the gridview in an Updatepanel (and a contenttemplate). I added an UpdateProgress control and a trigger:

<Triggers>
<atlas:ControlValueTrigger ControlID="dropdownlist1" PropertyName="SelectedValue" />
</Triggers
(I also tried a ControlEventTrigger with "SelectedIndexChanged"). I've tried changing the list autopostback = false, debug=false in the web.config and checking that the legacy tag isn't in the webconfig

The page runs exactly the same as without the Scriptmanager and the UpdatePanel (except for a label I have outside of the Updatepanel is now only visible during updates, and the UpdateProgress control being visible during updates). It doesn't produce any errors, but it is still posting back. It's driving me nuts! Am I missing something obvious?Confused [*-)]

Any help much appreciated!
huum maybe I also have to publish my code :d

I did the Scott todolist and thats the one that do not work..

CODE:

Status:

Ferdige
Ikke gjort


Oppdaterer...



Innhold


/CODE

Sorry but some of the text is in norwegian..
Hello.

It works now.. I had to restart the server and then its up and running.

So thanks so much

Atlas without web services.

All the examples I have seen on Atlas uses web services. I want to use regular aspx methods instead. Is it possible to write an Atlas application that for every 5 seconds call a method in a regular aspx file to check for changes and based on the result of the method updates only a part of a page? Can anyone show some example code?I figured this out. Sorry for bothering you.

hello.

just one more thing: don't forget that page methods are really expensible...if you can, use a web service method to check the update condition.


I have seen both ways and I noticed using web services are more emphasized.

Why are using web services any quicker ?

Atlas without ASP.NET

I have observed that Atlas has a strong dependency to ASP.NET.
All Atlas controls have the form of ASP.NET components.

Could I use functionality of Atlas without using ASP.NET?

More precisely I would like to take advantage of Atlas rich UI features but use a server with no ASP.NET support (Tomcat, JBoss, Weblogic etc) and without using ASP.NET at all.

Is it possible? If yes how?

Please assist.

Hi,

and welcome to the ASP.NET forums.

I read on a blog last weekend that at Mix06 there was a demo by just using the script libraries to interact with PHP pages that ran on an Apache server. Unfortunately I could find the presentation or sample code at that timeSad [:(].

Grz, Kris.


hello.

well, i think it's fair to say taht atlas is divided into 2 parts: client side and server side. Most of the client side features can be used in non-asp.net pages. for instance, you can use the OO abstractions to build better javascript objects. You can also use the atlas elements that wrap the controls and i think that you can also use most of the behaviors.

i also think that you can call web services if their return value is formatted according to the JSON rules.

so, if you want to reuse the client side of the atlas, you should only need to add the necessary jscript files to your pages and you should be ok :)

ATLAS with Session

Hi, got a question about how atlas handle the serverside session?After user login, I put the user information into a session.

then, in the UI, there is a client javascript event calling the backend web service, and the web service needs to access the user information from session,

but it seems HttpContext.Current.Session is always null value..

understand, ajax actually initiate a new connection via xml http to the server, but can they access the session variable?

Make sure you enable session state in your Web Service:

[WebMethod(true,EnableSession=true)]
publicstring GetMessages(string ChatId,string Username)
{

}

+++ Rick --

atlas with opera

I have a problem with my atlas asp.net 2.0 project. Opera and ie 6 doesn't support Atlas projects. Is it correct ?thanks.

IE 6 is fine. It just isn't supported under Opera...yet.

Atlas With ObjectDataSource

Can any bone send me examples on Formview(datasource=objectdatasource) which has Atlas Updatepanel in it. For me dataBinding not working properly .

any one plese send.

Hi,

You can try this link.

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/formview.aspx

Atlas with not XML-HTTP ready browser ?

Hello,

I've juste tried Atlas, I put a GridView in a <atlas:UpdatePanel> and it works perfectly, I just wonder : what if the client's browser is not XML-HTTP ready ??

It throw an error, or it just work with a postback (without using Ajax) ?

Nobody has an answer...?

Atlas with multiple GridViews

I have a page which needs to allow user to populate fields by selecting rows from Gridviews. I would like to temporarily display a GridView with search field to locate a row, then populate the associated field with a value from GridView row and move on to the next field with it's own associated GridView.

Is it possible to do true Ajax with Atlas, e.g. load content dynamically? It would be nice if the GridViews didn't load their corresponding data sources until acutally needed for a given field. I thought I might use the Atlas Control Toolkit's collapsible panel component but not sure if this is the best way to only render a GridView when it's needed.

Any suggestions on how to go about this would be appreciated.

hello.

though i haven't understood your scenario very well, i think that atlas can help you accomplish this. since you've spoken about gridviews, i think you'll want to use the server side approach, where you use an updatepanel to have a partial update zone on the page.

in these situations, you can have a placeholder and add controls dinamically to that control during postbacks (partial or complete).


Hi Luis

I'm not sure I understand my scenario completely either ;)

But suppose I have a drive name field. If a user clicks on choose button, a panel with search field and GridView pops up, allowing the user to select a driver from the user database. The driver name field is populated and the GridView disappears. Since I have a number of fields I need to allow the user to fill by choosing from a GridView I don't want to populate the page with GridViews at the outset.

Your idea sounds like it could work, but I'm unclear on what events I should use to dynamically add the GridView and search field. It would be great if you could direct me to a sample where someone uses Atals to replace content dynamically (would be great if it was with a GridView ;).

Thanks much!

hello.

hum...i think that basically we're talking about dynamic replacement of a portion of the page. you may use usercontrols to encapsulate both parts (on has the textbox and the search button and the other user control has the grid) and you'll need to work with the params collection in order to replace the controls dynamically (search the forums because one or two days ago i've wrote a small sample that shows how to replace the usercontrols dynamically in an updatepanel).

Atlas with master pages?

Howdy Folks!Smile

I am having some difficultly using atlas in master and child pages with content holders fired into the mix! I am not sure where to place the script manager ... and so on. Is there a film/document online of how to apply atlas in this instances?

Any help will be appreciated!

Hi.

You should place the ScriptManager in the MasterPage and use ScriptManagerProxy

in the child page.

Atlas with javascript

I will try to put an update panel around a content place, in order to assure only the "inside" pages will be refreshed, leaving the master page static. There might work I suppose...

Is there any problem in registering our own javascript in a page that has an Atlas control like updatepanel ? If yes, how could it be worked around?

Hi

Should be able to just register your Javascript with the script manager on the page. If the javascript is going to be put in the master page then add the script manager to the master page and register the script in the code behind for the master page.

If you need to register more stuff in the content pages use the ScriptManagerProxy in the content page as you can only have a sing le script manager on a page.

A good over view ishttp://www.nikhilk.net/AtlasScriptManager.aspx

Hope that helps


Hi,

in addition to what Richard Line wrote; if you're going to inject JavaScript code (or script references) in a page after a partial postback, then you must rely on the static RegisterXXX methods of the ScriptManager.

Atlas with FreeTextBox

Helo,
I'm using a FreeTextBox control (http://freetextbox.com/) in the same updatepanel of other controls, including a panel. When I try to set the Visible=false of the panel it doesn't work. When I remove the FreeTextBox control it works.
Do you if they doesn't work together? Is there an alternative? Are they resolving this bug?
Thank you,

Chierici

Hi,

from what I've read in these forums, there are problems with FreeTextBox and the UpdatePanel. The only editor that seems to work isFCKEditor (the last version, stating tothis thread).

I have posted a workaround for the freetextbox on my blog.

http://www.flanders.co.nz/Blog/2006/07/21/MakeTheFreetextboxWorkInsideAnAtlasUpdatpanel.aspx

ATLAS WITH EXPLORER

I want to use atlas in my project, but someone tell me that atlas work very good with firefox but no work with explorer and many time faild the explorer.

is atlas and explorer work together also in big projects?

thanks!

Hi,

you can surely use Atlas with Internet Explorer.

Atlas with Comercials Grids

Hello all!!

Well I beginig with atlas.. work fine if i use standard web controls of VS25005 in a updatepanel.. but if i put a Infragistics UltraWebgrid, AspxGrid, or WebGrid of intersopt in a updatepanel.. well work fine the first, but in the first postback make error in atlas.js

with ultrawebgrid the grid is only html txt and a jx error in atlas

with aspxGrid error because the XML (delta) no es correct

with WebGrid the grid is only html txt (no javascript of grid)

no working atlas with this? only with standard webcontrols? no with comercial controls?

thanks and excuse my bad English, I am spanish

I have a similar problem. I have custom richtextbox and datepicker controls within a formview. The formview mostly performs as it should until I try to switch to the editing view where the richtextbox lives. It refuses to switch views and throws a javascript error. If I remove the richtextbox it switches ok though the datepicker doesn't quite display properly.

Not sure if these problems will be down to the custom control makers to sort out when Atlas is released or if these are just bugs within Atlas that will be ironed out in a final release?

I do realise I'm expecting a bit much from beta software at this early stage though. Atlas is an absolutely superb piece of work and I have huge respect for the developers.

Davy

Atlas with Caching

Hi,

I would like to cache the output from a user control. I have a user control in which a grid appears and some links to reload the grid. The grid and the links are a part of atlas update panel.

I use<%@dotnet.itags.org.OutputCacheDuration="60"VaryByParam="None" %> on the control and this gives me a alert saying 'Unknown error' when i click on the links to reload the datagrid.

Can some one assist please?

Regards

Raj

hello.

there was a bug when updatepanels were used with caching:

http://forums.asp.net/thread/1317430.aspx

Atlas with authentication timout error

Hello!

I have an atlas web application that is also set up with forms authentication. The MembershipProvider "userIsOnlineTimeWindow" is set to "20". When i log the user in and leave the application on an AJAX enabled page (with updatepanels etc..) and then return to the application 23 minutes later - and click a button that triggers an updatepanel - i get a javascript error! Is there any way of dealing with this? Ideally i would just like the user to be redirected to the login page.

Please give me loads of details! :)

Thanks, Callam

You could set up a timer on the page to keep the authentication ticket live...

+++ Rick --


Hi Rick!

Thanks for that suggestion, but is that really what everyone who uses ATLAS in this way has to do? Are there no existing mechanisms? If i were to implement a timer - how would i go about it?

:) - Callam


The only way I don't know. But there's no built in mechanism for UpdatePanel at the moment to trigger it from the client. Remember UpdatePanel isn't all of ATLAS - there are other ways to make callbacks that give you much more control, but you have to do a little more work and write client script.

What I'm suggesting lets you still use UpdatePanel but gives you the behavior you want through a hack with a few lines of JavaScript code. Something like this:

function StartCallbacks()
{
$("btnHiddenFireFirstRequest").click();
window.setTimeout("$('btnHiddenSecondRequest').click()",100);
}

Now you have two server buttons with that don't post back on the form with the names above. You then set each of the update panel triggers to the appropriate button's click event and off you go.

Actually you may not need two buttons - probably only one since the initiating event can be something that would trigger anyway.

+++ Rick --


hello.

well, currently its's your best option. your other option is to build the authorization module so that you get the correct response when performing a partial postback and the session ticked has expired.


Hi Callam,

I use this solution to the same problem. In the Page_Load I put the following to detect a lost session while doing a partial postback:

// redirect if session is lost when doing a asynchroneous update (atlas)

if (((Microsoft.Web.UI.ScriptManager)Master.FindControl("asm")).IsInPartialRenderingMode)

{

if (null == Session["userid"])

{

Response.Redirect("~/login.aspx");

}

}

It works for me.

/lasse


Hi!

I'm not able to test that just yet - but is there allways a session variable called "userid" for formsAuthentication?

Thanks for your response! - Callam


Callam, I would suggest that you handle the PageRequestManager endRequest on the client, inspect the error and then based on that you can actually redirect from the client if the error was related to cookie expiration. simple code to handle endRequest error. You need to be onBeta1.0 to be able to run this code

<script language="javascript" type="text/javascript">

function endRequestEventHandler(sender, arg) {

arg.set_errorHandled(true);

if (e.get_error().message == '...')

...

}

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestEventHandler);

</script>

Thanks,

Kashif


hello.

hum..is this really necessary? i mean, i'm convinced that the team has solved this issue with this release, ie, it properly detects the expiration of the cookie and automatically redirects the user to the login page.


Yes, the redirection handling happens automatically in Beta - the code relates more to if the user was getting an error during an async post-back and wanted to handle it on the client.

hello again.

hum...ok. i thought that the initial question was on how to prevent the error that used to happen in previous ctp when a timeout occurred.


where can i find the beta version that you guys are talking about? about 3 weeks ago i downloaded the latest version and used it when writing an authentication application. After leaving the authentication to time out, the first click of a postback ling resulted in nothing - and the second click redirected it to the login page

Can someone explain that?

:) thanks - this is brilliant help ;)

- Callam


hello.

well, i think it was released today (or yeasterday). it has lots of improvements and this bug has been solved on this latest release.


I linked to the Beta in the earlier post - but here goesagain

Ah great thanks a lot for that.

If i already have an application running on the july CTP, is it easy to upgrade it to the beta version? Thanks, Callam

Atlas with Asp.net web pages

I have a problem with how to communicate with Web page using atlas script(i dont want to use Web service).i need to send data from client to server. appriciate if any body can help regard on this matter.

Thanks

Better go for magicajax. Its very simple. Add the dll to project refrence. Put your form tag inside ajax panel and do your natural work. magicajax will take care of the rest.
You can expose a Web Service directly from an ASP.NET Web Page:http://atlas.asp.net/docs/atlas/doc/services/exposing.aspx#webpage

-Mike

you can use atlas:updatepanel around the web controls which you want to update data after postback. The updatepanel will automatic control data send and receive between client and server side, it also automatic refresh the web without reload the page.

Quick way to use atlas update panel:

1. Remember to edit your web.config to configure for Microsoft.Atlas (view the web.config in Atlas setup folder: C:\Program Files\Microsoft ASP.net\Atlas). Remember to copy the Microsoft.Web.Atlas.dll to your bin folder.

2. in your aspx page, remember set runat="server" for head tag. in this section, you can declare a scriptmanger control like this

<head runat="server">
<atlas:ScriptManagerID="ScriptManager1"runat="server"EnableScriptComponents="true"EnablePartialRendering="true"/>
</head>

3. In your aspx body, under the form tag, you add atlas update panel
<form runat="server">
<atlas:UpdatePanel><ContentTemplate>

... your web controls and HTML controls ... here

</

ContentTemplate></atlas:UpdatePanel>
</form>

That all. You don't need to change any code in your .aspx.vb or .aspx.cs file, Run your website project and you will see the effect of Atlas to your page postback behavior.

Of course, above is just the easiest and unprofessional way to apply Atlas to your asp.net website project. You can try the Triggers of the Update Panel and you can read more to take advantages from Atlas.

Happy Atlasen

atlas with asp.net v1.x?

I'm sure this answer is out there somewhere but haven't been able to spot it. Can Atlas be used, relatively easily, with .NET v1.x rather than 2.0? I wouldn't mind playing with some of the features but my hosting account only supports v1.1 right now.If so what would I need to know to get it to work or is it basically the same as if I were using 2.0?Thanks

Hi,

Atlas needs the .NET 2.0 framework installed so you can't use it with ASP.NET 1.1. If you want to play around with AJAX however you can take a look at Ajax.NET.

Grz, Kris.


hello guys,

though you need 2.0 to use everything atlas has to offer, you can still use the client side platform with asp.net 1.1.


Atlas can be usefull for only .NET2.0. For .NET 1.1 we have several ajax frame works (open source frame works also) Please find bellow links can be usefull to download frameworks and demos.

About AJAX using simple .NET examples.
http://www.dotnetbips.com/articles/displayarticlecategory.aspx?id=1

AJAX FrameWorks for .NET, Java and for other techlogies.
http://www.ajaxprojects.com/ajax/viewcategory.php?categoryid=1

Comparision between .NET AJAX Frameworks
http://www.daniel-zeiss.de/AJAXComparison/Results.htm


Free opensource Magic Ajax Framework for .NET
http://www.magicajax.net/

zumi AJAX Frame Work for .NET
http://www.zumipage.com/demo.htm#

Microsoft Atlas AJAX Framework for .NET. But It works for only .NET 2.0
http://atlas.asp.net/Default.aspx?tabid=47

Other Framework Links
http://www.comfortasp.de/
http://fastpage.more.at/

------- Contact Info for other techincal problmes -------
My Details: Ratnakar Dutt A.V,
Email:duttavr@.gmail.com,
venkata_anantharaju@.adp.com
Location: Hyderabad, India
----------------------------------


duttavr:

Atlas can be usefull for only .NET2.0. For .NET 1.1 we have several ajax frame works (open source frame works also) Please find bellow links can be usefull to download frameworks and demos.

Fortunatelly, this is not correct. atlas is more than an ajax platform. it's true that to get everything it has to offer you have to use it on .net 2.0 web site. You can, however, use its client platform without having your site in 2.0.


Luis Abreu:

duttavr:

Atlas can be usefull for only .NET2.0. For .NET 1.1 we have several ajax frame works (open source frame works also) Please find bellow links can be usefull to download frameworks and demos.

Fortunatelly, this is not correct. atlas is more than an ajax platform. it's true that to get everything it has to offer you have to use it on .net 2.0 web site. You can, however, use its client platform without having your site in 2.0.

On MIX06 there was also a demonstration on how to useAtlas together with PHP.

Grz, Kris.


Thanks for all the replies :) I'll look into all these ideas. Any links to good guides on using atlas client side only or using ajax.net would be appreciated if anybody knows of any.

Thanks again.

Atlas with ASP.Net 1.1

Is it possible to use Atlas with ASP.net 1.1 ?? If not what is the alternative ??

Regards,
Anand

hello.

you can use the client functionality without using asp.net 2.0. however, if you need to use any of the server controls or you need to enable your web services so that they send data in json, then you'll really need to use asp.net 2.0.


Anand, as an alternateive you can use Michael Schwart'z Ajax Library, can be found at :

http://www.schwarz-interactive.de/

HTH

Atlas with ASP.NET 1.1

Hello everybody,

Can we use atlas with ASP.NET 1.1?

Thanks.

hello.

well, only the client side components can be used with asp.net 1.1.


I tried same thing - could not even add Microsoft.Web.Atlas.dll to my project reference? How could it be used with client side components - through regualr AJAX? that is what I end up doing, pl. let me know if there is a easy way. It would be lot easier to use ATLAS controls instead of writing so much java script.

Atlas with a base page

In my current application, I have a class named BasePage that inherits from System.Web.UI.Page. Some of the pages in my application inherit from the BasePage class. I need the BasePage because I use it to build my menus, user controls, and also some business logic. The pages that inherit from the BasePage class will not work (won't update the page) with EnablePartialRendering set to true. The only error that I received was in Atlas.js at:

var title = delta.selectSingleNode('/delta/rendering//title/text()');
document.title = title.nodeValue.trim();

I ended up adding a check for a null title, which removed this error. BTW, title was null because it is a property set in a user control on my base page. Any ideas as to why/how I can get EnablePartialRendering to work while still inheriting from the BasePage?

If the issue was just with the title being null, then that will be fixed in the next release of Atlas. There shouldn't be any specific problems related to having a base class page when using UpdatePanels.

Thanks,

Eilon

Atlas with 3rd party controls

Has anyone used 3rd party controls with atlas? For example r.a.d controls. I am using one such control (a tab strip). The situation is that I have a Update Panel on my page with some buttons on it. And I have this r.a.d control outside the update panel (actually doesn't matter if it is in the same update panel as the buttons or not).
What happens is that when I click on any of the buttons, this control loses the style that was applied to it. I try to reapply the style on page load but it doesn't work.
I just thought I should post this here in case someone else has seen this problem.

Thanks

There are a series of known issues rleated to Updatepanel and other controls. It boils down the the current process that UpdatePanel is using to try to provide the correct rendered parts of the page that may result from the postback (async). For example, scripts, styles, hidden form fields, as well as the rendering that occurs in the updatepanel itself.

Also, since UpdatePanel (pageRequestmanager) essentially hooks up and overrides the regular postback emchanism, then custom controls may have attempted similar things which cuases issues.

We are investigating such issues ..


Hi,

I'm also having a similar problem with the R.A.D. treeview (5.21), the style and images get "jacked up" after partial postback. Initially, I thought I could just reset the style and image path in NodeSelected. After debugging, I saw that the image path and the style was correct. So I opened the properties on a tree image that wouldn't render, the URL of the image showed as "javascript:false". After looking at all the images it appears that they each had "javascript:false" as the URL. So it looks like it's something that's happening in rendering.

Telerik will be releasing another service pack on April 27. I have solid doubts about it's reliability. As with their Q1 SP 1, I encountered countless bugs that I could not work around, so I had to drop their "callback" functionality. Additionally, Atlas provides such greater customizable functionality. This style problem is the only issue I've ran into.

Does anybody know of any work-arounds?

Thanks,
Tiffany

atlas will install but template doesnt show up when creating new web site

Am running Win Srvr 2003/SP1 and have installed/uninstalled Atlas multiple times and it installs fine, but the template never shows up when I want to start a new website in VS2005. Have also tried turning off virus checker during install, with still no success.What must I do??Crying

hello.

inside the installation folder (something like C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727), you'll find the aspnetatlas.vsi file. running this should install the templates for c# and vb.net.


Luis, thank you for taking the time to respond. Did what you suggested and it seems to install and says it was successful, but then the template still does not show up when attempting to create a new web site in VS2005. Does this not work on Win Srvr2003? All of my colleagues who have Win XP Pro have had no trouble getting it to install.? Thanks, Michael B.beebemichael3@.hotmail.com


hello.

hum...i'd say no. at work, i've installed it at a win 2003 server and i can see the template on my list.

Atlas Wiki VSI can now be downloaded

We demoed the 'Atlas' Wiki at PDC 2005 and ... yesterday we posted it fordownload !
Have fun exploring this sample app's source code.
thanks
-jhawkSounds like fun, checking now :)

Getting "Unknown stream header byte sequence" error when attempting to open the "ASPNETAtlasWikiRC.vsi".

Suggestion(s)?

Thanks,

Adam


The same for me aswell.
Ariel
Which browser version?
You should be able to just click on the link to download and then choose "Open" when prompted to "Open" or "Save" in the browser?
Can you describe the repro steps?

I got my error this morning from my home PC..."I.E. v 5.x", I believe. I'll verify tonight.
Repro steps: I downloaded the file and selected "Save." Once down, I selected "Open" and got the error. I then closed all open windows (on the pc <g>) and tried again...same error. I then went to the file via explorer, double clicked it, and got the same error.
Feeling totally defeated, I opened this thread and sulked off to work to salvage the remainder of my developer's self-esteem. ;-)
That's pretty much all the steps.
Adam


Hey,
I'm using IE6.0.2900.2180.XPSP2.
After the file is downloaded (FileSize : 1.79 MB (1,882,320 bytes))
you can choose to open the file and an error window is thrown at you.
Visual Studio Content Installer:
"Unknown stream header byte sequence."
That all the info, I have meanwhile.
Ariel

*FOLLOWUP*
My browser is I.E. 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
-Adam
Sorry,
But when do we get an answer on our error, or will the "ASPNETAtlasWikiRC.VSI" file be replaced with the one that works on our pc?
My browser version is: I.E. 6.0.2900.2180.xpsp_sp2_gdr.040803-2158.
Hopefully you can help us, because I am looking forward to explore the Wiki Toolkit!
Thanks.
Just letting you know that we are still looking at this. It appears the the .vsi file may be getting corrupted somewhere between the download server and your local filesystem. Are you running an anti-virus program?
thanks
-jhawk

On my computer I have the McAfee VirusScan Enterprise 7.1.0 virusscanner. But we also did the download with a pc without a virusscanner and transferred the file with ftp to my pc, but it also didn't work.
On the other pc there is also Internet Explorer 6.0 with default microsoft updates.


Maybe it's for WebDeveloper Express only? I had install project on my
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: WD Express
Microsoft Visual Web Developer 2005 76872-000-0000011-00123
Microsoft Visual Web Developer 2005

I had the exact same problem

I think the problem was file corruption during download.

It may be a weird server setting, but I was using a download manager which I disabled and tried again. It worked afterwards.

The download should be a simple right click > save as or if there's any interruption or middle app, there will be problems with the file.


Downloaded, installed the .vsi and created a wiki site from the template. That went all very well. The site doesn't work however because of connection problems with the database. I looked into this of course and tried to attach atlaswiki.mdf in the app_data folder, which doesn't work because the atlaswiki_log.ldf isn't there. The aspnetdb_log.ldf isn't there either. As far as I understand sql server databases these files are essential and should have been included. If I am wrong here I'd like to know.


hansh, Which software combo are you using?

Developer express? SQL Express?

Also what version of ASP.Net framework? If you have ASP.Net 2 Beta, then you may have to remove that and update to the newest version.

Atlas Wiki VSI

Hi, after i downloaded and installed atlas wiki vsi file, i tried to create a new website, however, the atlas wiki template did not show as one of the templates. any idea how to fix this?
mp
Try to reinstall it?
did you check everywhere in your new project... list of projects you can make, What are you using for an IDE?

Atlas Wiki Platform

When will there be a first technical preview of the wiki site shown at one of the Atlas sessions on the PDC 05?

Soon...

Atlas Wiki in VB.NET?

I apologize if this question has already been asked but are there any plans on porting the Wiki project over to VB?

Also, inthis postScott mentions there were to be some announcements regarding the go-live license the week of 2/5/2006. Have these announcements been made? If so, where?

Thanks in advance,

Ryan

ryan.graham wrote:

Also, inthis postScott mentions there were to be some announcements regarding the go-live license the week of 2/5/2006. Have these announcements been made? If so, where?

Hi Ryan,

I don't see the 2/5/2006 date mentioned in that thread. Maybe I didn't get my ... cups of coffee yet but I can read that it's rather going to be this spring.

Grz, Kris.


Thanks Kris,

I deduced that date by Scott's post date (2/2/2006) and his comment:

ScottGu wrote:

We are going to be making some announcements regarding Atlas timing next week. Specifically, we are going to announce a go-live license that will be coming this spring -- which will allow you to deploy applications using the Atlas CTP drops.

Just wish we all knew when we can start using this in a production environment!

Thanks again,
Ryan

Atlas Wiki Application Status

In a few other posts I've read that the Wiki application was hidden on the atlas website because it wasn'tcompatible with the newest release of atlas. I was going to checkout out the wiki mostly for learning purposes (i bought Foundations of Atlas - and most of Chapt 7 is about the Wiki app). But i don't want to crack open the Wiki code if much of it is out of date and/or no longer supported.

I have heard "we will update the Wiki in a future release" - what is the status of these efforts? I would wait if a release was expected soon or if someone has already updated the wiki app.

What were the fundamental problems with the Wiki app and the latest version of atlas? A few minor changes in code syntax or major architectural issues? I'm trying to avoid making the same programming mistakes myself.

Any information or direction is appreciated - Thanks in advance for your response,

J. Shane Kunkle

Hey,

I purchased that book too and was looking for the wiki, i never did actually find it. Also, after attempting to work through many of those examples found in the book i found that the majority didn't work with the July version of Atlas that I have installed. Were you able to find updated examples online?

Thanks,

Kas

I found a download to the wiki application here -http://forums.asp.net/thread/1241581.aspx

The author does have some errata and updated code from chapters 3 & 5 on his blog -http://www.philotic.com/blog/?cat=3. Unfortunately i've still found a few problems with the latest code he has posted in his blog. I've also found a number of examples in Chapt 7 that do not run properly which he has not addressed in his blog yet (has no one else got to Chapt 7 yet? - j/k).

So after hours of debugging code from that book the last few nights I figured i would post my original question here - and try to see what i was getting myself into before crack open the wiki code – and possibly spend many more hours more debugging code.


Hi jkunkle:

Can you be more specific about the problems you've found? I'd be happy to post fixes and blog them.

Laurence

(Author of 'Foundations of Atlas')

Atlas Wiki

Hi all,

I read the book "Foundation of Atlas" and Laurence Moroney references to Atlas Wiki. This is a template that i like to download, but i can't find it. Is this template part of the new release (July CTP)??

Kind regards,

Hi,

it was a template created with a previous CTP, that is incompatible with the last one. It has been removed from the Atlas site and I think it hasn't been updated yet.

If you need it drop me a pm, I should have it somewhere in my archives...


Hi Garbin,

if its incompatible with the new CTP i can't use it. Thanks for you're offer and reply.

Kind regards,

Atlas Wiki

What happened to Atlas Wiki? I've been looking for it at atlas.asp.net and it seems it disappeared.

Hi Viktor,

The wiki was dropped from the atlas website because the current version didn't work with the newer Atlas release but you can still download it from:

http://go.microsoft.com/fwlink/?LinkId=56430

We'll update the Wiki in a future release.

-Rich


So this was back in march and I'm still not seeing the wiki feature in Microsoft Ajax for .Net, has it been dropped entirely or will it show up again?


I have a big decision to make based on whether this will eventually be available or not. Is there anyone who knows and can say?

Atlas Wiki

I can't figure out how to access the Atlas wiki template. How does one access the download mentioned on a number of web postings? Or ... does it no longer exist?Are you trying to use it because you want information about it? you can go to http://atlas.asp.net

atlas website or aspnet

Hello there,

I was wondering if it is necessary to create an atlas website to use atlas controls. I was thinking of creating aspnet website and user atlas controls in few pages. What's is the difference between atlas template and aspnet template?

many thanks!

kushpaw

You don't need a atlas website for atlas controls. You just need a Asp.Net website with the Atlas Dll referenced. Also you should run the Atlas .msi so that it registers the .asbx extension. Read this for more info.

http://atlas.asp.net/docs/Overview/Install.aspx


Hi,

you also need to make some changes to the web.config file. The quickest way to do this is to compare the atlas website's one with the web.config in the aspnet website.


thnx guys!

Atlas WebPartZones Visible property not working correctly

Hi All,

I have an ASPX page that contains three WebPart Zones. As per therequirements, one of the Zones, say rightZone, needs to be hidden for,say X, role. For this I check the user role in the Page_Load event, andif logged-in user's role is X then I set rightZone's Visible propertyto false. This works fine using ASP.NET 2.0 WebParts.

I wanted to have drag-and-drop in FireFox as well; therefore, I used"Atlas" (March CTP) WebPartManager and WebPartZone to achieve the same.This works fine for all roles except X. That is, when an X type userlogs in, a JavaScript error is displayed. It goes something like this:

Could not find 'rightZone' element.

On further investigation I found out that if set the rightZone isrendered even though its visible property is set to false. I guessthat's the reason for JavaScript error.

Please let me know if this is a bug in "Atlas" or I am doing something wrong.

Thanks.

~Vihar

It's generally not a good idea to set Visible=false on a WebPartZone. The Visible property only controls whether the WebPartZone is rendered, not whether the WebPartZone participates in the WebParts control set. For example, if a WebPartZone has Visible=false, it will still appear in the list of WebPartZones in the CatalogZone and LayoutEditorPart. This will be confusing to users, since they will be able to add or move a WebPart to an invisible WebPartZone.

A better idea is to remove the WebPartZone from the page completely. You would need to do this in the PreInit phase of the lifecycle.

All this aside, you have indeed found a bug in Atlas, and it applies to any server control, not just WebParts. The xml-script for a control is always being rendered, even if the control is not visible. This is a bug because the xml-script for a control usually assumes that the control was actually rendered. We'll work on fixing this for a future release. Thanks.

-Mike
For now you could use a workaround to add the css style with display:none.

Atlas Webpartzone Assertion failed webpartzone.visible=false.

Assertion failed when webpartzone.visible=false and webpartzone contains webparts.

See this thread:http://forums.asp.net/thread/1244503.aspx

-Mike

Atlas WebParts and Subclassed WebPartManager? PLEASE?

I am working on a portal solution in which I've subclassed theWebPartManager class in order to override the OnAuthorizeWebPart methodto make use of the AuthorizationFilter property within myWebParts. Is there any way I can use the Atlas WebParts with asubclassed WebPartManager?

thanks,

jaredYes, you will need to write a new class that derives from the Atlas WebPartManager, and copy the code from your existing derived WebPartManager. If you plan to support both WebPartManagers, you will probably want to move the common code into a separate class.

-Mike

Atlas Web.config warnings?

When I compile an Atlas web application, I get quite a few warnings in my error list. These are the errors I get:

The 'requirePermission' attribute is not declared.
Could not find schema information for the element 'microsoft.web'.
Could not find schema information for the element 'converters'.
Could not find schema information for the element 'add'.
... etc.

This happens even with a brand new AJAX application.

Can anyone tell me why this is happening?

Thanks.

You need to keep the configuration schema in web.config like this :
<configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

But when you add uri for the configuration schema, IntelliSense editor in web.config is disable.


I was having a similar problem, but when I ran the Web Site Configuration utility this got added for me automatically.

so after adding this I lose all intellisense and moreover I get these warnings.

Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration about 84 such messages.

Anyway to get around these warnings, seems like I replaced a small number of warnings for a larger set.


The url of configuration schema verion 2.0 is "http://schemas.microsoft.com/.NetConfiguration/v2.0". It is default for .net 2.0 configuration schema. As you see in MSDN, SectionInformation class had been defined a public property that called "RequirePermission". But in VS.NET configuration schema file, it doesn't define an attribute "requirePermission" for "section" node. Therefore, when section node has "requirePermission" attribute, it will raise warnings liked "The 'requirePermision' attribute is not declared".
If you don't intend to modify web.config programmatically, you don't need to set up "requirePermision" attribute value. :)
There is no need to set url of configuration schema. This url only helps VS.NET could find help item when you press F1 in web.config.


I read the above postings and none of them sound promising to remove the warnings that were original posted for...

Adding... <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> to the web.config poduced 84 messages about schemas not being found.

If anyone can help with more detail for the following, that would be GREAT!!!

Code from Web.config
<microsoft.web>
<converters>
<add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>
<add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>
<add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>
</converters>
<webServices enableBrowserAccess="true"/>
</microsoft.web>

Warnnings:
Could not find schema information for the element 'microsoft.web'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the element 'converters'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the element 'add'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the attribute 'type'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the element 'add'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the attribute 'type'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the element 'add'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the attribute 'type'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the element 'webServices'. C:\Inetpub\wwwroot\Atlas_1\Web.config
Could not find schema information for the attribute 'enableBrowserAccess'. C:\Inetpub\wwwroot\Atlas_1\Web.config
There's just silly warnings, it's not affecting your application working or compiling one single bit... just ignore them... it's a bug/needed-schema-fix for the framework, but it's nothing more than an annoyance
OK, agreed.. it does not impact the application, but VERY anoying. Thanks for snapping me out of it. :)

Totally disagree with Morningz, totally agree with jrblack

"just ignore them" is no solution :P

I have the same problem and I wanna solve it, not hear comments like "just forget it" or "you don't need it"...


yeah, i agree with NNM, i also got those warnings, and i'm not crazy about just forgetting things like that...
In this case,

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

worked for me, but the attitude "just forget it" is not gonna get you far imo...


I changed from: <configuration>
to: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

Went

from: 6 warnings, 21 messages
to: 101 messages

I wonder which one is better. beta2 with ctp



NNM:

In this case,

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

worked for me, but the attitude "just forget it" is not gonna get you far imo...

Well, pick your poison...

1) Leave the "warnings" that do not affect the application one single bit from working

or

2) Live without Intellisense in the web.config file

You choose #2, i choose #1, and i can live with it if you can.... otherwise i see no need for either one of your posts that just rehash posts from months ago


I just get off by seeing 0 erros 0 warnings 0 everything when I compile... :P


And it gets drummed into our heads by people trying to stop us from being lazy programmers, "Treat warnings as errors"

I find it difficult to ignore warnings. A warning is indicative of a problem that needs to be fixed.

of course, here's the ultimate answer: Dude, it's beta.

(still annoys me though)


What bugs me is 2.0 isn't beta anymore and it is still annoying me.

ATLAS web.config and external databases

Hi,

I'm fairly new to ASP and even newer to ATLAS. I have built an ASP 2.0 website using the starter kits. I was able, bearly, to configure the web.config file in the starter kit to use the M$ SQL Server database running on the server.

Now, I'm trying to learn ATLAS and I'm finding that my lack of understanding of the structure of the web.config file is really screwing me over. I have a couple of questions.

Is there documentation somewhere that explains all the elements that go into the web.config file? What changes do I need to make to the web.config file for ATLAS in order to use the servers database?

Here is what my web.config file looks like:

<?

xmlversion="1.0"?>

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<

configSections>

<

sectionGroupname="microsoft.web"type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">

<

sectionname="converters"type="Microsoft.Web.Configuration.ConvertersSection"requirePermission="false"/>

<

sectionname="webServices"type="Microsoft.Web.Configuration.WebServicesSection"requirePermission="false"/>

<

sectionname="authenticationService"type="Microsoft.Web.Configuration.AuthenticationServiceSection"requirePermission="false"/>

<

sectionname="profileService"type="Microsoft.Web.Configuration.ProfileServiceSection"requirePermission="false"/>

</

sectionGroup>

</

configSections>

<

microsoft.web>

<

converters>

<

addtype="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>

<

addtype="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>

<

addtype="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>

</

converters>

<

webServicesenableBrowserAccess="true"/>

</

microsoft.web>

<

appSettings/>

<

system.web>

<

roleManagerenabled="true"defaultProvider="AspNetWindowsTokenRoleProvider" />

<

authenticationmode="Forms"/>

<

pagestheme="Default">

<

controls>

<

addnamespace="Microsoft.Web.UI"assembly="Microsoft.Web.Atlas"tagPrefix="atlas"/>

<

addnamespace="Microsoft.Web.UI.Controls"assembly="Microsoft.Web.Atlas"tagPrefix="atlas"/>

</

controls>

</

pages>

<

compilationdebug="true">

<

buildProviders>

<

addextension=".asbx"type="Microsoft.Web.Services.BridgeBuildProvider"/>

</

buildProviders>

<

assemblies>

<

addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

<

httpHandlers>

<

removeverb="*"path="*.asmx"/>

<

addverb="*"path="*.asmx"type="Microsoft.Web.Services.ScriptHandlerFactory"validate="false"/>

<

addverb="*"path="atlasbatchcall.axd"type="Microsoft.Web.Services.MultiRequestHandler"validate="false"/>

<

addverb="*"path="atlasglob.axd"type="Microsoft.Web.Globalization.GlobalizationHandler"validate="false"/>

<

addverb="*"path="*.asbx"type="Microsoft.Web.Services.ScriptHandlerFactory"validate="false"/>

</

httpHandlers>

<

httpModules>

<

addname="ScriptModule"type="Microsoft.Web.Services.ScriptModule"/>

<

addname="BridgeModule"type="Microsoft.Web.Services.BridgeModule"/>

<

addname="WebResourceCompression"type="Microsoft.Web.Services.WebResourceCompressionModule"/>

</

httpModules>

</

system.web>

</

configuration>

There should not be anything different *just* for using the atlas controls. If you store your connection info in the web.config (like many of us do) then you store them the same way, by adding a section that looks something like this:

<

connectionStrings>

<

addname="NameYouPick"providerName="System.Data.SqlClient"connectionString="ConnectionString Provided by your server host or check Connectionstrings.com" />

</connectionStrings>


ok,

What I don't understand is that my web.config file has no mention of any connectionString. So how does it create/use the db that it creates automatically when I use the ASP .NET Configuration tool?

I want to configure the web.config file so that when I click on the ASP .NET Configuration menu it actually does the work on the database on my server; this database is on the same server that serves the webpages.

Like I said, using the starter kits was easy because the web.config file had connectionString entires and all I had to do was change the properties.

I tried to make changes as you suggusted:

<?

xmlversion="1.0"?>

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<

connectionStrings>

<

addname="Personal"connectionString="Data Source=192.168.2.104;Initial Catalog=monkeyLove;Persist Security Info=True;UID=*******;PWD=********"providerName="System.Data.SqlClient" />

</

connectionStrings>

<

configSections>

<

sectionGroup....... more stuff that I left out becuase i didn't change it from my first example.

and I got this error when I tried to run ASP .NET Configuration: (line 6 is right after </connectionString>)

Only one element allowed per config file and if present must be the first child of the root element. (D:\Visual Studio 2005\WebSites\MonkeyLoveBeta\web.config line 6)


Well, to your first question, I'm not positive but I suspect that the admin tool has it's own web.config that it uses. It modifies your web.config but doesn't use it for its own settings. Also, I will say that there's no requirement to put a connection string in the web.config in order to use a database. You could just as easily define it as you go, although it's obviously harder to maintain that way.

The error you're describing suggests that you already have a connectionStrings entry in your latest web.config, the default one that gets added in mine when I use the config tool is right after the <appSettings> entry.

ATLAS Web User Control using AutoCompleteTextextender

hi friends

I have made to web User Controls. one is for Project selection and other is for Resource Selection. I have made is using ATLAS AutoCompleteTextExtender. Actually I want that when a user selects a project then according to this the Resource should should be come.

Actually I want that when user selects a project then I set the Project Id in my query , according to this Resource sholud be come.But I am unable to find the place , where I will write this. please reply this.

manish

Hi Manish,

The way that i see your problem you don't need an autocompletetextextender but just an update panel that will be trigger when you enter your project name. something like this:

<atlas:UpdatePanelID="upResults"runat="server"Mode="conditional">

<ContentTemplate>

<asp:TextBoxID="TextBoxResource"runat="server"></asp:TextBox>

</ContentTemplate>

<Triggers>

<atlas:ControlEventTriggerControlID="DropDownListProjects"EventName="SelectedIndexChanged"/>

</Triggers>

</atlas:UpdatePanel>

Hope this helps

Regards,


hiDennis

First thanks for reply. Deniss I think U have not got my actual problem. Actually I have made two controls using AutoCompleteTextExtender , this is in two pages and I am using both in third page. Suppose anyone selecting a project in one textbox then I want to store the current Project in session , which I can use in the WebService of another autocomplete Extender that is for Resource selection. My problem is that after selecting a Project I am not able to find the way to store the current project in session or anywhere. And I cannot use this value directly in another webservice bcz all r in different pages.I want a way to fire a postback of only the project selector, by which on lostfocus , I can store this value.

please reply .

Regards

Manish

Atlas Web services and Sharepoint...oh my!

So I've got this crazy idea that I should be able to be able to develop an Atlas enabled web control that I can load into "Son of SmartPart" under Sharepoint Services. I know...crazy...

I've verified that the web control created works on my local asp.net server, so it's ready to deploy to my sharepoint server and load into "Son of SmartPart". The control actually loads into the web part just fine, it just seems to have problems when it attempts to call its webservice for data; I get the infamous "<Object> is undefined" javascript error.

I have the feeling that the asmx file for the web service cannot be found...fiddler gives me a 404 error for the "/PhoneDirWS.asmx/js" file. So the question is where do I place the asmx file so atlas can find it. I've tried to place it in "/UserControls" (where the ascx file is located),
"/bin",
"/",
"Program Files\Common Files\Microsoft Shared\web server extensions\60\ISAPI",
"Program Files\Common Files\Microsoft Shared\web server extensions\60\Bin"
all with the same result.

I guess the questions are:

Is what I'm attempting even possible?
If it is possible, where do I place the asmx file so Atlas can find it?

Cheers.Ok, I think that I stumbled across enough information to find out that it isn't possible to use Atlas with WSS 2003 except in "client libraries". WSS 2007 will be a different matter entirely and should be Atlas friendly.

Oh well.

Atlas web service proxy undefined - bug or mistake?

Ok, here's the deal: I have javascript method that is called on the window's load event:

window.onload = function () { getDataForTable();};

Pretty striaghtforward, right? Well, when the getDataForTable method executes it calls an Atlas proxy method:

WebServices.Callbacks.CalendarFunctions.CheckDate(dateField.value, getDataForTable_Callback);
But when the script execute on load, I get an error stating that 'WebServices' is not defined. When I check the HTML output the Atlas javascript reference is there: "text/xml-script">"http://schemas.microsoft.com/xml-script/2005"> <references> <add src="http://pics.10026.com/?src=/Anthem/Callback/CalendarFunctions.asmx/js"/> "text/xml-script">"http://schemas.microsoft.com/xml-script/2005"> <references> <add src="http://pics.10026.com/?src=/Anthem/Callback/CalendarFunctions.asmx/js"/>
<script type="text/xml-script"><page xmlns:script="http://schemas.microsoft.com/xml-script/2005"> <references> <add src="/Anthem/Callback/CalendarFunctions.asmx/js" /> </references> <components /></page></script>
And when I hit the URL above the javascript there looks correct:
Type.registerNamespace('WebServices.Callbacks'); WebServices.Callbacks.CalendarFunctions=new function() {this.path = "http://localhost:64408/Project/Callback/CalendarFunctions.asmx"; this.appPath = "http://localhost:64408/Anthem/"; var cm=Sys.Net.ServiceMethod.createProxyMethod; cm(this,"CheckDate","date"); }

So... here is the question: why is this undefined? I think this is a bug because when I debug the script the ".asmx/js" script is not loaded in the script explorer window like other referenced scripts. So, any work arounds? How else do I get this call to execute during the window.onload event?

Thanks in advance for the help.

The best thing to do I think is to install something like fiddler, and verify that the request going out is in the form you expect, and that you are indeed getting the javascript that you get when you use the script include. Hopefully you'll see something obvious...

Actually I think this might be a timing issue, you are probably calling your onLoad before atlas has a chance to load its scripts, so you can verify that is the case in fiddler. Anyways you probably want to register your getDataForTable on pageLoad or using atlas's ApplicationOnLoad.

Hope that helps,
-Hao


You are right, I added the getDataForTable method after I posted this and it worked - it was just a timing issue. Thanks for the help though!

Atlas Web Service Call

Maybe I am missing something, more than likely. Basically all I am trying to do is call a web service located other than my local machine. So when I add the scriptreference and point the path to a ASMX file inside my project it works fine. However when I point to a ASMX file located on a server somewhere else it says that the Namespace is undefined when I try to make the call. Below is the code..

WORKS
<atlas:ScriptManagerrunat="server"ID="scriptManager">
<Services>
<atlas:ServiceReferencePath="SomeService.asmx"/>
</Services>
</atlas:ScriptManager
DOESN'T WORK
<atlas:ScriptManagerrunat="server"ID="scriptManager">
<Services>
<atlas:ServiceReferencePath="http://demo.somedomain.us/WebServices/SomeService.asmx"/>
</Services>
</atlas:ScriptManager
Web Service Call Script
<scripttype="text/javascript"language="JavaScript">
function OnbuttonGo_click()
{
//Call script proxy passing the input element data
requestWSCall = CP.WSCall.SomeCall(
document.getElementById('AccountNumber').value,//params
document.getElementById('PinCode').value,//params
document.getElementById('NP1').value,//params
document.getElementById('NP2').value,//params
"Windows Gadget",//params
OnComplete,//Complete event
OnTimeout//Timeout event
);
returnfalse;
}

function OnComplete(result)
{
alert(result);
}

function OnTimeout(result)
{
alert("Timed out");
}
</script>

Any ideas? Let me know I am kind of stuck right now trying to figure out whether I will have to place this web application inside the same folder as the web service or can call it remotely. Let me know if I need to show you more of the code.

Thanks!

JoeWeb

Hi Joe,

Can you check fiddler and see if your pages are generating something like a request tohttp://demo.somedomain.us/WebServices/SomeService.asmx/js and if you are getting a response with the proxy? Most likely there's something bad happening with this request... Hopefully it'll be obvious if you look at fiddler,

Hope that helps,
-Hao


Since you are trying to access the web service across domains, it will not work. You have to use a bridge.

Actually in this case, if its atlas to atlas, the iframe executor should work for cross domain atlas -> atlas web services calls, assuming its enabled and configured properly...

But in general for non atlas cross domain web service calls, you would have to use a bridge...

Hope that helps,
-Hao


Hey guys thanks for the quick responses. Yeah actually it basically is inside the same domain. We just have a Web Services box set up and a Web Server set up. So when I need to talk to the Web Services box I had thought about implementing the iframe idea. I hate to have to set up a bridge to talk to a Web Service that is still inside our network just on a separate box. However, given the suggestions I have enough to work with now to accomplish the problem.

Thanks again!
JoeWeb

Atlas web service breaking with IIS wildcard mapping

I have a wildcard mapping in IIS for '.*' that maps to asp.net's dll to handle any mapping not specified in IIS with asp.net.

For some reason having this wildcard mapping in IIS breaks atlas. It appears that the javascript proxy no longer works. I.E.'http://localhost/MyService.asmx/js' returns a error 'The resource cannot be found'. If I remove the wildcard ('.*') mapping from IIS then the atlas code starts to work.

Has anyone else experienced this problem, or know a way that I can have a wildcard mapping in IIS and still use atlas in my application?

Hi Zerobit,

I also experienced the same when i added the wildcard as '.*' in configuration section of the project in INETMGR. can anyone help us why the wild card is creating the problem ??

Regards,

Kathir


Someone posted this in another thread where I asked the same question:

"I added a folder named "Webresource.axd" (without quotes) to the root of my application and ATLAS works now with a wildcard mapping in IIS. I hope this trick will solve the issues you are experiencing."

I havn't tested it as I have since switched to AjaxPro. But if it works let me know.

Monday, March 26, 2012

Atlas Web parts

Has anyone figured out how to use atlas panel with web parts I have been able to use the update panel with the webparts and they work fine, but when i use it with the control that changes the mode for the page it doesn't change the page, any ideas?

The problem was i had multiple update panels and didn't add a trigger to set off the others. I did change this now to put everything in one update panel, but now i lose the ability to drag and drop, anyone got an idea for that?

www.aspnetsource.com


When I place more than one update panel on a page the drag and drop functionality no longer work Or if i place a dropdown list which changes the mode and place it inside the update panel the drag and drop no longer work?

<asp:DropDownListID="ddlDisplayMode"runat="server"AutoPostBack="true"OnSelectedIndexChanged="ddlDisplayMode_SelectedIndexChanged"Width="120"></asp:DropDownList>

If you put the above inside the panel the drag and drop for web parts no longer works.


There are some issues with WebParts and UpdatePanel in the March release. We are working to fix these for the next release.

-Mike


Fixed in the Atlas April CTP:http://weblogs.asp.net/atlas/archive/2006/04/10/442437.aspx

-Mike

Atlas VSIs will only work with VS 2005 Beta 2

I want to answer what will very likely be a FAQ for the Atlas VSIs. The current Atlas VSIs onhttp://atlas.asp.net will not work with PDC bits or with any RTM builds of VS 2005 such as the August CTP – you need to be on a Beta 2 build. There were breaking changes occurring between Beta 2 and the RTM build which would have made it more difficult to develop/test Atlas and get it all finished by PDC. By staying on Beta 2, our developers could focus on Atlas features.

The team is following up soon with a PDC build and we'll have it out on the site when it's ready.


-Rich

OK I seem to be a bit cognitively challenged this morning: as far as I can tell the files currently served up at that location are just zip files (vsi.zip) - they don't initiate the installation of anything at all, contrary to the installation instructions.
I'm really keen to get going on this, so how exactly do we get the files integrated with VS 2005 Beta 2 given that there doesn't seem to be an actual installation process? I'd manually put the extracted files where they need to be, but I don't have a clue right now.
Regarding my earlier whine about the installation not working: it turns out all I had to do was remove the ".zip" extension that IE wanted to add for reasons known only to itself.
I use Visual Studio 2005 July CTP, after delete the compiled error in web.config (appliesTo="Web"), then it runs fine.
There are several breaking changes between Beta 2 and RC0 so while you may be able to get the VSI and your app to build there's also a chance that the Atlas code will break in some place due to one of those changes. We built and tested on Beta 2 so we know it works (preview quality, at least).
The team should have a RTM build version out pretty soon, however.
-Rich
Yes, we are working on getting the RTM versions of the VSI's complete ASAP. Apart from the appliesTo change in web.config, there are some changes within the Microsoft.Web.Atlas.dll that 'may' cuase you breaks depending upon your application. The script files themselves are currently consistent between builds.

Atlas VSI installer error: String cannot have zero length

Hi,

I downloaded the January CTP release/vsi installer. When I double click ASPNETAtlas.vsi I get the following dialog box error:

*************
A problem occured while running the installer. Please contact the content author for problems with content.

Error message:
String cannot have zero length
*************

Any advice would be appreciated.

I've seen several posts related to different install errors using the .vsi installer, most of these errors appear to be caused because of different combinations of the ATLAS releases and the .NET/VS 2005 versions. My recommendation is that if you can't get to install it succesfully, the installer only adds a "project template", so instead, if you're able to extract the contents of the .vsi file there are 2 zip files, each containing the project files you need for either C# or VB .NET, you can use either zip file as your project "template".
Thanks. Still no luck. Tried renaming .vsi to .zip and still cannot read or view the contents. Tried on two seperate PCs and no luck. Are there any other .vsi viewer/extractor tools? I wish Microsoft would offer a zip version in addition to the vsi. Sounds like vsi is a mixed bag at best. Leaves the rest of us out of luck.
Yeah, I don't think the .vsi is really a zip file, however if you were able to launch it, there is an option to view files in Windows Explorer, which will show you the 2 zip files and a .vscontent file. I have a copy of these files, if you provide me a contact e-mail I can send them over.
Tried Windows Explorer and didn't find any option to view the contents of a VSI file.
I am having this same issue and cannot find a way to open the VSI. Windows Explorer doesn't allow me to do that.
If you're not able to launch the .VSI, then you will not see the "View Files in Windows Explorer" option. Nevertheless theMarch release is out, and this comes in the form of a .msi installer, so you may have better luck with this...

Atlas vs. ZumiPage

I gave a quick look to ZumiPage (http://www.zumipage.com/). It's seems so simple even I can do it :) How does it compare to the partial rendering capabilities in Atlas December release?

Thx
dB.

I've had a quick look and it seems like Atlas makes it even easier: just put your usual ASP.NET server controls into an update panel and voilĂ . You should read Nikhil's blog post on the new Atlas features:

http://www.nikhilk.net/AtlasM1.aspx


I don't like the screen-flickering of ZumiPage.

A solution like Atlas orMagicAjax is much easier and better.


Screen flickering? It returns to a postback mode when you can't have AJAX running properly (security or whatever else). My RSS reader disables most of JavaScript apparently - (RssBandit.org), and this forum, for example, doesn't work any more.

I haven't tried this with Atlas yet, but this is something pretty solid - you want the website to continue functionning in either mode. Anyone tried this with Atlas?

-dB.


Another solution makes AJAX programming easy isComfortASP.NET.
I didn't see any flicker with zumi. But I may be blind or my settings are not messed up like his :)
It looks like Microsoft has done a good job copying the idea behind MagicAjax in its December release. ZumiPage looks pretty cool if you're trying to add Ajax to .NET 1.1 apps. Otherwise, why would you choose to go with someone other than Microsoft for Ajax unless the Atlas juggernaut really screws up?
Again, we didn't copy anything but my own RefreshPanel that I published on GotDotNet in March. We didn't even know about ZumiPage and other similar frameworks before these forum posts appeared. By the way, if you do some research on the web, you'll find that there are now many similar frameworks for all technologies (incl. php, java) and I'm pretty sure that most of them grew independantly. Atlas was certainly not first but please... It's not uncommon that many people, when confronted with the same problem, come up with similar solutions, just because there are usually not many really good solutions.

Atlas vs Yahoo UI Library

Hi folks,

I was testing Atlas and learning the basis of it and Ajax. The Tasklist sample that comes with Atlas just crash my Firefox when moving the Note div !
Anyways.. that's not the point, and I still believe in Atlas. Might just be an extension that make it crashes!

This post is more about the popularity of Atlas vs Yahoo UI Library or any other ajax / UI related library.

I would like to know which ones tend to be used among web developpers, the pros and cons of the major players..

Thanks for any help!

Hi Martin,

One of the things we are trying to-do with Atlas is provide a very strong foundation base for building Ajax UI controls and libraries on top. So I think you'll find that Atlas probably has a richer foundation and library platform layer than most Ajax libraries out there.

Having said that, it is still new -- so we don't have all the controls out there that we would like to have. We will be announcing a new Atlas Control Pack shortly with a bunch of additional controls that help with this, but until then you can probably find cool libraries like the Yahoo one that have more cool UI widgets.

Over the next few months, as the Atlas control ecosystem grows, I think you'll find even more cool UI widgets with Atlas and .NET.

Hope this helps,

Scott


Thanks for your reply Scott!

By curiosity, how many people work on such a great project? is it a few like ~5 people or is it more like 20 or even more?

Right now, I'm developping an intranet for a customer of ours, and I'd like to integrate drag and drop functionnality. Does atlas is stable enough for me to use that? As I said, one of the demo just crash my firefox.

I'm really excited about Atlas and would prefer continu using MS stuff over other stuff.

Thanks

Atlas vs Callback!

Hi,

wanted to ask in what way these two differs? Atlas uses a PartialRender and Callback uses a PartialRender as well? It seems that Atlas uses Postback and not Callback which in the case I'm seeing the part updated in an UpdatePanel to flicker as usual, on the other hand Callback doesn't suffer from such thing.. which is the most efficient? I believe Atlas is more secure than the Callback process but am I missing something? please let me know if someone knows so as to know whats best to use

Thank you

hello.

well, they're different approaches of refreshing the UI without performing a postback. most of the time, they noth use the xmlhttprequest object to comunicate with the server side.


hi,

I don't think so, the UpdatePanel in Atlas always performs a PostBack... check out when debugging and it sets PostBack to True when you click a control in an UpdatePan! ... they "noth" use? they don't use the xmlhttprequest? where's AJAX then?

thanks


hello.

well, i think that there's a misunderstanding regarding the word postback. i'm using it to imply a total page refresh. when you use an updaptepanel and you set the enablepartialrendering property of the scriptmanager, you'll get a partial postback. when this happens, the atlas client platform uses a hmlhttprequest object that is responsible for communicating with the server side and getting the new html that will be put inside the panel. during this, the ispostback property is set to true, but you'll also see that the isinpartialrederingmode property is set to true.

i do believe that this similar to what happens during an asp.net callback (though, in this case, the iscallback property of the page is set to true).

btw, both of these options fo use the xmlhttprequest object to initiate communication with the server side.

Atlas videos

Please help. I downloaded the atlas video's. It plays sound but not the image.

Im really looking forward in getting started with Atlas & using these videos as my introduction.Please help in getting these videos playing......

Thanks

You are missing the appropiate video codec. Install the required wmv codec and they will play fine

Atlas Video Tutorial

For those who may be new to Atlas (or AJAX techniques in general), I've put together a video that demonstrates some of the features available in the framework. The sample code shown is also available for download if you'd like to play around with some of the features:
http://www.xmlforasp.net/codeSection.aspx?csID=116

Thanks for the video. A nice complement to the Hands On tutorials.

Atlas verus other AJAX implementations

What will Atlas provide that is compelling versus other AJAX products out there? I've been reading aboutComfortASP.NET and it seems pretty darn good. They provide various methods of incorporating AJAX into your website, including one that requires almost no extra programming. I can't compare the performance aspect of various products, but in terms of usability, they seem to have it right. Any comments?

Hi,

I hope the following link will give you the comparison of ATLAS vs AJAX implementations

http://www.daniel-zeiss.de/AJAXComparison/Results.htm


Atlas also offers Ajax without extra programming: look for the UpdatePanel.

MagicAjax offers a simular solution to UpdatePanels.


With ComfortASP, one of the option allows you to achieve AJAX features without anything special (not even UpdatePanel). I believe they implemented this through an HTTP-module/handler that passes back only the diff of the page. While this takes toll on the server, the result can achieve significant reduction in the data being passed to the client. I suppose you could think of it as a quick-and-dirty, semi-AJAX implementation. Mind you, it's one of several AJAX options they offer, others being closer to the usual AJAX implementations where you do need some coding. I think the idea is a good one and perhaps one that can possibly be considered for Atlas as well.

fyi - I get errors on their demo pages with ie 7

Looks good though - I have used Anthem - it does a good job as well.


One other note: I might need to try one of these solutions because I'm not suspose to use this Atlas for anything by their agreement.

I hope to see Atlas get to a stable point, my clients like what they see in the demo's I showed them - but with no good information and hush hush from many of the developers it makes it a hard sell right now.