Showing posts with label update. Show all posts
Showing posts with label update. Show all posts

Wednesday, March 28, 2012

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.

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 UpdatePanel in MasterPage but the page refreshes completely.

I have used atlas script manager and atlas update panel in Master Page.

My scenario is not to refresh my header,the content place holder will have the dynamic content.This operation works well in Mozilla browser.

But when i select a menu in header the page get refreshed in IE browser,but this is not happening in Mozilla browser.

May i know what is the problem getting refreshed with IE.

Have a look at this tutorial about Using UpdatePanels in Master Pages:http://asp.net/AJAX/Documentation/Live/tutorials/UsingUpdatePanelMasterPages.aspx

Without seeing your code, it's tough to know what's going on...

-Damien


I have used AtlasControlToolKit.DLL and its corresponding Dlls

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

</atlas:ScriptManager>

<atlas:UpdatePanelID="upPortal"runat="server"RenderMode="Inline"Mode="Conditional">

<ContentTemplate>

<CustomWebPart:PortalWebPartManagerID="HomeWebPartManager"runat="server">

</CustomWebPart:PortalWebPartManager>

<asp:ContentPlaceHolderID="ContentPlaceHolder1"runat="server">

</asp:ContentPlaceHolder>

</ContentTemplate>

</atlas:UpdatePanel>

My Page gets refreshed even after having update panel in MasterPage.

The Page refresh only for IE browsers and in Mozilla the page is not refreshed and please guide me what is the problem how to resolve this.

I have added the page in my Testing Server . please view the output and get me out of this issue resolved

http://221.134.108.199/Theforum/authentication/userlogin.aspx

Thanks

Navya Jeevan


You are saying you used atlas Update Panel

I think it is older version of AJAX, use latest version

http://asp.net/ajax/documentation/live/tutorials/UsingUpdatePanelMasterPages.aspx


You can get the latest release here:http://www.asp.net/ajax/default.aspx

-Damien

ATLAS Updatepanel bug ?? character underline

I have a problem with de "_" character in the January Pre -Release

For example if i have a update panel with id ="updatepanel_calendar"

The panel not be found in postback cause then panel id change to update&calendar

I have the same problem if i have de update_panel into a user control with underline charater

for example: uscr_ticket

meybe its me the problem, but i dont know

anyway im very happy working with atlas

thanks...

Pd: sorry my bad english ...jeje

;)

Hi,

yes, it is a known problem; you should avoid to put an underscore in the UpdatePanel's id. This will be fixed in the next release.

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 progress

I have page with large execution time, so I use updateProgress to show the user, taht the page is still calculating:

<atlas:UpdateProgress ID="up" runat="server">
<ProgressTemplate>
<div class="progress">
<img src="http://pics.10026.com/?src=../images/indicator.gif" />
Calculating...
</div>
</ProgressTemplate>
</atlas:UpdateProgress
I would like that user see the indicator as long as the server is calculating results .
But when 90 seconds is passed, my indicator is gone and user thinks that
calculation is done.
If I remove atlas, than page is generating 3 minutes(server.scriptTimeout is setted to 1000 seconds).
Any idea how to enlarge execution time of atlas update progress?

Regards,S

Hi there,

The timeout period for async postbacks with UpdatePanels is currently hard-coded to be 90 seconds. I don't know of any workaround in the CTPs, though this issue will be addressed in Atlas 1.0.

Thanks,

Eilon

Atlas Update Problem

Hi!, I have a page with a image background, and a image fill table, when viewing it in IE and the update panels triggers, the image background disapears when using IE but the same page viewing it in Firefox doesn't do that...

the webpage is this one:

www.cantinadoimbriaco.com/congelados/produtos.aspx

can some one help in what i'm doing wrong... thanks...Hi,

which image background is disappearing? It seems OK on IE for me.
Well it has a image background, and the menu has a fill background, as well as the submenu has an image background...

When changing to another submenu category the image of those backgrounds disapears, viewing it in IE... does any one sees it or just me?

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?

Atlas update panel request timeout

I have annoying problem. Page has EnablePartialRendering="true" and several Update panels. Page works fine if Request is short, bit some time it can take up to 5 minutes to finish respond, and in this case, page does not return anything. I guess it has to be some TimeOut async request reaches. I tried to set <pages asyncTimeout="600"> - it does not help. Would appreciate any advise.

hello.

use the scriptmanager's AsyncPostBackTimeOut property to define the timeout associated with a partial request.


