Showing posts with label atlas. Show all posts
Showing posts with label atlas. Show all posts

Wednesday, March 28, 2012

Why JSON?

Say, please, what was the main reason to use JSON object serializing in Atlas instead of SOAP? Easy deserializing? Or light weight? Or something else?

And will Atlas support SOAP in the future?

Thanks.

Pavel,

Easy deserializing is indeed a big part of it. The ability to just call JavaScript's 'eval' instead of having to reconstruct an object graph from an XML DOM makes JSON much easier to you. JSON is also a more concise format.

It is conceivable that Atlas will support SOAP in the future.

David


Thanks for quick answer.

Why mix live.com with ATLAS? or even pageflakes?

I am not sure if other people has the some question as I have. I am using ATLAS, and trying to find out what features are available. There are more features to come, but I need keep looking what are available since I don't want to deveope them if they are there ready for use.

But look on the ATLAS pages, often you will see pageflakes, live.com etc. They are good sites, they are using ATLAS. But the thing is they don't build with ATLAS only. So my question is what is the point to put them here, just let us admire the nice features they have but no way to build our site like thme?

hello.

well, i guess that is what you'll have to do with everything, ie, you'll allways have to expand/tweak it to fit your needs. seeing sites like those might give you new perspectives about what you can do with the platform.

Why no Atlas Web Site template?

Hello -

Just getting started with Atlas. Downloaded and installed ASP.NET AJAX 1.0 Beta 2 and ASP.NET 2.0 AJAX Futures November CTP, but when I go to open a new Web site in VS2005, "Atlas" Web Site does not appear under My Templates (as the tutorials indicat should be the case).

What does appear under Installed Templates is ASP.NET Ajax-Enabled Web Site and ASP.NET Ajax CTP-Enabled Web Site. I chose the latter; however, none of the controls with the Atlas prefix (such as <atlas:ScriptManager>) are available to me through type-ahead.

Any suggestions on this are appreciated.

Eric

I just posted the same issue 15 minutes ago, Can please pass along any information if you come up with a fix.


In beta 2 version, prefix 'atlas' is replaced by 'asp'.
In beta 2 version, prefix 'atlas' is replaced by 'asp'. I am not sure what this means... Details please.

The responder means:

<atlas:ScriptManager>)

is now

<asp:ScriptManager>)


Does this mean that we no longer need the Atlas Web Site Template? Is it replaced with the ASP.NET AJAX-Enabled Web Site?
That is correct forget you even heard the word Atlas (its all Ajax now)
Thanks for the help. I am new at this programming and I have a lot to learn in a little time.

Hi,

When you install AJAX Extensions Beta2, It will adds some controls to Visual Studio2005 ToolBox.

So, open one ASP.NET website and click the ToolBox, goto AJAX Extensions Tab, click that Tab, it will show all controls which are newly installed.

All controls[UpdatePanel,..] will starts with 'asp'.

in design mode, drag-and-drop one control into the design view and goto the source view, there you will see the AJAX controls syntax.

Pradeep

Why Popup Calendar doest trigger textbox event OnTextChanged?

A textbox connect to an Atlas Toolkit Control PopupCanendar.
There is a javascript for OnTextChanged event of this textbox.

When using popup calendar to select a date for this textbox, it doesn't trigger this event.
But if type date in textbox directly, it is OK. the OnTextChanged will be fired.

Why? what's the solution for this case?The DOM is a little weird in that script changes don't tend to fire the associated event handlers that get fired when the user makes a change. It sounds like you're hitting that here. It's possible to fire the event from script, too, so maybe you want to try that. If you switch to PopupControl's CommitScript mode, I think you should be able to make this change fairly easily.

Why there is no *.aspx.designer.vb files in Visual studio 2005?

On my computer windows XP, I use visual studio 2005 for development. I create a atlas project for my work.

