Showing posts with label control. Show all posts
Showing posts with label control. Show all posts

Wednesday, March 28, 2012

Atlas with FreeTextBox

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

Chierici

Hi,

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

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

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

Atlas with Caching

Hi,

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

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

Can some one assist please?

Regards

Raj

hello.

there was a bug when updatepanels were used with caching:

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

Atlas with 3rd party controls

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

Thanks

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

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

We are investigating such issues ..


Hi,

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

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

Does anybody know of any work-arounds?

Thanks,
Tiffany

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

Monday, March 26, 2012

Atlas User Control transparence

Hello.

When using Atlas UpdatePanel in User Control, then is this User Control transparent. Why?

hello.

what do you mean by transparent?


This is code of Web User Control:

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

<asp:PanelID="Panel1"runat="server"Height="50px"Width="125px">

<atlas:UpdatePanelID="AtlasPanel1"runat="server">

<ContentTemplate>

<asp:CalendarID="cldCalendar"runat="server">

</asp:Calendar>

</ContentTemplate>

</atlas:UpdatePanel>

</asp:Panel>

<atlasc1:PopupControlExtenderID="PopupControlExtender1"runat="server">

<atlasc1:PopupControlPropertiesPopupControlID="Panel1"Position="Bottom"TargetControlID="txtDate"/>

</atlasc1:PopupControlExtender>

If I put this UC on Web Form and pick the date the Calendar is translucent.

Solution I found (not to say to a "problem"): Calendar needs some styling or it must be put into <DIV>, …

Atlas User Control bug Error rendering control

Hello

Help me with this two:

1. I'm using the latest Atlas July version and I'm getting error 'Error rendering control' in design when I want to use Atlas UpdatePanel in user control. After starting the application the control work fine.

2. If UpdatePanel is passing value from Calendar control to the TextBox control and TextBox property is read only – the value could not be read and vanish after postback.

Thanks for answer and keep up the good work and try with less bugs.

Hi Filip, for #2

As a workaround, you can trap event "Calendar_SelectionChanged" and save the value somewhere else. Also in this method, you can call

popCalendarPanel.Commit(txtDate, currentCal.SelectedDate);

which is how you can do something custom with the pop up result itself.


Thanks

I will try thisand post it back the results.

ATLAS used in UserControl. DropDownList problem

Hi everybody
I just modified my existing well working UserControl to use ATLAS's PopUp control.
The User Control has a Textbox, a calendar and four DropDownLists for Year, Month, Hour and Minute.
When a user clicks into the textbox, calendar with DDL's popup. If user clicks on a date, then the textbox is populated with new date.
But I do have problems when the user clicks on a DropDownList. As soon as the DropDownList opens and mouse is moved on it's items to select a new value, the panel containing Calendar and DDL's disappears.
It looks like the Atlas PopUp Control assumes that the focus was moved outside the control, But in reality the DropDownList is a part of the PopUp control.
How can I fix this?

Thanks in advance
Raja

I have the same problem using the Collapsable Panel with loading controls dynamically in the .aspx Page_Load event. When I Reorder the list, using the ReorderList control, the dynamically loaded controls disappeared.

It sounds like you're running into a general ASP.NET pattern - if you're dynamically adding controls, you'll need to re-add them after a postback as well.


My user control does not contain any dynamic controls and it works very well without ATLAS. I just think that ATLAS assumes the opened DropDownList itema as a new layer and so it thinks that the focus was moved from it's own PopUp panel and simply disappears.

Raja


Hi Raja,

I think your problem has to do with the way thePopupControlExtender handles theblur andfocus events. If you check out the code inPopupControlBehavior.js you'll probably see where things are going wrong. The good news is that we're looking at a better way of doing this and hope to release it in the next drop. For your current scenario though, you could modify the JavaScript code to only hide the popup when something outside it or the textbox is clicked.

Thanks,
Ted


I'm seeing the same problem in HoverExtender. The behavior that I see is that if the Panel's that's loaded is larger and outside of the region of hte target control ... then depending on where you click on the panel, you get diffeerent behaviors.