You may also consider manually calling the update panel .Update() - if its a long request and on the browser side its taking awhile - you could do this:

<Update Panel>

<Panel id="pnlForm" >

insert control here or whatever

<Panel if="pnlStatus">

Display message will take a while - do not navigate from page...

write a short javscript method that when you know it will be a long request... will toggle on the postback the second panel...I suggest using the style='display:none' instead of the .net visible = true or false...

Then in code behind do your work and at the end reissue the css style select to trigger them back to original status...and then call the updatepanel.Update()...

That may work as a solution for something of that time period...Since we are talking asynch - and you have other update panels - this should theoretically allow other stuff to happen - and still handle your first request.. I don't know for sure if that will work

I have noted that even setting the asynch timeout - with IE in particular it will not process a direct postback after x period of time...

But - I do think a better solution - is to figure out why it takes 5 minutes to perform something for a web client. If its a report generation - then the best thing to do is write kinda a job queue that stores the results - and has a status flag it updates... then on the web client poll the job status and when available trigger the update for the update panel...


Hello

I don't see AsyncPostBackTimeOut among ScriptManager properties.

Thanks


If you are using Atlas - I don't think that property existed - its a property of the new Beta however...

Atlas update panel problem

Hi,

I have page which main content is generated with function which returns HTML string:

<table>
<

tbody><tr><tdvalign="top"align="left">
<%=_contentOfPage%>
</td></tr></tbody>
</table>

Ant the function in code behind looks like:

public

string _contentOfPage;
publicvoid getContent(Int32 nDays)

{

String content;

content=.....//here is logic, which define content of the page

.......

_contentOfPage=content;

}

Everything works fine.

Because page has a lot of menues which I don't wont to refresh on every page submit, I included atlas update panel, which refresh only the main content of the page. It works with atlas too, page doesn't blink and only the main content is refreshed on page submit, like I wanted. But the interesting here is that refreshing only the part of the page(main content) takes about 3 seconds, while on the other hand, refreshing whole page takes only 1 second.
On all other pages, refreshing only content of the page works much faster, but here not. Any idea why?
Maybe because the length of _contentOfPage string is about 10000 signs or more?

Regards,S

HI,
as per my guess you are using lots of string concatenations to create the _contentOfPage,
that will take much of the server time,
try using stringBuilder which will be quite faster than the normal string concatenation

hope this will help
satish

Hi,

all I'm using for string concate is + sign between many if statements.
Maybe string builder is faster but the problem is not on the server.

The function on the server generates string in miliseconds.

The problem is obviously on client side.

Atlas call this method from client to server with ajay technology(XML HTTP) and than replace part of page on client with new string which gets from the server.(I think with INNERHTML method or similar).

If string is very long, like in my case, that procedure is slower than refresh a whole page.

I don't know if that is a rule or I missed something? Any idea?

regards,S

Atlas Update Panel DropDownList

I have a dropdownlist which has around 2300 items and is placed inside an EditTemplate of a DetailsView.

When i change the mode to edit, the detailsview does not change the mode and no error is shown. It silently stops updating. If i have lesser number of items in the dropdown it works.

I have tested the controls outside the updatepanel to check if there is anything wrong with my code, but that works fine. I also tested the dropdown outside the edit template but inside a updatepanel it works. It happens only in a edit template. Works within an item template also.

Did anybody have a similar issue?? I very much think it is a bug in the Updatepanel and i have been using updatepanels extensively. The biggest trouble is, this issue could happen after the app goes live and data keeps accumulating.

Datasource is objectdatasource; also tried with SQLdatasource(no luck).

PartialRendering is on. (If it is switched off it works).

UpdatePanel mode is conditional (Making it always doesnot work)

Filling the items of dropdownlist in the dropdownlist_prerender (without a datasource) also gives the same error.

Id there any property that i am missing somewhere??

Best regards,

chandrakanth

Is this some kind of sync issue between the trigger event and update itself since you have 2300 items?Exactly how are you using the dropdown within the edit template? Are the values used in the update process some how?

The drop down has key-value pairs with keys as Ids and values as the designations. The Id is bound to a field of the datasource. I havel also removed the binding between dropdown and the datasource field, making it a simple dropdown with a datasource having 2300 items, and the mode does not change yet.

These values are not used anywhere in the update process.

Since the event is raised by a control inside the update panel, i am not using any triggers.