Everytime when I create a new aspx or ascx file, there is no *.aspx.designer.vb file. But on some other computers(same environment), when create a new webform, VS will gerenate 3 files:

*.aspx, *.aspx.vb., *.aspx.designer.vb

Why? any settings related to this issue?

Hi,

the *.aspx.vb will not generate if you unselect checkbox "Place code in separate file" when you create a web form.

hope can help you.


Thanks for you reply. I knew that.

But I am not taliking about *.aspx.vb, I am talking about *.aspx.designer.vb

This *.aspx.designer.vb will hold all control variables declared in page *.aspx


Hi,

The computer where you can see the aspx.designer.vb file has the addin "Visual Studio 2005 Web Application Projects" available athttp://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx. Be aware that by installing the addin you do loose some feature at the moment like "profile", there is a work around available also, check the code project to get the addon.

Hope this helps you.

PS: I hope that microsoft changes there mind on the designer files, i love partial classes but i do not like loosing view of the main class.

VBS1


Thanks.

So if aspx.designer.vb is invisible on my computer under a wep application inside a solution, anyway can find out this aspx.designer.vb file for webform?

Why webservices?

I don't know if I haven't understood the right way to use Atlas, but as far as I know all the calls are done to a webservice? How is this helpful? Why does it have to be this way? Why not call methods defined in the asp page?

Thanks for the help

Atlas lets you call both methods on Web Services and methods defined on the page. Using a Web Service is cleaner if you want to make some general functionality available to multiple pages, but there are also scenarios where calling methods on the page is convenient.

David


Well, I guess whatever you need to do the job is what you'd choose. Atlas streams XML based information to and from the server - thereby making webservices a perfect fit. By your statement "calls methods in the page", I suppose you are referring to server side calls... In this case, postbacks are no longer required - Web 2.0 is coming, where a richer UI experience can be achieved by asynchronously updating the bits of data on a screen that are needed - not the entire page for the sake of postbacks. IMHO, Atlas is a great step forward for SOA and SaaS...

Jon


Hello,
I am not getting how can i make the script part dynamic...
In detail...i want to show a Chart image when user hovers over a stocksymbol(ex.TCS or MSFT) but there can be many such symbols on the page,(another solution is that i add <script></script> for eachsymbol at client side...but its obviously not feasible) so how can imake the <script></script> part of our Client dyanamic...

hope u can help
Devang

Monday, March 26, 2012

Wilcos ProgressBar Demo

I've been looking overWilco's ProgressBar demo and fixed it up to work with the current version of ATLAS. It's running and I can call methods on the control doing the updating of the progress info, but I can't get the timer to fire on it.

Looking over the code I can't find anything wrong with - the interval is set and assigned to the timer, but the timer simply isn't firing - I see nothing with Fiddler and the internal onTimerTick event is never actually hit.

I have been testing the control with a little bit of JavaScript code to fire the timer and that works fine, but I can't seem to get the internal timer to fire and ping back to the Web Service. Anybody have any idea, why the timer isn't firing in the below code?

I'm hooking things up through code rather than using XmlScript for now.

+++ Rick --

<scripttype="text/javascript">