If I click on the DropDownList and navigate with the keyboard, the panel stays up.
If I click on the DropDownList and click on an item it goes way.

If I change the markup (in my case I'm dynamically generating within a template ... that's another story) to instead use a collection of RadioButtons, the panel is not dismissed.

--

In another panel I've got an embedded controller (the FlashPlayer). I've configured the flash player to not autostart (play=0). The only way to start playing is to click right. Doing so dismisses the hover panel.

Hi pstanhope,

I'm not able to reproduce this problem. Could you post a complete sample the demonstrates it? That would help a lot.

Thanks,
Ted

Atlas updatepanel triggered by user control event

I created a user control which has a imagebuttton in it, I then exposed the click event of the button to the page the user control was placed on using the following code:

Public Event ImageButton1_Click(ByVal senderAs Object,ByVal eAs EventArgs)Private Sub eventXYZ(ByVal senderAs Object,ByVal eAs System.Web.UI.ImageClickEventArgs)Handles ImageButton1.ClickRaiseEvent ImageButton1_Click(sender, e)End Sub

I can use this event from the ASPX page with no problems, however when I use the event as an Atlas trigger for the updatepanel the page always posts back. Is there any way to wire this event up to the upatepanel and avoid the postback (btw the user control was not added dynamically).

Any chance you've found a resolution to this? I'm having the same issue but with a dropdown in a user control....

Thanks.


hello.

well, not something supported out of the box...maybe this tip will help you:

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

Atlas UpdatePanel control is not working on a Microsoft CMS (MCMS) site page

Hi all,

I am really puzzled about the Atlas UpdatePanel control not working on a MCMS template page. Can someone please comment on possible fixes, issues related to using this control of MCMS? I am not very familiar with how the control work under the hood. Can someone pinpoint me where to find documentation on the internal workings of this control?

Here is what I have tried so far.

I followed the insertion of the javascript on the page_load event handler post on this linkhttp://blogs.technet.com/stefan_gossner/archive/2006/06/01/431687.aspx?CommentPosted=true#commentmessage

// register a client script that ensures that the action property
// is correct when AJAX tries to do its postback.
string script =
"\n<script type=\"text/javascript\">\n" +
" if (typeof (__CMS_CurrentUrl) != \"undefined\")\n" +
" {\n" +
" __CMS_PostbackForm.action = __CMS_CurrentUrl;\n" +
" }\n" +
"</script>\n";

Page.ClientScript.RegisterStartupScript(this.GetType(), "AdjustActionForAJAX", script);

However, no luck at all.

Here is a description of the behaviour after that Javascript insertion.

I try using the ATLAS:UpdatePanel control and it didn't work. The button on my page and the clicked results are wrapped inside the content of the UpdatePanel. In view mode, it still does a postback by refreshing the page. And in author mode, there are more problems. The edit link for the web author console will not show up when it is clicked.

Have anyone tried using the ATLAS:UpdatePanel control with a MCMS site.

The only post I found ishttp://forums.asp.net/thread/1335638.aspx
The person responded the following:

It was a painful lesson, but I was able to see multiple things that CMS did to break ATLAS.

- CMS writes a JScript block intercepts the ATLAS async post sent from the client and throws it on the floor. So, the client never gets the post back off the machine. Turns out using the DefaultConsole control is writing the additional JScript block. Needed for CMS editing of the page.

- When using the cms:RobotMetaTag control in CMS, it will cause the XMLDOM load to fail for ATLAS on the postback because of the '&' characters in a <BASE> tag. Plus there is a <META> with no closing tag. This control can be removed if you don't want to use the CMS feature.

We resorted to placing the ATLAS enabled page in an iFrame of a page that was done in CMS. Seems to work

This is still an issues with 1.0 RC.

Has anyone else been able to get the UpdatePanel to work with MCMS?


Here is what I finally came up with to adjust for the ugly CMS urls that was causing AJAX to reject the post backs from UpdatePanel. This is currently going through test, and I'm not sure if it broken FireFox, but this is what I have to get it work in IE.