I have even tried to make everything from scratch in a test page to rebuild the issue.(Inorder to remove any effects of other controls on the updateprocess. No luck again.

chandrakanth


Some more updates on the update panel issue.

The dropdown works as long as the size is less than or equal to 894. Anything more than that which as is in my case the issue shows up. Any suggestions with a workaround for this?


Figured it out.

The issue was with the data. Data having some non ascii characters was behaving in that manner.

hope it helps others who might have a similar issue.

chandrakanth

ATLAS Update panel does not update if & is in the page title

If you are experiencing a problems with the update panel not updating after an ATLAS postback, be sure to check if there are any '&' characters in your page title. Recently I came accross this and it took me ages to figure out why the AJAX stopped working!

After replacing the '&' with '&' it all works good again ;)

Hi,

I work actually on an atlas project, and i had the same problem with the titles of my contents pages.

Replacing '&' with '&' doesn't work for me...

Instead, I use the Master title for all my content pages... :)

I think the title must be a part of the identification in callback...

Search these forums and you will find lots of information on needing to escape (CDATA) the head element.

Atlas Update Panel Content Template

Hi All,

I want to generate update panel dynamically.

I am using the following code to do that

UpdatePanel

panel =newUpdatePanel();

panel.Mode =

UpdatePanelMode.Conditional;ControlEventTrigger obj =newControlEventTrigger();

obj.ControlID =

"Button1";

obj.EventName =

"Button1_Click";

panel .Triggers.Add(obj);

I want to know how shall we add the controls to the content Template dynamically for the update panel.

Regards,
Techwork

Hello,

myUpdatePanel.Controls.Add( myGridView );

I hope this will work.


Hi,

I had already tried that. It will not work.

We need to add the controls to the content Template of the update panel and not the update panel.

Regards,

Techwork


Hi All,

I am using the following code to do the dynamic update panel.

UpdatePanel panel =newUpdatePanel();

panel.ID =

"panel";

panel.Mode =

UpdatePanelMode.Conditional;

panel.ContentTemplate = Page.LoadTemplate(

"~/UpdateUserControl.ascx");UpdateUserControl user =new UpdateUserControl();ControlEventTrigger obj =newControlEventTrigger();

obj.ControlID =((Button)user.FindControl("Button1")).ID;

panel.Triggers.Add(obj);

I am not getting any error but when I run this page the usercontrol is not loading.

I have the scriptamanager in the page. I have written this code in the Page_Load() event of the page

Do I need to do soem more things other than this?

where exactly I am going wrong?

Regards,

Techwork


Firs you have make yourself a UpdatePanelContent class. Make it a inner class within the class holding the updatepanel.
Note, the only method you need to declare in this class, additional to the constructor, is the instantiateIn . Required by the ITemplate interface

publicclassUpdatePanelContent :ITemplate

{

publicControl m_Control;

public UpdatePanelContent(Control controlToAdd)

{

m_Control = controlToAdd;

}

publicvoid InstantiateIn(Control container)

{

container.Controls.Add(m_Control);

}

}

--Now you can instantiate your panelcontent as shown.
Add your hook, page or whatever controlcollection to the panelcontent trough the updatepanelcontent contructor.

UpdatePanelContent panelContent =newUpdatePanelContent(your_control_collection);

the_updatepanel_instance.ContentTemplate = panelContent;

Regards Knut Dullum

Atlas Update Panel

I have an Update panel and I want to Update it on th server code when an Event occure.

How can I do this?

when I use Update1.update();

my update panel dont Update;

please help me!!!!!

Make sure you have a script manager on the page

<atlas:ScriptManager runat="server" EnablePartialRendering="true" ID="updateManager">

You need to wire up a button to the update panel with the Triggers tag. Ex:

<atlas:UpdatePanel ID="atlasPanel" runat="server" RenderMode="Inline" Mode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="drpCountry" runat="server"
DataTextField="DESCRIPTION" DataValueField="PK" AutoPostBack="True">
</asp:DropDownList>

<asp:DropDownList ID="drpProvince" runat="server"
DataTextField="DESCRIPTION" DataValueField="PK" AutoPostBack="True">
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID="btnReload" EventName="Click" />
</Triggers>
</atlas:UpdatePanel>


Check UpdateMode property, set it to "Conditional". Register your control in Page_Load method

ScriptManager1.RegisterAsyncPostBackControl(ControlName);

Let me know if this helps you


thanks for your help