Sys.UI.ProgressBar =function(associatedElement) {

Sys.UI.ProgressBar.initializeBase(this, [associatedElement]);

this.element = associatedElement;

var _timer =new Sys.Timer();

var _progress = 0;

var _showPercentage =true;

var _serviceURL;

var _serviceMethod;

var _responsePending;

var _tickHandler;

this.get_progress =function() {

return _progress;

}

this.set_progress =function(value) {

if (value >= 100) {

_timer.set_enabled(false);

}

_progress = value;

this.element.style.width = value.toString() +"%";

if (_showPercentage && value > 5)

this.element.innerHTML = value +"% ";

}

this.set_showPercentage =function(value) {

_showPercentage = value;

}

this.get_showPercentage =function() {

return _showPercentage;

}

this.get_interval =function() {

return _timer.get_interval();

}

this.set_interval =function(value) {

_timer.set_interval(value);

}

this.get_serviceURL =function() {

return _serviceURL;

}

this.set_serviceURL =function(value) {

_serviceURL = value;

}

this.get_serviceMethod =function() {

return _serviceMethod;

}

this.set_serviceMethod =function(value) {

_serviceMethod = value;

}

this.getDescriptor =function() {

var td = Sys.UI.ProgressBar.callBaseMethod(this,'getDescriptor');

td.addProperty('interval', Number);

td.addProperty('progress', Number);

td.addProperty('serviceURL', String);

td.addProperty('serviceMethod', String);

td.addMethod('start');

td.addMethod('stop');

return td;

}

this.initialize =function() {

Sys.UI.ProgressBar.callBaseMethod(this,'initialize');

_tickHandler = Function.createDelegate(this,this._onTimerTick);

_timer.tick.add(_tickHandler);

this.set_progress(0);

}

this.dispose =function() {

if (_timer) {

_timer.tick.remove(_tickHandler);

_tickHandler =null;

_timer.dispose();

}

_timer =null;

Sys.UI.ProgressBar.callBaseMethod(this,'dispose');

}

this.start =function() {

_timer.set_enabled(true);

}

this.stop =function() {

_timer.set_enabled(false);

}

this._onTimerTick =function(sender, eventArgs) {

alert('timer tick');

if (!_responsePending) {

_responsePending =true;

Sys.Net.ServiceMethodRequest.callMethod(_serviceURL, _serviceMethod,null, _onMethodComplete,null,null, [this]);

}

}

function _onMethodComplete(result, response, context) {

var behavior = context[0];

behavior.set_progress(result);

_responsePending =false;

}

}

Type.registerSealedClass('Sys.UI.ProgressBar', Sys.UI.Control);

Sys.TypeDescriptor.addType('script','progressBar', Sys.UI.ProgressBar);

</script>

<scripttype="text/javascript">

var Progress =new Sys.UI.ProgressBar($('ProgressBar'));

function ShowProgress()

{

SimpleService.InitializeProgressInfo(0);

Progress.set_interval(2000);

Progress.set_serviceURL("atlas/simpleservice.asmx");

Progress.set_serviceMethod("ProgressInfo");

Progress.start();

Progress.set_progress(5);

//StartProcessing();

}

function StartProcessing()

{

SimpleService.ProgressInfo(-1,StartProcessingCallback);

}

function StartProcessingCallback(Result)

{

Progress.set_progress(Result);

if (Result < 100)

window.setTimeout('StartProcessing();',1000);

}

</script>

Duh...

The code is missing a call to Initialize() to start the timer and other initialization going. It seems kinda silly that Initialize() isn't called automatically when in construct the object.

The progress stuff works, but I can't get the Web Service stuff to work - the ServiceMethodRequest object has changed and no longer supports calling the Web Service with simple parameters.

If anybody has any idea on that that'd be great.

The docs still suck - without knowing what parameters mean they're not terribly useful.

+++ Rick --


The way you invoke service methods has changed a little. The new signature looks like this:

invoke = function(url, methodName, params, onMethodComplete, onMethodTimeout, onMethodError, onMethodAborted, userContext, timeoutInterval, priority, useGetMethod)

Therefore, you should try to change

'Sys.Net.ServiceMethodRequest.callMethod(_serviceURL, _serviceMethod, null, _onMethodComplete, null, null, [this]);'

into

'Sys.Net.ServiceMethod.invoke(_serviceURL, _serviceMethod, null, _onMethodComplete, null, null, null, [this]);'

Hey! This is just what I need, but how do I set the whole thing ablaze? I've created an upload page, which works fine. And I have a webservice which, based on the client IP, returns the current status of the process.