// add this Script to handle the confusing between CMS and AJAX
string script = "\n<script type=\"text/javascript\">\n" +
"Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);\n" +
"function EndRequestHandler(sender, args) { \n" +
" if (typeof (__CMS_CurrentUrl) != \"undefined\")\n" +
" {\n" +
" Sys.WebForms.PageRequestManager._instance._form._initialAction = __CMS_CurrentUrl;\n" +
" }\n" +
"}\n" +
"EndRequestHandler(null, null);\n" +
"</script>\n";
Page.ClientScript.RegisterStartupScript(this.GetType(), "AdjustAJAXForCMS", script);


I figured out that this fix is for IE and is not needed for FireFox. Funny how the two browsers deal with this.

So I added a check for IE before I write the script block.


Does anyone have an update on this issue? I'm having the same problem and I was able to narrow it down to the RobotMetaTag object and the BASE tag that it appends.

Any help is appreciated.

Thanks,
Ahmed

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 to Ajax Control Toolkit

I have been reading the posts for Cascading Drop Down Lists for quite a few days now and trying to run the sample. However when I try to do the sample on my own I donot see the cascading drop down properties in the Behavior group of the Drop Down list. The video talks about some properties whereas the article of how to do it talks different.

Utterly confused. Also after copying the solution I can see a Method Error 500 which is not documented either. Any help would be appreciated.

Regards

Vinit