but i want updating occur when a Event is occur

for example i want when sqlnotification event is occur my gridview will update Automatically

in my code i use SqlDependency and SqlDependency Rise an Event (onchangedataSource)

i want update my GridView in this time

excuse me i can't write english good


Hi,

Please note that UpdatePanel is used for events that originates from a page. If the events isn't from a specific page, then the updatePanel isn't able to update the contents on a page.

You may add a timer on the page and use it to fire events continuously on current page. And in the tick event handler of the timer, update the Gridview if necessary.

Hope this helps.


Thanks for your help.

and one more questuin:

i want emplement a web chat like Gmail web Chat what is the best Course of implemention for this kind of web chating?


I think it can be done in this way:

1. add a hiddenField on the page to keep the latest time of messages on current page

2. use window.setInterval to call a web service periodically and pass the latest time as the parameter

3. the web service returns all messages that is created later then the parameter

4. use javascript to display those results on the page



Thanks for Yor help

Atlas update panel

I have atlas update panel which works perfect for couple of hours or even a day or two.

Then it stops render part of page when trigger fires submit.

Just render nothing.

And that happens on all of my pages, where I use atlas.

What that could be?

I tried to create and define triggers in page_init event but still the same.

And I can't even test this behaviour because on the beggining it works.

Otherwise, I have to remove atlas from all pages because my users are complaining.

Any idea?

regards,Simon

Got a question, maybe not even related. When you see the problem is the session timeout? Got a problem before with the session.

Atlas update control doesnt refresh the gridView content

I have atlas update panel with mode=conditional which means that it should refresh the gridView only when trigger is fired.

I create a trigger which fires when selectedValue is changed on dropdownlist.

But gridView is refreshed only first time, when dropDownList is changed. All other changes in dropDown - gridView remains the same. AnyBody know why?

If I change Mode to always than gridView is refreshed on every dropDown change.

Here is the example:

<

asp:DropDownListID="DropDownList2"runat="server"AutoPostBack="True"><asp:ListItemValue="False">Active</asp:ListItem><asp:ListItemValue="True">Completed</asp:ListItem></asp:DropDownList>

<

atlas:UpdatePanelID="p1"runat="server"Mode="Conditional"><ContentTemplate><asp:GridViewID="GridView1"CssClass="gridView"AlternatingRowStyle-CssClass="even"GridLines="None"runat="server"AllowPaging="True"AllowSorting="True"AutoGenerateColumns="False"DataKeyNames="taskID"DataSourceID="ObjectDataSource1"><Columns><asp:CommandFieldShowEditButton="True"/><asp:BoundFieldDataField="name"HeaderText="name"SortExpression="name"/><asp:CheckBoxFieldDataField="complete"HeaderText="complete"SortExpression="complete"/></Columns><AlternatingRowStyleCssClass="even"/></asp:GridView></ContentTemplate><Triggers><atlas:ControlValueTriggerControlID="DropDownList2"PropertyName="SelectedValue"/></Triggers></atlas:UpdatePanel>

Regards,S

hello.

does this page work there:

<%@. Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:DropDownList runat="server" id="drop" AutoPostBack="true">
<asp:ListItem Text="True" />
<asp:ListItem Text="False" />
</asp:DropDownList>
<atlas:ScriptManager runat="server" id="manager" EnablePartialRendering="true" />
<atlas:UpdatePanel runat="server" ID="panel">
<ContentTemplate>
<%=DateTime.Now.ToString() %>
</ContentTemplate>
<Triggers>
<atlas:ControlEventTrigger ControlID="drop" EventName="SelectedIndexChanged" />
</Triggers>
</atlas:UpdatePanel>
</form>
</body>
</html>


Hello,

yes, your example works.

In fact if I change value trigger with event trigger then my example also works.

Replace:


<atlas:ControlValueTrigger ControlID="DropDownList2" PropertyName="SelectedIndex" />

with

<atlas:ControlEventTrigger ControlID="DropDownList2" EventName="SelectedIndexChanged" />

What is wrong with ControlValueTrigger? I found this example at your page from video demonstration.

Regards,Simon


hello.

i think that replacing the controleventtrigger with the controlvaluetrigger still works in the code i've posted previouslly...doesn't it tun there when you use that trigger?


If I use your example with:

<atlas:ControlValueTrigger ControlID="drop" PropertyName="SelectedValue"/>
OR
<atlas:ControlValueTrigger ControlID="drop" PropertyName="SelectedIndex" />