I've put the javascript progressbar directly in the aspx file, a div (class="progressBar") within a div (class="progressBarContainer") and the stylesheet classes from Wilcob's example. Furthermore I've set the serviceUrl to my webservice, and the servicemethod to my servicemethod.

When I run the page, the process runs thrugh just fine and uploads files, but I get an error on the page (in IE) refering to this line (marked with:*):

this

.set_progress =function(value)

{

*if (value >= 100)

{

_timer.set_enabled(

false);

}

_progress = value;

this.element.style.width = value.toString() +"%";if (_showPercentage && value > 5)this.element.innerHTML = value +"% ";

}

I've put the Initialize() in there like this:

Sys.UI.ProgressBar =

function(associatedElement)

{

Sys.UI.ProgressBar.initializeBase(

this, [associatedElement]);this.element = associatedElement;var _timer =new Sys.Timer();var _progress = 0;var _showPercentage =true;var _serviceURL;var _serviceMethod;var _responsePending;var _tickHandler;

_timer.Initialize()

And I've changed the Sys.Net.ServiceMethodRequest.callMethod as WilcoB mentioned above.

Any idea? Please help..

Will Application_Error catch any unhandled exception during atlas postback ?

Looks like atlas postback unhandled exception is not comming to Application_Error handler.

Is this right ? or is there any way to redirect any atlas postback unhandled exception to "Application_Error" ?

Thanks,

Perhaps you can utilize the Error Template tag as well as OnPageError event to handle exceptions you encounter in your application.

<atlas:ScriptManager EnablePartialRendering="true"OnPageError="Page_ErrorHandler" runat="server">
<ErrorTemplate>
<div style='width: 450px; height: 300px; padding: 10px; border: solid 3px black; background: #ffd; text-align: left;'>
<h1>Server Error</h1>
<p>Oops looks like we're still working on some code. Administrators have been notified and this emerging issue will be fixed.</p>
<p><input id="okButton" type="button" value="OK" runat="server"/></p>
</div>
</ErrorTemplate>
</atlas:ScriptManager>

Here is the handler for the error.

Import System.Net.Mail

C#

protectedvoid Page_ErrorHandler(object sender, PageErrorEventArgs e)
{

MailMessage mail = new MailMessage();
mail.From = new MailAddress("me@.mycompany.com");
mail.To.Add(you@.yourcompany.com);

mail.Subject = "Error Occured My Application";
mail.Body = "Error Message: e.Error.Message<br /><br />Stack Trace: e.Error.StackTrace<br /><br />Source: e.Error.Source<br /><br />Help Link: e.Error.HelpLink";
mail.IsBodyHtml = true;
smtp.Credentials = new NetworkCredential("username", "secret");
SmtpClient smtp = new SmtpClient("127.0.0.1");
smtp.Send(mail);

//Or perhaps insert it into a database. Or if you feel like it... perhaps the Windows Event Viewer

}

VB

SubPage_ErrorHandler (sender As Object, e As PageErrorEventArgs)

Dim mail As MailMessage = New MailMessage
mail.From = New MailAddress("me@.mycompany.com")
mail.To.Add("you@.yourcompany.com")
mail.Subject = "Error Occured My Application"
mail.Body = "Error Message: e.Error.Message<br /><br />Stack Trace: e.Error.StackTrace<br /><br />Source: e.Error.Source<br /><br />Help Link: e.Error.HelpLink"
mail.IsBodyHtml = True
smtp.Credentials = New NetworkCredential("username", "secret")
Dim smtp As SmtpClient = New SmtpClient("127.0.0.1")
smtp.Send(mail)

End Sub

You can also throw the credentials into the web.config inside the <System.Net> tag like so.

<system.net>
<mailSettings>
<smtpfrom="me@.mycompany.com">
<networkhost="127.0.0.1" port="25" userName="myUsername" password="secret" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>

Hopefully that will help a little bit.

JoeWeb


Proposed solution is great. But it requires to create Page_ErrorHandler in every Page whereScriptManager is present. It leads to duplication of code. And it very easy to miss it somewhere.

We're logging all unhandled exception in ASP.NET application onproduction environment and regulary analyze them. Errors that occur during Atlas post-back are not handled because Application_Error is not fired.

Is there any solution to exception handling during Atlas post-backs like Application_Error which is global for all application?

Thanks in advance


What about this? Implement your error handling method for the script manager event as static in a class, and onload of any page with the script manager, all you have to do is assign that static method to the event handler... then you won't be duplicating any code, and its only 1 line of code to add per page.


The ErrorTemplate is no longer supported with Ajax and these are two methods you can use..

In codebehind - I always pull in the scriptmanager so that I can ref it and manage it.

( on your page init)

SM = (ScriptManager)GetControl(skin,"SM");
SM.AsyncPostBackError +=new EventHandler<AsyncPostBackErrorEventArgs>(SM_AsyncPostBackError);

then new event...

void SM_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
{
SM.AsyncPostBackErrorMessage = e.Exception.Message;
bllLogging.RecordError("GridViewModal ScriptManager Error", e.Exception, Severity.Severe, "", "");
}

The BllLogging is my custom error recording routine I use to track error - replace with your own or re-throw it if you have a global exception handler...

In the example above - I use this in a base class which all of my other classes derive from so I only have to code it once...

Alternatively you can also do this on your pages or include in a mycustom.js

<ajax:ScriptManager ID="SM" EnablePartialRendering="true" ScriptMode="Auto" runat="server" />
<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(OnEndRequest);

function OnEndRequest(sender,args)
{ // *** Check for errors

if (args.get_error() != undefined /* && args.get_error().httpStatusCode == '500' */)
{
//debugger;
var errorMessage = args.get_error().message
alert("Custom Error Handling:\r\n" + args.get_error().message);
args.set_errorHandled(true);
//var ErrorDisplay = $get("ErrorDisplay_Message");
//ErrorDisplay.innerHTML = "Custom Error Handling:\r\n" + args.get_error().message;
}

}
}
</script>

