Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Wednesday, March 28, 2012

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 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 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 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 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

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 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 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 used in a Web Application

Can the Atlas components and framework be used with the new VS2005 Web Application Project?

Yep -- that is definitely supported. There isn't a built-in project template for this (although you could create one). We will be adding one for the next Atlas Refresh though.

To use Atlas, just add the Atlas assembly to your web application project, and update the web.config file with the appropriate registrations (just add a blank Atlas web-site project to see what these are).

Hope this helps,

Scott

Atlas UpdatePanel Browser Hang

I am currently creating a web page utilizing the April Atlas CTP. On my web page there is a dropdown list, a listbox, and two buttons for add and remove. The goal is to allow the user to select an item from the drop down and move it to the listbox. The selected item is then removed from the dropdown control. Removing an item does the same but from the listbox to the dropdown.

Here is the web page snippet:

<asp:Content ID="newJobContent" ContentPlaceHolderID="mainContentArea" runat="Server">
<atlas:ScriptManager ID="scriptManager" runat="server" EnablePartialRendering="True">
</atlas:ScriptManager>
...

<div id="artist_area" style="border: solid 1px black">
Artist(s):
<atlas:UpdatePanel ID="panelArtistDropDown" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlArtist" runat="server" CssClass="control" Width="150">
</asp:DropDownList>
<asp:ListBox ID="lstArtist" runat="server" CssClass="control" Rows="4" Width="200"> </asp:ListBox>
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID="btnAdd" EventName="Click" />
<atlas:ControlEventTrigger ControlID="btnRemove" EventName="Click" />
</Triggers>
</atlas:UpdatePanel>
<asp:Button ID="btnRemove" runat="server" OnClick="btnRemove_Click" Text="<" />
<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text=">" />
<asp:CustomValidator ID="valCustArtist" runat="server" ClientValidationFunction="CheckArtist" ControlToValidate="lstArtist" ErrorMessage="You must select an artist(s)." ValidateEmptyText="True"></asp:CustomValidator>
</div
And here's the server side code:

protected void btnAdd_Click(object sender, EventArgs e)
{
ListItem li = new ListItem();

li.Value = ddlArtist.SelectedItem.Value;
li.Text = ddlArtist.SelectedItem.Text;

lstArtist.Items.Add(li);
ddlArtist.Items.Remove(li);
}
protected void btnRemove_Click(object sender, EventArgs e)
{
ListItem li = new ListItem();

li.Value = lstArtist.SelectedItem.Value;
li.Text = lstArtist.SelectedItem.Text;

ddlArtist.Items.Add(li);
ddlArtist.Items.Remove(li);
}

Here's the problem... in IE6 I can add or remove 2 items. On the third try the browser will hang. The code behind is never called. The only way to get control back is to refresh the page. With FireFox everything works great. Very strange. Has anyone experienced this? Any help would be appreciated.I've tracked down the problem. Seems like a third party tool that we use (BasicDatePicker) is causing the problem. When we remove the third party control IE works as it should. Frankly I'm not too surprised because BasicDatePicker generates a ton of javascript. Looks like I'll be coming up with a new date control ;)

atlas updatepanel and web parts

Hello All,

Has anyone gotten the atlas update panel working in a webpart? I have a panel that is within a web zone, that has an updatepanel. The panel houses a Gridview. I cannot seem to get the update panel to work properly. I'm trying to do a sort without doing a post back. If I take the exact same Grid out of the web zone, and place it somewhere else on the page, it works fine. Anyideas?

thanks

Hi,

I've tried to build an example similar to yours and the GridView sorts ok, everything seems to work in my case. Which problems are you experiencing?

Hi, this is a old post, hope you can still get the message.

I still can not find out what April CTP does for updatepanel in webpart. UpdatePanel need to be load befire page initcomplete, but at that stage, the webpart state has not been restored by WebPartManger, so how should they work together?

thansk


I found personalizationBlob is loaded before webpart pageinit, so it looks like the webpart state can be stored earlier so all controls in a webpart can be load in pageinit. It seems an easy solution.

Could anyone point out what is the real problem?


In the current version of Atlas, you cannot place an UpdatePanel inside a WebPart. The only supported combination of WebParts+UpdatePanel is that you place all WebParts controls inside a single UpdatePanel.

-Mike

I have tried the precise scenario of putting a web part zone inside an update panel. In this web part, I add dynamic web part controls (including user controls with GridViews on them). If I add a user control statically, everything seems to work, but once I try to use LoadControl() along with WebPartManager.CreateWebPart() and WebPartManager.AddWebPart(), I have problems with postbacks not happening as they should--especially during the sorting of a GridView.

This seems to be a common theme in discussions, but I have not found any good answers to date. Am I missing something? Or is this something to be addressed in a future release?


As far as we know, everything should work if *all* your WebParts controls are in a *single* UpdatePanel. The most common mistake is placing some WebParts controls (like the WebPartManager) ouside the UpdatePanel.

Second, please make sure your scenario works on plain ASP.NET 2.0 without Atlas.

If you are still seeing an error that only happens when UpdatePanel is involved, please post the smallest code needed to reproduce the issue. Thanks.

-Mike

ATLAS update panel slower when using dial up

First let me start with I love ATLAS it definitely makes the web suck less.

I have a page with an ATLAS update panel around 3 dropdownlist boxes that are dynamically populated based on the previous selected dropdownlistbox. In the broad band world this works outstanding. On dial up however it is actually slower to use the updatepanel than to do a full post back. 15 seconds for a full post-back, 25 for just one dropdown. Any ideas, I already tried asking the customer to get broadband, that did not go over well :-)