I believe the video and article (although not aware of the article - which is a gripe of mine - I hate the video tutorials as I do not watch them (not enough bandwidth and attention span - prefer just the copy and paste from articles method myself)... are based ON atlas and not the new Beta...

I have everything installed as per your directions. However I am unable to run the methods and everything seems to have changed. Not sure but after changing some namespaces I started getting the Method Error 500 and Method Error 12030. I can populate the Make drop down using the Page Method Webservice method but the other drop downs are not getting populated.

Moreover I found some post for adding the ScriptService attribute to the class which i did too but does not work :-(

Help appreciated


This usually means one of the following;

* Your method is not accessible (it's not public, it's not marked with ScriptService (class) or ScriptMethod(method))

* You've got the name of the service path wrong

* You've got the method name wrong

* The method name doesn't have the exact same parameters and parameter naming that the component is expecting


I'm having this problem, getting the Method Error 500. I have ScriptService and ScriptMethod in the proper places, my parameter names are correct, and I am calling the correct method name. Everything runs fine on my development machine, but when I copy the files over to my server it doesn't work. Is there something I should have on the server? I am reading a database using a dataset's table adapter. I have tried everything I've read on the posts. I've even tried just passing back bogus data from the method and not even reading the database, but I still get the same thing.

I did put the sample from the How do I series for the CDD and it worked fine. So why can't I even get to the web service if I can with the sample? I don't recall doing anything differently.

Please Help!


These all happen due to 500 or 12030 or both, please elaborate

I have given the physical path to my web service like this

<ajaxToolkit:CascadingDropDownID="CascadingDropDown1"

runat="server"

TargetControlID="ddlMake"

Category="Make"

PromptText="Select a manufacturer"

ServicePath="../WebSite6/Service.asmx"

ServiceMethod="GetCarMakes">

</ajaxToolkit:CascadingDropDown>

See the service path tag - Am i to give the name of the web service only? cause when i give the name, it says file not found (but it doesn't stop debugging & continue loading the project) - In this case, the error is 500 (when no physical address is given, only web service name)

Other wise when i give the physical path, it gives error 12030?

Can this ever work???????????????

atlas timer control with partial rendering -- HELP!

I have this code:

<

formid="form1"runat="server"><atlas:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"/><div><atlas:TimerControlID="AtlasTimer"runat="server"Enabled="true"Interval="5000"></atlas:TimerControl></div></form>

What happens is that every very seconds, I get a javascript alert on my screen that says "UNKNOWN ERROR".

I was just testing to see if a timer control would work with Partial Rendering turned on, like I've seen in lots of other examples... but I've tried this on 2 separate servers, tried re-downloading the framework and every time I get this error.

HELP! Any suggestions? I'm using the latest build of ATLAS.

ok.. well, I figured this one out. I guess if you don't have an update panel, then you'll get that error. You'll also get that same error if you have ANY "RESPONSE.WRITE"s in your page. It also doesn't like javascript on your page very much.

no fun.

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 Slow first time load

Hey guys,

I hope this is the right forum for posting this. I'm using Ajax 1.0 and the ASP.NET AJAX Control Toolkit.

The problem that I'm having is that the very first time I visit the page, or when the page has been sitting idle for 20 minutes, it takes about 25 seconds before it comes up. After it loads up once, I can refresh and it loads up within less then a second. I have enabled Trace output, and it tells me that the page is loading up in .5xxxx seconds, but from a users perspective when they hit the page, it takes 25 seconds. This happens with the ASP.NET AJAX Control Toolkit sample website as well.

I have set<compilationdebug="false">and it's had no effect. The server that it's on is a new Intel Woodcrest on a RAID 5, so it should be plenty fast enough. Compiling it in Visual Studio takes 1-2 seconds.

I'm not sure what's going on, but for about 23 of the 25 seconds there is no CPU utilization going on. Here is a picture of Task Manager to show what's going on. The stuff in the red box shows when I refreshed the page after I restarted IIS.

Free Image Hosting at www.ImageShack.us

Anyone have any ideas on what's going on during the 20 seconds of the CPU not doing anything?

Thanks,

-Will

Hmmm, that's a new one. Some questions. Do you see this behavior with a standard ASP.NET application? Are you sure the pause is on the server side and not the client side (e.g. is your browser proxy configured right, etc.)? Is the server busy doing something else? Maybe check disk activity during that 20s.

Thanks for the response.

I do not see it with a standard ASP.NET application, but I've only tried out a very basic application. I have tested this on 2 different web servers that we have. I get the same pause when I view it on a browser on the server, or on another computer targeting an Ajax Control Tooklit page. I have also looked at disk I/O as well during the pause. There is some but it's very minimal. I've disabled the Virus scanner to see if it's causing anything. The only things really installed on them, because I just built it, are Windows 2003 Enterprise Edition, Mcafee Virus Scan, IIS 6.0, Visual Studio 2005, Ajax v1.0, and the Ajax Control Toolkit.

I'm suprised, that other people aren't experiencing this. I've experienced it on 2 computers now. I thought it had something to do with having .NET 3.0 RC1 and the orcas stuff, but I just did a brand new clean install on another machine and I'm getting the exact same pause.

Any other advice or suggestions would be appreciated.

Thanks


Hi, i am having the same problem. It seems that the page is trying to download the whole toolkit dll every time the page loads. I am on a 56k connection and the page takes about 2 mins to open. The same happens when i try to open this site (asp.net site). Has any solution been found for this?? Thanks.


Could you maybe get a complete trace with Fiddler so we can get an idea what's going on?


I'm currently working on a client issue involving a ASP.NET Website. This site initially takes 25 seconds to load on a Windows Server 2003 OS.

The same ASP.NET Website loads 2 seconds initially on a Windows Server 2000 OS. The website uses the Reports Server control for report viewing.

Perhaps a previous post gives a hint in the direction I might take to figure this out! (i.e., DLL Load Time)!

Stay posted!


After my ASP.NET website sits idle for more than 20 mins the next request is very slow. The reason is that the application domain is flushed from IIS and the application needs to be recompiled. I found this utility to be handy.http://www.spikesolutions.net/ViewSolution.aspx?ID=c2b7edc0-5de1-4064-a432-05f6eded3b82

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

Will there be drag and drop server controls for Atlas once it ships? Drag Atlas (AJAX) control from toolbox to web form, write C# code, done! Dart has a great set off LiveControls that are very easy to use but also pretty expensive. Does anybody know?
PatrickYou can already do that with the Atlas server controls if you add them to the toolbox.

Thanks for your reply. I downloaded the following from atlas.asp.net

Atlas Blank Project VSI

Use this project add-in to Visual Studio 2005 Beta 2 to create your own Atlas web project. Includes Atlas binaries and everything you'll need.
When I open a New Atlas Project and right click on the Toolbox - Choose Items - I can't find the atlas controls under the .Net Framework Components or the COM Components. Is there something else I need to install? Please let me know. Thanks, Patrick


Yes, if you want the controls in the toolbox, you'll have to add them. You do this from the context menu of the toolbox itself, which will enable you to add the controls from the atlas dll.
I'm sorry to bother you again. I have added a new tab to the toolbox and called it Atlas. Now I have four different places where the Microcoft.Web.Atlas.dll is located on my machine. Am I right to assume that I should find the atlas controls when I right click in the Toolbox and click Choose Items under the tab .Net Framework Components?
What do you mean when you write "which will enable you to add the controls from the atlas.dll?
Do I have to browse to one of the Microsoft.Web.Atlas.dll's on my computer? Will that add the controls.
Lost sorry.............
Thanks, Patrick
Thanks Bertrand, I figured it out. I browsed to the Microsoft.Web.Atlas.dll double clicked on it. This added all the Microsoft.Web.UI controls to the .Net Framework Components tab and I was able to add the controls to the Toolbox. Pretty easy really. Thanks for your help once again. Happy coding, Patrick
I've done this too, thank you. But should I still be getting manyerrors such as "The active schema does not support the element Binding"? In my code browser?
I can't even switch to design view because it complains of the Atlas tags.

That's an issue in the PDC build that has been fixed in the next build we'll release.

Hi,

I've just installed the January release and trying to add the controls to my Toolbox. Whenever I try to add Microsoft.Web.Atlas.dll by browsing it in the "Choose Toolbox Items", I received an error message:

There was an error loading types from assembly C:\Microsoft.Web.Atlas.dll
Request for permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5656565' failed.

I am unable to add it to my toolbar... Any idea what I am missing?

Thanks!

Janh

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.

Atlas Re-Orde List - DataBinding from SQL 2005

I've had no problems working with this control using DataSources declared in the .ASPX page. However, I am having a fun time trying to get this working with DataBinding from our DataBase.

Where I have gotten so far:

List Renders

List Will Re-Order perfectly

List Will Post Back only to the Page_Load event... no other event

I have the event: rlValues_ItemReorder declared and it should be going to that event, but it doesn't.

During postbacks to the server, I check to see how many items the Re-Order list has in it, and it tells me 0. I had the original DataBinding in an if(!IsPostBack) on the page load, and I've changed it so it binds on each page load. I'm not sure which one I need.

Here is the code I am working with:

Item.Fields.FieldList objFieldList;

int intFieldID = 1;

protectedvoid Page_Load(object sender,EventArgs e)

{

objFieldList =newItemManagement.Item.Fields.FieldList(base.GeneralSettings.ConnectionString, intFieldID);

BindData();

}

privatevoid BindData()

{

rlValues.DataSource = objFieldList.ListValues();

rlValues.DataBind();

}

protectedvoid rlValues_ItemReorder(object sender, AtlasControlToolkit.ReorderListItemReorderEventArgs e)

{

thrownewException("The method or operation is not implemented.");

}

protectedvoid btnInsert_Click(object sender,EventArgs e)

{

if (txtValue.Text !="" && txtText.Text !="")

{

objFieldList =new ItemManagement.Item.Fields.FieldList(base.GeneralSettings.ConnectionString, intFieldID);

objFieldList.InsertValue(txtText.Text,Int32.Parse(txtValue.Text));

BindData();

}

}


Here is the .aspx side I'm working with:

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

<ErrorTemplate>

<divstyle="padding: 12px; width: 400px; height: 140px; border: #000000 1px solid;

background-color: white; text-align: left">

An error has occurred:<br/>

<spanid="errorMessageLabel"runat="server"></span>

<br/>

<br/>

<inputid="okButton"runat="server"type="button"value="OK"/>

</div>

</ErrorTemplate>

</atlas:scriptmanager>

<divclass="reorderListDemo">

<atlastoolkit:reorderlistid="rlValues"runat="server"

allowreorder="true"draghandlealignment="Left"iteminsertlocation="Beginning"

datakeyfield="FieldListValueID"sortorderfield="Order"Width="90%"OnItemReorder="rlValues_ItemReorder">

<ItemTemplate>

<divclass="itemArea">

<asp:LabelID="lblText"runat="server"Text='<%# Eval("Text")%>'/> |

<asp:LabelID="lblValue"runat="server"Text='<%# Eval("Value")%>'/>

</div>

</ItemTemplate>

<ReorderTemplate>

<asp:PanelID="Panel2"runat="server"CssClass="reorderCue"> </asp:Panel>

</ReorderTemplate>

<DragHandleTemplate>

<divclass="dragHandle"> </div>

</DragHandleTemplate>

</atlastoolkit:reorderlist>

<hr/>

<asp:LabelID="lblOutput"runat="server"/>

<hr/>

Value:<asp:TextBoxID="txtValue"runat="server"/>

<br/>

Text:<asp:TextBoxID="txtText"runat="server"/>

<br/>

<asp:ButtonID="btnInsert"runat="server"Text="Insert"OnClick="btnInsert_Click"/>

</div>

Any help would be awesome.

Thanks.

I believe you need to rebind each time. Without rebinding the list thinks it has zero members, and (using the latest drop from CodePlex) throws exceptions in (as I recall) reorderList.cs ('Item index > count' or something like that). Further code there invokes the Reorder function, so if it bombs out your reorder function never gets called.

The main issue I see with my example is that It never hits the re-order event (if that is what you mean).

The Version I'm using is the newest one from CodePlex... but I have yet to see any errors from the control.


Shawn helped me with this. If I take the Order field out (seeing i'm binding with an IList) it works perect.

atlas prototypes

Is there anyway to compile an atlas prototype control without having Visual studio 2005 wWeb Application Projects?

I need a compiled version of the maskedit control.

hello.

hum...what do you mean?


I spoke with someone on the forum about using masked editing a text box on the client side.

They referred me to the maskedit control in the lastest source download of the AtlasControlToolkit.

I would rather not program any raw javascript code.

The thing is there is no compiled version just source. I progam in VWD express which they said does not support web application projects.

I do not have Visual Studio 2005 available right now. I was hoping someone might know of another way of going about it. Or even possibly compile it for me so I did not have to download and install a trial version of VS2005.


hello.

well, you can use atlas and the toolkit in web developer. the toolkit has several server controls which you can use in any page. if you go to codeplex.com and navigate to the toolkit page, you'll see that theere are 2 options: download with source code and only binaries. btw, you should download the source code: it's true that vs is aplus because you'd be able to load the complete solutoin with a single double click; however, you can still see the code with the express versions of vs and even run the sample web site.


Yes, I have download the binaries and sample website for the current release version of the atlas control toolkit.

What I am speaking of is the lastest version on the source page under the source tab. Inside the latest version of the source is a prototype folder with new control called the maskedit control which is not in the final release of the AtlasToolKit.

That is the control that I need compiled.


hello again!

well, i'm lost here...can you put the path to that file here? i've just donwloaded the toolkit from codeplex and it seems i can't find that file...


http://www.codeplex.com/SourceControl/ListDownloadableCommits.aspx?ProjectName=AtlasControlToolkit

This should be the link to the source page. Download 7697 source version.

In the directory where you unzip it go to \AtlasControlToolkit\Developement\Prototype\Components\Maskedit

This is a beta version of the new Maskedit control. This is the one that I can not find already compiled.

Jamy


Just to make sure I understand, you have some c# source you need to compile into a library and you can't because you're using visual web developer which only allows you to create and edit VS web sites. If this is the case and you simply want to generate a library, you can also install Visual C# express edition and use it to create your own C# project, and generate a library containing the source you require. Because ASP.NET server controls are nothing more than types, this shouldn't be a problem.

There are probably some things I'm not considering. For instance, I think Atlas makes heavy use of embedded web resources (via WebResource.axd) for it's controls. You're more than likely going to need to do some serious editting of their source to get everything working as an independent control. Regardless, you can generate single project C# libraries usingVisual C# Express Edition.

- James