Showing posts with label updatepanel. Show all posts
Showing posts with label updatepanel. Show all posts

Wednesday, March 28, 2012

Atlas With ObjectDataSource

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

any one plese send.

Hi,

You can try this link.

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

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

Monday, March 26, 2012

Atlas Validators

Hi,

I am trying to replace the regular validators with atlas validators. When I put regular validators into an updatepanel which EnableClientScript is true it always throws error. Any sample or code snippet will be really helpful.

The atlas validators only exist in the client-side library at this moment. To use them, write client-side Atlas script code yourself. I don't think you can simply implement an Extender control, since I believe they render to tags while validators should be added to the validators property of an Atlas control instead.

To associate a required field validator, you can write some code like:


<control id="someHTMLInputElement">
<validators>
<requiredfieldvalidator .. />
</validators>
</control>

Thanks Wilco for your reply. I am an real admirer of your work. But how can I prevent a from to get posted if any of the validators failed?

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 use

Atlas

As it is easy to use inbuilt jax libraries in asp.net 2.0 .I think UpdatePanel and scrpitManager tags are backbone. As i read yesterday that by updatePanel we can make any section Ajax enabled. I want to know
1) other than updatePanel what are things that we can use.
2)Is there is any performance cost that we gave to pay if we use updateapnel for whole page ,not for any selected section.
3)If Ajax libraries are included in asp.net 2.0 by default. So why one can for simple website .

Hi,

UpdatePanel's just one control that you can use. Take a look at the free controls that are available athttp://ajax.asp.net/ajaxtoolkit. Know however that using the UpdatePanel only ajaxifies your page so that you don't see any postbacks. The ugly thing about it is that every event still gets handled of your page although the Render event is only used to render those controls in the updatepanel. Viewstate's also transferred back and forth so if you're looking for something that results in less bandwidth this is not an option.

I don't really understand your point 3 as a question. Could you elaborate on that a bit more please?

Grz, Kris.


hi

Grz, Kris

in third point I wanted to say

that as now ajax enabled web sites are inbuilt in VS 2005. Is there any reason that any one can go for simple website project.That do nt use ajax.

overall i mean is it better to make any website with ajax enabled or one can go for simple website project always?

i think i am little bit not able to make my point clear.

Regards

manminder


Hi,

sure you can still create web apps with Visual Studio 2005 without AJAX and you shouldn't use AJAX if it's not necessary in your project or when your sys admin doesn't want to install the needed extensions on the server.

Grz, Kris.


XIII:

Hi,

sure you can still create web apps with Visual Studio 2005 without AJAX and you shouldn't use AJAX if it's not necessary in your project or when your sys admin doesn't want to install the needed extensions on the server.

Grz, Kris.

Hi,

Ok

Is it Developemnt server or Web server on which sites are running

i think development

Regards

Manminder


Hi,

the server where your application will be deployed to, or any other server where you want to run an AJAX based application on, should have the extensions installed.

Grz, Kris.

Atlas UpdatePanel, EnablePartialRendering, and a custom javascript problem.

Hi all,

I have a javascript that renders custom tooltips on onmouseover events of objects on my pages, for example an A element. The custom javascript points the elements onmouseover event to delegates. This works fine except however when an UpdatePanel is render after the page has initially loaded. The function pointers are lost by objects within the UpdatePanel.

How can I setup an client side event procedure that can be run everytime the UpdatePanel renders something so that I can reinstate the lost function pointers?

Or, is there a better way to do this?

Thanks,

Andeezle

Please allow me to simplify my question. In other words, how can i run a client side script after an updatepanel updates?

also, i need a reference to the updatepanel that updated.

-Thanks,

Andeezle


Hi,

please check theUpdateProgressSignup written bySimone Busoli.

Thank you. Very cool. And it worked too!!!

-Andy

Atlas UpdatePanel wont display certain data records

I have a page with a GridView that displays about 50 records, 5 per page. Works great without Atlas. Once I added an Atlas UpdatePanel to the page, the paging of the GridView stopped working. I've researched the problem, added a DetailsView control to the UpdatePanel, and discovered that the 9th record of the dataset won't display with Atlas, but will without Atlas. I can't find anything unusual with the data record. Any help/suggestions? Thanks.