ajax is web 2.0 stuff. And web 2.0 is born upon broad band, but not upon narrow band. If your customer want to use dialing to go online, you should persuade them to give up the idea of using altas.
Interesting answer, But I think it is flawed. First off AJAX has nothing to do with asp.net 2.0, and if I write this using AJAX I do not have a performance problem. However if I chose to use an ATLAS updatePannel I do have the performance problem. Is there a bug, perhapps with the ATLAS framework or have I missed a setting?

Saturday, March 24, 2012

Atlas Tools missing in VS2005 Toolbox

I have installed Atlas on a WinXP SP2 with VS2005 Standard. I have created an Atlas Web site using the template provided in VS2005, but I do not have any of the Atlas Tools showing up in the toolbox. I tried to add them in the usual way, adding a tab and then adding the tools to that tab, but no go, they do not appear. Can anyone help me get these tools to show up?

Are the controls "checked" in the Choose Toolbox Items dialog?
Can you give me a little more information? When you are on the choose toolbox items dialog box are the controls showing up? Are they there, but when you check their check box they still don't show up? If both of these things are true, have your tried resetting your toolbox?

jonesf222:

I have installed Atlas on a WinXP SP2 with VS2005 Standard. I have created an Atlas Web site using the template provided in VS2005, but I do not have any of the Atlas Tools showing up in the toolbox. I tried to add them in the usual way, adding a tab and then adding the tools to that tab, but no go, they do not appear. Can anyone help me get these tools to show up?

Hi, I am also having the same issue as yours. Were you able to fix it? Please help. Thanks.

blumonde


orphicfireball:

Can you give me a little more information? When you are on the choose toolbox items dialog box are the controls showing up? Are they there, but when you check their check box they still don't show up? If both of these things are true, have your tried resetting your toolbox?

Hi Orphic, I finally got it to work now. Thanks for the response.

blumonde


What was it?

Yes, what was it. All of us who still not have the things show up in the tool-box. What to do ? I have tried reset, restarted the computer and so on. How do I do to solve this problem ?? thanks for an answer


add the items manually to the toolbox.

Browse to the exact location and add the controls to the toolbox.

It seems to work fine for me.


thank you Kate, You know I am new to Atlas, so could you (or anybody else) be so nice and give me a hint of what the location could be called (in a standard installation) and what the controls should be called, more or less, in a standard installation.

Go to ToolBox.

Right Click Choose Items

In the .NET Framework Components click browse and once you install the atlastoolkit there will be a directly where the dlls


AtlasControlToolKit.dll and Microsoft.Web.Atlas.dll

If you select AtlasControlToolKit then the controls are highlighted and checked in the components list, click OK then the controls will be added to the toolbox.


Sorry for my late response.

There are two ways to do it. You can do it as Kate1234 suggested or you can use your file explorer to get to the installed default directory below and then drag and drop the dll file "Microsoft.Web.Atlas.dll" onto your toolbox panel. To group the controls, make sure you add a tab called "Atlas" to the toolbox(rightclick) first.

C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727\Atlas

blumonde

Atlas Toolkit WEB Server Deployment Issue

Hi,

Not sure if I am heading down the right track here (could be a totally unrelated issue) but hoping someone can put me on the right path.. Following are the steps I have taken...
developed a web app on my local machine using Atlas.NET and the Atlas toolkit that has been made available, using the VS.NET 2005 dev environment.on local machine using the built in web server that is packaged with Visual Studio, my app works fine.I have copied the app to a web server, ran the AtlasSetup.msi on the server (server does not have VS.NET 2005 installed on it - just on my machine).Open the app from the server from my local machine (using the locally installed VS.NET 2005) and get issues relating to the Atlas control toolkit - such as Element 'modalpopupextender' is not a known element. This is a standard accross all the toolkit elements I have used.
This is where I am stuck. I thought I would have to install something from the toolkit on the server but cannot find anything on this (I have looked) but it all seems geared around enablement within VS.NET 2005.

Does anyone know how to have my application recognise the toolkit components I have used or are these issues caused by something completelky different.

Thanks....I think you also need to be sure that AtlasControlToolkit.dll and Microsoft.AtlasControlExtender.dll from the Atlas Control Toolkit (SampleWebSite\bin) are present in your web server's bin directory along with Microsoft.Web.Atlas.dll.
Thanks for the response David. Unfortunately I dont think that is it as these files are already present on the WEB server (in the BIN directory). Im sure its something simple I am not doing but as yet nothing is coming to mind (I am new to a lot of this stuff so thats not surprising). Any other ideas?
You could try using VS 2005's "Publish Web Site" to publish your site to the web server in a different location - if that works (and it should since it works for you with VS 2005!), then maybe that'll help you identify the problem with the original location?
Thanks again David.. Did the trick (well, sort of).. Not getting the errors now but part of the application connects to an Oracle database and am gettingaSystem.Data.OracleClient.OracleException: ORA-12541: TNS:no listener. This came after sorting out an issue related to the security on the Ora92 folder on the server - fixed that through some guidance from various forums but are now stuck with this TNS No listener issue..

This is quite strange (to me anyway) as I can log onto the server where the application is installed and connect to Oracle through Sql+ (using the same credentials as used in my application). I also can run the application on my local machine without any issues so I know my connect details are OK. So although the error sounds a bit like a red herring, we are trying to pinpoint any issues with the Oracle software on the server? A bit lost..

Anyways - thanks again, you have been a big help...