There also some additional things you can do with assigning custom errors and the likes and is well documented on their documentation site under scriptmanager references...

However, be careful when using the custom error feature - the code behind version does quite well logging actual messages but when in custom mode - whatever is provided as the error text is used (which hides the actual error message...)

Will Atlas Work With Opera 8.60 for Pocket PC?

myAtlas Update Panels are working fine when i access the page from a standard desktop Opera browser. However the page is posting back when i do the same thing from within the PDA. the PDA is running the latest 'Opera 8.60 for Pocket PC' browser.

can i somehow configure the Atlas or the page so that it will work on the PDA browser? or am i on a hiding to nothing?

thanks

I don't speak for the ASP.Net team; however at this time there is no real 'support' for mobile devices (so yours being opera is not a slant). Currently there is some Opera desktop browser support and they are looking at expanding it. As with all new tools we get to play with - mileage will end up varying - however if you are familiar with Java Script... there may be a means for you to roll your own if its a mission critical scenario... However, personally - I don't think right now the focus is in provding mobilie support as it is more inline to polishing desktop browser experiences... NOt to sy it won't won't happen.. but usually mobile applications don't rely on the jazzability that memory / cpu intensive desktop browsers can utlize...

Will Atlas Cut The Mustard?

hi. i am a complete beginner to Atlas so please go easy on me.Smile

I am trying to determine whether Atlas is capable of meeting my requirements, or whether a different Ajax library might be better. Ideally I would prefer to use Atlas because of the vibrant community. so ill fire away with a few questions.

1. Will I be able to use Atlas with the DataGrid/DataGridView control?

2. What I will need is for the contents of one datagrid column to dynamically update based on a selection within a different column. e.g. if I pick 'Fruit' in column1 of my grid then i will want column2 to show me a list of fruit etc. (although my codebehind is more complex than this). Will this be possible with Atlas?