Is it possible that the record contains some data that is not properly HTML encoded? If it's not confidential data, can you show part of that record so we can see it?

We made a number of fixes in the March CTP to allow for more relaxed support for HTML. In the next CTP we will have even better support for data that isn't quite XHTML compliant as well.

Thanks,

Eilon

atlas updatepanel with datalist issue

I have a datalist contained within an atlas updatepanel and that all works fine.

The idea is that the user can create a subset from the items in the datalist, so I would like them to be able to click a button or link for a given item in the datalist and this will then appear in the subset which is contained within its own updatepanel.

The problem I am having is that using the OnItemCommand method and a select linkbutton in the datalist does not work with the updatepanel - the method does not fire on the server. Without the updatepanel it works as expected.

So my question is : what method should I use to create a per item link that will fire the server method, and update the second updatepanel.

Thanks

John

This may or may not be the correct solution, but it worked for me. Try adding a control event trigger to your update panel that references your datalist and the ItemCommand event. Hope this helps!

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 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 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 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 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 UpdatePanel and parent/child windows

Hope someone can help me... I have a parent window that contains an UpdatePanel and from that parent window I open a child window or modal dialog window...

Is there a way when the child window closes to cause an UpdatePanel in the parent window to update/fire..?

Any help would be great..!

You can use JavaScript to submit the form containing the Update Panel, (for,submit()). You may also like to have a hidden input that indicates that the submission was done due to window closing. This will enable you to check for the hidden input on the server and call UpdatePanel.Update method on the server.

Atlas UpdatePanel and FormsAuthentication Cookie Expiry

Hello all,

i have an ASP.NET 2 website that uses Forms Authentication. When the auth cookie expires, and an attempt is made to refresh a page or post-back, the browser is automatically redirected to the login page, according to settings in the web.config. All is well so far.

I then decided to use Atlas in my pages, specifically the "UpdatePanel" control in order to prevent the whole page being re-served each time when only one control needed to be updated. This also seemed to work fine.

The problem occurs when the Authentication Cookie has expired. Now instead of redirecting to the login page on a post-back, I just get a pop-up msgbox from IE6 saying simpy "Unknown Error". If I refresh the page however using the refresh browser button, i *do* get back to the login page.

I guess the Atlas Update Panel control is somehow minimising the HTML updates in the http reponse (which i guess is the whole point of the Update Panel control).. and blocking the redirect.

I have no clue how to get round this without removing Atlas - but that can't be the solution.. can it? :)

ok i've found my answer in the Atlas forums.. this is a bug in Atlas and although it was apparently supposed to be fixed in the 'next' CTP (July), it wasn't. So i'm not sure when it will be available.
I've not tried, but perhaps in your page load, something like
If Not Me.User.Identity.IsAuthenticatedThen FormsAuthentication.RedirectToLoginPage()End If

yeah, this work-around works.. almost.. if you put this in the Page_Load, it means that the actions of the postback are carried out on the server even though the user is no longer authenticated. Then, when the page_load is executed the user is redirected to the login page because it's only at this point that the authentication is checked.

It would be a bit better if the authentication could be checked in a single place in the Master page_load, but i'm not sure how to check the authentication from here since me.user.identity doesn't work.

Atlas UpdatePanel and Button Event

I do put the button inside UpdatePanel , i want when i click that button it will do something() , but the problem here that sometime it work and aslo sometime not work . Anyone fall into the situation the same as me ? Can u give give gor me any hint to recover this problem.

Thanks

hello.

not sure on what you mean...can you post a small example here?


----------------

UserControl.ascx

<%

@.ControlLanguage="C#"AutoEventWireup="true"CodeFile="UserControl.ascx.cs"Inherits="SurveyUserControl" %><atlas:UpdatePanelrunat="server"ID="UpdatePanel"> <ContentTemplate>

<

asp:ButtonID="Button"runat="server"OnClick="Button_Click"Text="Click"/>

<atlas:Panelrunat="server"ID="Panel1" >

<asp:LabelID="Label1"runat="server" tex></asp:Label>