It works only when selectedValue is not True, so, when you not select first option.
So, it refresh time every second attempt.

If you add more options into your example:

<asp:ListItem Text="True"/>
<asp:ListItem Text="False"/>
<asp:ListItem Text="Test"/>
<asp:ListItem Text="Test1" />

it works for all other options too, only if selectedIndex>0(if selectedValue<>"True").
Why?

Thanks,Simon


hello again.

are you saying that changing from true to false causes a partial postback but changing from false to true doesn't? that's not what i'm seeing here...btw, i've used this:

<atlas:ControlValueTrigger ControlID="drop" PropertyName="SelectedIndex" />


Yes, that is exactly what is happening.

First I change value to false and partial postback is happened.
Then I change value to True, no partial postback.
Then I change value to false, partial postback is happened.
Then I change value to True, no partial postback.
and so on...

Every change of dropdown to first choice(selectedIndex=0) creates no postback.

My code is exactly the same as yours.I copied it from here.
No master page, no any other code.
I install atlassetup.msi from

http://www.microsoft.com/downloads/details.aspx?FamilyId=B01DC501-B3C1-4EC0-93F0-7DAC68D2F787&displaylang=en

and create empty atlas web project.
Create test page and put your script into it.

Any idea? I can send you my web.cofig file and my page if you want.

Regards,Simon


hello again.

just to be sure, here's the code i'm running:

<%@. Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:DropDownList runat="server" id="drop" AutoPostBack="true">
<asp:ListItem Text="True" />
<asp:ListItem Text="False" />
</asp:DropDownList>
<atlas:ScriptManager runat="server" id="manager" EnablePartialRendering="true" />
<atlas:UpdatePanel runat="server" ID="panel">
<ContentTemplate>
<%=DateTime.Now.ToString() %>
</ContentTemplate>
<Triggers>
<atlas:ControlValueTrigger ControlID="drop" PropertyName="SelectedIndex" />
</Triggers>
</atlas:UpdatePanel>
<%=DateTime.Now.ToString() %>
</form>
</body>
</html>


Hello,

well my code is exact the same only that I use code behind.

So, only difference is top most line:
<%@.PageLanguage="C#"AutoEventWireup="true"CodeFile="test.aspx.cs"Inherits="test" %>

Do you know, how to include atlas into existing web application? Set references to atlas.dll and what else?

When creating new web site it's simple, just select atlas web site.

Regards,Simon


hello.

well, normally you must also add some entries on the web.config. if you look at the your atlas installation path, you'll find a web.config file that has the necessary entries. copying those entries to your web.config should be enough. you might also need to configure IIS if you're using bridges and you have not installed atlas msi on the server that is hosting your app.

Saturday, March 24, 2012

Atlas timer control question

I have two Atlas timer controls on my page. The first one I have a label that updates a tip every 5 seconds. I put the update information in the page load event and not it is working great, I cache even cache the datatable with the hints to improve the performance even more.

Now I have users who sign in. Every 15 minutes, I want to check to see if they are still valid. I would like to use the second Atlas Timer control to do this. How can I a sub to fire to verfiy the user is still good from the timer? I do not want this timer to hit the page load event.

Anyone with any ideas?

Thanks, Chester

I can't believe I am the only person having this problem with the timer control in Atlas. I at first thought that it may be the placement of the timer control, so i have tried various positions on the page. On the timer interval it appears the page is reloading because I have a login password and user ID and if there is anything in the password text box when the tip changes on the timer interval, then the password field is emptied. I guess I will just not use the timer control because it appears to not be perfected yet.

Chester


I have a similar problem too with timers. I'm using two timer controls in a asp.net page. I have two update panels, each timer is inside each update panel. Apparently, only 1 timer can execute the code behind even i've placed code behind to each of the timer's tick event. If I put the first timer interval's 1000, and the second one to 1500, only the first one executes. If i change the first timer to 2000 and the second remains at 1500, only the second one excutes. Anyone has any idea?

cheers


When the first timer fires, the interval for the second timer would be reset. So how would you see the second timer firing. (Only the smaller interval from the two would fire)
vineetc

atlas textBox in to a update panel

hi i have this update panel, but it isn′t workig, adn i don′t know why, me by is becouse the attributes, tha i put on the textbox,

please i need help

Thanks

<%

@dotnet.itags.org.PageLanguage="C#"AutoEventWireup="true"CodeFile="Borrar1.aspx.cs"Inherits="Borrar_Borrar1" %>