3. One of my grid columns asks for a client code. It will have a search button next to it allowing a user to search for a client by name, address, etc. Will I be able to fire up a pop up search facility and post the hit back to my grid with Atlas? (at the moment i am doing this via a postback and a user control, not a pop up).

thanks for any assistance

All of your scenario's are very easily done using atlas.

1. Look at using an update panel and putting the gridview/datagrid in it

2. see 1.

3. see 1. use a template column for the button and handle the onClientClick of the button.

There are a few things you have to look out for when using other javascripts in conjunction with atlas.
Atlas extends a lot of the native browser objects by using prototype. if you extend the same functionality then they'll have a fight about it.

if you attach things to your browser window events like onload then you should consider rewriting the window.onload = function(){ //myfunction content } to Sys.Application.load.add(funtion(){ //myfunctioncontent});

I hope this gets you on your way.


thanks for your reply.

ive got another question that just occurred to me this morning.

is the javascript outputted by atlas cross browser compatible, or will it only work in IE?


Wee Bubba:

thanks for your reply.

ive got another question that just occurred to me this morning.

is the javascript outputted by atlas cross browser compatible, or will it only work in IE?

its targeted at IE, FF, and Safari... Opera ,and others, don't make the cut


hello.

and it looks like safari has limited support only.

Will Atlas be included in the first service pack?

Will Atlas be included in the first service pack? Does anyone have any info?what service pack, they're many types of SPs...
The first major service pack for VS 2005.

Will there be Visual Studio .NET 2005 Controls in the Toolbox?

Does anyone know if there are any plans to create drag and drop Atlas controls for the toolbox?All of the current Atlas server controls can be added using drag/drop and you can use the Visual Studio properties window to configure the components.

If the Atlas controls don't show up on your Toolbox, you can add them by dragging the Microsoft.Web.Atlas.dll from the Windows file manager to the toolbox or manually:

Right-click on Toolbox.

window.open (javascript function) + atlas

Hi everyone,

I'd like to know how create a simple function under Atlas (I used one before Atlas and it's works very well), like that one:

Sub wOpen(ByVal fWindow As String, ByVal fNameWin As String, ByVal fWidth As Integer, ByVal fHeight As Integer, ByVal fMenu As Boolean, ByVal fResizable As Boolean, ByVal fScroll As Boolean)
Dim strJ As String = "<script language='javascript'>"
strJ &= "window.open('" & fWindow & "', '" & fNameWin & "', "
strJ &= "'width=" & fWidth & ", height=" & fHeight & ", menubar="
If fMenu = True Then
strJ &= "yes"
Else
strJ &= "no"
End If
strJ &= ", resizable="
If fResizable = True Then
strJ &= "yes"
Else
strJ &= "no"
End If
strJ &= ", scrollbars="
If fScroll = True Then
strJ &= "yes"
Else
strJ &= "no"
End If
strJ &= "')<"
strJ &= "/script>"
Page.RegisterClientScriptBlock("wOpen", strJ)
End Sub