</atlas:Panel>

<atlas:Panelrunat="server"ID="Panel2"visbile="false">

<asp:LabelID="Label2"runat="server"></asp:Label>

</atlas:Panel>

</ContentTemplate></atlas:UpdatePanel>

UserControl.ascx.cs

protected

void Button_Click(object sender,EventArgs e){

Panel1.visible = false;

Panel2.visible = true;

dosomething();

}

Default.aspx

<%

@.RegisterSrc="~/UserControl.ascx"TagName="UserControl"TagPrefix="uc1" %>

<

asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"runat="Server"><atlas:ScriptManagerID="MasterScriptManager"runat="Server"EnablePartialRendering="True"EnableScriptGlobalization="false"></atlas:ScriptManager>

<

PanelID="SurveyUserControlDnaVjfFieldSetPanel"runat="server"></Panel>

Default.aspx.cs

protected

overridevoid OnInit(EventArgs e)

{

UserControl userControl = (UserControl)Page.LoadControl("~/UserControl.ascx");

Panel.Controls.Add(userControl);

base.OnInit(e);

}

----------------

that is my code , I want when i click it just postback inside it not whole the Default page , but when i click the button sometime it work sometime does not .


hello.

man, this is not a working sample...what doesn't work as you expect?


Divide and conquer, my friend.

Try taking your system and try reducing it to the simplest scenario with a little test web application and getting your problem to duplicate. If you can, post it to a public site so we can see what you're talking about; if you can't, then at least post the sample code (that works) for this simple app and we'll help.

Millions of things could be causing this to "not work".


Sorry , maybe i mistake . Right now maybe i figure out in a bit .I dont know that is bug of UpdatePanel or not ? That error (it does not show the

<

divstyle="width: 100; border: solid 1 blue"><divstyle="width:<%# Eval("someval")%>; background-color: Red;"></div></div>

at the layout or it does nothing) occur only if i fire a button event at the loading time (because i do many thing on my page so it does take time for loading) . If i fire event after it is completed loading , everything is ok . Any idea to help me . I can post all the code ,beacuse it too much that why it take time for loading .

Atlas UpdatePanel

I have several textboxes, a gridview and an image in a panel that need to be updated based upon info entered into a textbox. Everything works like a champ when I don't use the Atlas UpdatePanel, but I can't seem to figure out how to get even one section to work. Initially I had all 3 areas wrapped into the UpdatePanel and now I'm just trying to update some textboxes with info returned from the server. Neither one works. I tried the PostBackTrigger and AsynchPostBackTrigger. Can anyone tell me what I'm doing wrong?

<asp:UpdatePanel ID="up" runat="server" UpdateMode="Conditional" >
<ContentTemplate>

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="width:125px" align="right" class="smalltext"><asp:Label ID="lblAccount" AssociatedControlID="txtAccount" runat="server">Account #: </asp:Label></td>
<td class="smalltext" style="width:175px">
<asp:TextBox ID="txtAccount" OnTextChanged="txtAccount_TextChanged" MaxLength="16" runat="server" CssClass="textbox"></asp:TextBox>
<img src="http://pics.10026.com/?src=Images/merge.gif" style="vertical-align:text-bottom" alt="Grab customer info from CSG" onclick="getCustomerInfo()" />