<!

DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

htmlxmlns="http://www.w3.org/1999/xhtml">

<

headrunat="server"><title>Untitled Page</title>

</

head>

<

scriptlanguage="javascript"type="text/javascript">

<!--<![CDATA[

function intOnly(i)

{

if(i.value.length > 0)

{

i.value = i.value.replace(/[^\d]+/g,

'');

}

}

]]>-->

</

script>

<

body><formid="form1"runat="server"><atlas:ScriptManagerID="ScriptManager1"runat="server"></atlas:ScriptManager><div><atlas:UpdatePanelID="CountryCode"runat="server"RenderMode="Inline"><ContentTemplate><asp:TextBoxID="NumericCountryCode"runat="server"AutoPostBack="True"Columns="3"CssClass="textbox"MaxLength="3"OnTextChanged="NumericCountryCode_TextChanged"></asp:TextBox><spanid="CountryName"class="textbox"></span><asp:LabelID="lbCountryName"runat="server"CssClass="labelCountryFound"></asp:Label></ContentTemplate><Triggers><atlas:ControlEventTriggerControlID="ddBusiness"EventName="SelectedIndexChanged"/></Triggers></atlas:UpdatePanel></div><asp:DropDownListID="DropDownList1"runat="server"></asp:DropDownList></form>

</

body>

</

html>

using

System;

using

System.Data;

using

System.Configuration;

using

System.Collections;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

public

partialclassBorrar_Borrar1 : System.Web.UI.Page

{

protectedvoid Page_Load(object sender,EventArgs e)

{

*NumericCountryCode.Attributes.Add(

"onChange","intOnly(this);");

NumericCountryCode.Attributes.Add(

"onkeypress","intOnly(this);");

NumericCountryCode.Attributes.Add(

"onkeyup","intOnly(this);");

}

protectedvoid NumericCountryCode_TextChanged(object sender,EventArgs e)

{

lbCountryName.Text =

"Funciono atlas";

}

}

Hi,

By seeing your code, I could understand the atlas Script Manager tag missing an attribute "EnablePartialRendering".Include this attribute and set the value to true and try running. May be it work.

Regards,


I all ready tried EnablePartialRendering ="true", but it dosn′t work eather.


Please, i realy need help fixing this bug,

Thanks


hello.

not sure on what you want...if you want to cause a partial postback when the value of the textbox changem then you have to set the enablepartialrendering to true (scriptmanager) and set the autopostback to true (in the textbox).


Hello, what i am trying, is when de dropdown list change, cause a partial postback, seting the label = "lbCountryName".

i thik its because the atributes, i am, seting on the page load event on the control,
but if it true, then i can not set javascript atributes, to the controls when they are in the update panel?


hello again.

well, then set the autopostback to true on the dropdown (and, of course, set the enablepartialrendering to true too).

Wednesday, March 21, 2012

Atlas Showstopper - Pass Control Back to Page JS after Update Panel Execution

I need to be able to pass control back to page JS after update panel execution. As far as I can tell right now, this is a critical requirement that will strongly affect my ability to utilize Atlas.

(The specific use case is described inhttp://forums.asp.net/thread/1356742.aspx)

Any help with this would be appreciated.

Thanks!

Hello?!?

This is a either major architectural consideration, or a feature that I have overlooked.

Either way, it's holding me up from completing my design, and the default is "Don't use Atlas".

I've asked this question in a number of forums and have drawn a complete blank.

I'd like to see MS Atlas experts step up and provide a response.

Thanks!

ATLAS replacing redered control ids incorrectly

I have multiple update panels on a page. When i fire a control event inside one of these panels, i get an alert window saying something like:

"An async postback was caused by a control within $ctl0$myPlaceholder$myUpdatePanel . . . but the update panel could not be found on the page."

when i view the source in my code, however, the actual id or name of the div that is the rendered updatepanel is "_ctl0_myPlaceholder_myUpdatePanel".

I am not sure why this is happening. has anyone seen this before? suggested fixes?

Hi,

you should view posts at:

http://gregdotnet.blogspot.com/ - about web.config element xhtmlconformance and
http://forums.asp.net/thread/1211330.aspx - about naming the controls

Basicly what you need to check is that if you have any dynamicly added controls assign them id's when they get added to the controls collection. This way the control id's at runtime don't get rendered with ctl04_ and such. Worked for me.