But under Atlas when a call it doesn't work:
wOpen(wOpen("http:..", "myWindow", 810, 620, True, True, True)

I really seach about, but I can't find anything about it.

So, if someone can help I really be thanks.

José SP/Brazil

It's me back again, and I've the answer, I just need remove the javascript tag from the code, like that:

Sub wOpen(ByVal fWindowAsString,ByVal fNameWinAsString,ByVal fWidthAsInteger,ByVal fHeightAsInteger,ByVal fMenuAsBoolean,ByVal fResizableAsBoolean,ByVal fScrollAsBoolean)Dim strJAsString

strJ =

"window.open('" & fWindow &"', '" & fNameWin &"', "

strJ &=

"'width=" & fWidth &", height=" & fHeight &", menubar="If fMenu =TrueThen

strJ &=

"yes"Else

strJ &=

"no"EndIf

strJ &=

", resizable="If fResizable =TrueThen

strJ &=

"yes"Else

strJ &=

"no"EndIf

strJ &=

", scrollbars="If fScroll =TrueThen

strJ &=

"yes"Else

strJ &=

"no"EndIf

strJ &=

"')"Me.ClientScript.RegisterStartupScript(Me.GetType(),"wOpen", strJ,True)EndSub

Windows 2000 Server

Does ATLAS run on Windows Advanced server 2000?

This server is now serving up ASP.NET pages and I dont need any additional functionality ?

But using ATLAS would be greet.

I can see in the specs for the March CTP it only runs on 2003 Server and higher but is this realy the case?

Atlas will run on any platform that can run ASP.NET 2.0, so you should be fine.

David

Without installing Atlas, Website application is not working in IE

Hello,

I am developing Website Application using VS 2005 with .NET 2.0 and Atlas June CTP. I am using Atlas framework in the existing project. Hence I have added reference of Atlas.dll and modified Web.config

In the project, I have one user control (ascx) and one aspx page. The user control is included in aspx page. The user control has two dropdown lists. The second list is getting populated depends upon the selected value from first list. This is done by using Atlas. The UpdateControl is added into this page. The Script manager is added in aspx page.

If the application is launched on the machine where Atlas is installed, it works only on that machine in both browsers (IE and FireFox). It is not working if anybody accesses this website remotely through browser from machine where Atlas is not installed.

If the application is launched on the machine where Atlas is not installed and accessed the local website through browser, the "SelectedIndexChanged" event is not getting triggered. If I add "ScriptLibrary" folder in the application, it is working in FireFox but not in IE. In this case,do I need to add any assemblies apart from Atlas.dll to make it work in IE and without installing Atlas?

Thanks in advance,

Milind

hello. the atlas dll is the only thing you need to have in your bin folder to get the updatepanel working. btw, how are you accessing the web site from the machine that has the app installed? are you using localhost/... or localhost: portnumber/... (ie, are you using the internal server or IIS when you access the site on the server?)


Hello,
I am accessing localhost using IIS.
On the test machine (where Atlas is not installed), if I deploy website application which has Atlas.dll and ScriptLibrary folder, "SelectedIndexChanged" event is getting triggered for FireFox but not in IE.

Thanks,
Milind

hello again.

weird stuff...btw, is this a public url we can see?

Saturday, March 24, 2012

Without installing Atlas, its not working in IE

I am developing Website Application using VS 2005 and Atlas June CTP. In the application, one page contains user control which has two Dropdown lists. Depending upon the value of first dropdown list, using Atlas, second list will get populated. I have added UpdatePanel control in user control (ascx page) for second list and Script manager in aspx page. I have added reference of Atlas.dll and modified Web.config also. This is working in IE and FireFox.
If I uninstall Atlas and run the application, it's not working in IE. To make it work in FireFox, I need to include "Scriptlibrary" folder into solution. But in IE, "SelectedIndexChanged" event is not getting triggered.
The application is working fine for both the browsers on machine where Atlas is installed. Which other assemblies are required to run Atlas on the machine where Atlas is not installed?

Thanks in advance,
Milind

hello.

well, if you're not using the atlas toolkit, then you only need the atlas dll.


Hello,
I am not using Atlas toolkit. Atlas.dll is already present in the "Reference" but still it's not working. Everything is working fine on developer's machine where Atlas is installed.

Thanks,
Milind

hello again.

the only thing that occurs to me is if the web site is not configred as a web app or is not using asp.net 2.0...

Wonder if its prossible to implement Atlas to .Net 1.1?

Hi all,
I have tried Altas under VS2005 RC, it seems quite cool AJAX framework here.
Then I have this problem if it is okey to implement it to .NET 1.1?
There are several major function javascript files and a dll file in folder. What's the major obstacle about the port? Is it that DLL file matters?
Can some body tell me that thx in advance.I don't think its possible because there's a lot of plumbing that's unique to asp.net 2.0. I'd suggest looking at using Ajax.Net if you need to do anything in 1.1
Hi,
if you like to know more about AJAX.NET: you canfind it here.
Grz, Kris.

Working Differently Remotely and Locally

Hi,
I'm just getting started with Atlas but and have a little sample working locally where I can drag an image around on the screen (little things...). When I upload to the server all I get is the page with none of the dragging ability.

I have installed .net framework 2.0 (before which the page didn't load at all) - is there anything else I need to do on the server?
It is a shared virtual server but I have admin remote desktop onto my share.

I'm sure it is a simple thing I've missed but I can't find out what it is.

Any help greatly appreciated.
Andrew

I assume you've uploaded the dll and web.config that you're using locally as well, right?

Can you provide a link to the online version? Who's the web host?

This problem when I've seen it before was a result of a problem with the WebResource.axd. In one case, the .dll was corrupt and so the resource was throwing out gibberish (you can see if that's the case by viewing yoru page's source after the server serves it and then copying and pasting the whole webresource.axd?...etc stuff into the address bar). In the other case, the host had a problem serving up the virtial file 'webresource.axd' and so I had to literally put a blank file named webresource.axd in the root of the site.

hope it helps

Paul

Working locally (both IE & FF), only working in FF on live server

I just got my personal website (link) updated with some Atlas enabled stuff, right there on the front page you can do "Show Different Image" in the top left or use the Calendar's left and right arrows to go through the months without postback.... but... as the subject says

Running on my laptop here: Atlas CTP installed, using studio's built in web server:
- All functions work in both browsers (IE 6, FF 1.5.0.4)

Up on my web server: Atlas CTP installed, IIS 6.0
- FF works 100%, but IE spews javascript errors on page load

And it's weird, one time i get one error (and this is the common one, btw that line # shown doesn't have anything!):

Other times, IE is totally confused! (i do not have that many lines in that page needless to say)

I've already tried seeing what's going on with Fiddler, not sure what i am exactly looking for, but all looks well in that tools... and just for good measure i uninstalled Atlas on my server and reinstalled it, that didn't help things either

Any ideas? (link again)

So i got by this problem by installing theMicrosoft Script Debugger and seeing what IE was whining about and it was the javascript for Google Analytics causing the above problems (although it makes *no* sense why it worked 100% in FF)

So now I have the "css refresh" problem where IE/Atlas is working, but the whole page's CSS refreshes, i swear i saw a blog post by someone at Microsoft to fix it... gotta track that down

Working with a returned DataSet

After I returned a DataSet through a WebMethod, how do I work with it?
I didn't understand this part of Atlas.

1. I loop through this DataSet creating new dynamic tables, trs and tds to display this data?

2. Can I bind it to an asp.net control like a GridView and it willautomatically update the control via JS, just like it happens on theserver side binding?

I tried looping through the returned DataSet but it has some weirdfunctions and attributes not quite like a DataSet... so... how do I useit?

function RetInfo(id)
{
PageMethods.RetDataSet(id,OnComplete);
}

function OnComplete(ds)
{
//do something with the DataSet
//ds.Tables (?)
}

[WebMethod]
public DataSet RetDataSet(int id)
{
DataSet ds = new DataSet();
//...get data from the database
return ds;
}

I recommend you check out this writeup by Garbin:

http://aspadvice.com/blogs/garbin/archive/2006/03/05/15591.aspx


You might want to review this page as well:

http://atlas.asp.net/docs/atlas/doc/data/default.aspx#datatable


Thanks man, that's exactly what I was looking for.

Just two more questions though:

1. If use that xml binding, can I use a PageMethod instead of a webservice as DataSource?

2. And, is a PageMethod considered a WebService? Will it have the same security issues as WebServices do (like being accessible to anyone)?

Thanks!