</td>
<td rowspan="2" style="width:70px">
<asp:Panel runat="server" ID="pnlPrevEntries">
<a href="http://links.10026.com/?link=javascript: void(0)" onclick="overlay('caution', 'PrevEntries', 'right')"><img src='Images/caution.png' id='caution' /></a>
</asp:Panel>
</td>
<td style="text-align:center" valign="top" class="smalltext">
<span id="Fullname"><%=Session("Fullname")%></span><span id="extension" style="display:none"><%=Session("extension") %></span><br /><%=Session("Role")%>
</td>
</tr>
<tr>
<td align="right" class="smalltext"><asp:Label ID="lblName" AssociatedControlID="txtName" runat="server">Name (Last, First): </asp:Label></td>
<td>
<asp:TextBox ID="txtName" MaxLength="100" runat="server" CssClass="textbox"></asp:TextBox><!--<input type="text" ID="txtName" MaxLength="100" Class="textbox">-->
<div id="customerInfo">
<asp:TextBox id="txtAddr1" runat="server"></asp:TextBox>
<asp:TextBox id="txtAddr2" runat="server"></asp:TextBox>
<asp:TextBox id="txtCity" runat="server"></asp:TextBox>
<asp:TextBox id="txtState" runat="server"></asp:TextBox>
<asp:TextBox id="txtZip" runat="server"></asp:TextBox>
<asp:TextBox id="txtPhone" runat="server"></asp:TextBox>
<asp:TextBox id="txtRetentionId" runat="server"></asp:TextBox>
<asp:TextBox ID="txtLobChanged" runat="server"></asp:TextBox>
<asp:TextBox ID="txtComments" runat="server"></asp:TextBox>
<asp:TextBox ID="txtPkgID" runat="server"></asp:TextBox>
<asp:TextBox ID="txtReasons" runat="server"></asp:TextBox>
<asp:TextBox ID="txtUncontrollable" runat="server"></asp:TextBox>
<asp:TextBox ID="txtTechProbs" runat="server"></asp:TextBox>
<asp:TextBox ID="txtComps" runat="server"></asp:TextBox>
</div>
</td>
</tr>
</table>
<!-- GridView for previous entries -->
<div id="PrevEntries">
<asp:GridView ID="grdPrevEntries" runat="server"
DataKeyNames="retentionId"
AutoGenerateColumns="False"
CssClass="smGridview"
GridLines="both"
CellPadding="3">
<Columns>
<asp:TemplateField >
<ItemTemplate>
<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ForumID=1007#" id="<%# Eval("retentionId") %>" onclick="selectPrevEntry('<%# Eval("retentionId") %>')">SELECT</a>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="tDate" HeaderText="DATE" DataFormatString="{0:MM/dd/yy}" HtmlEncode="False" />
<asp:BoundField DataField="lob" HeaderText="LOB" />
<asp:BoundField DataField="subreq" HeaderText="SUBREQ" ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-CssClass="hidden" />
<asp:BoundField DataField="reason" ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-CssClass="hidden" />
<asp:BoundField DataField="inPkg" ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-CssClass="hidden" />
<asp:BoundField DataField="outPkg" ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-CssClass="hidden" />
<asp:BoundField DataField="offer" ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-CssClass="hidden" />
<asp:BoundField DataField="comments" ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-CssClass="hidden" />
</Columns>

</asp:GridView>
<p style="text-align:right; margin:20px 3px 3px 0"><a href="http://links.10026.com/?link="#" onclick="overlayclose('PrevEntries');return false"> CLOSE</a></p>
</div> </ContentTemplate>
<Triggers><asp:AsyncPostBackTrigger
<asp:PostBackTrigger ControlID="txtAccount" />

</Triggers>

</asp:UpdatePanel>
<asp:UpdateProgress runat="server" ID="prgPrevEntries">
<ProgressTemplate>
<img src="http://pics.10026.com/?src=Images/xsmloading.gif" alt="Loading" />
</ProgressTemplate>
</asp:UpdateProgress>


One simple thing I can see is that you don't need the triggers since the textbox that's firing the event is actually in the UpdatePanel (you don't need the triggers section at all... triggers are used mainly to handle situations where you want an external control's postback to cause Ajax Postbacks.

Use of javascript is sometimes something to worry about (but usually things fail with javascript that is simply written to the form to execute inline (and not attached to an event)... I don't see anything like that, so my guess is the triggers section.


BTW, you do have a ScriptManager on the form, right? That's the most common error... ScriptManager with EnablePartialRendering="true" it should look like this

<asp:ScriptManager id="sm1" runat="server" EnablePartialRendering="true" />

Jay Kimble
-- The Dev Theologian
-- http://codebetter.com/blogs/jay.kimble/

Saturday, March 24, 2012

Atlas Unknow Error need help

The UpdatePanel does't work & trow Unknow Erro.The app canrun great without Atlas.I really enjoy using Atlas but this troublemakes me upset.
I will thank for your help
the address is http://shisoft.net/webservice/favorite/Please provide page code.