Showing posts with label controls. Show all posts
Showing posts with label controls. Show all posts

Wednesday, March 28, 2012

ASP.NET AJAX for Web Application Project (WAP)

Has anyone successfully use the new AJAX controls in a WAP?

I'm getting this error when I try to use the web.config from an ASP.NET AJAX Web Site in a Web Application Project.

Error 8 The type 'Microsoft.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Try to download Ajax Beta 2 and Futures Nov CTP from this website - http://ajax.asp.net/docs/Default.aspx
Try to download Ajax Beta 2 and Futures Nov CTP from this website - http://ajax.asp.net/docs/Default.aspx
Try to download Ajax Control Toolkit from this website - http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx
Try to read Ajax materials document from here -
After you install Ajax Beta 2 and Futures Nov CTP in your PC,try to create a new Ajax Enabled website and a Ajax CTP Enabled website and check if it works.
Besides,try to check your web.config according to the following web.config
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/>
<sectionGroup name="scripting" type="Microsoft.Web.Configuration.ScriptingSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="webServices" type="Microsoft.Web.Configuration.ScriptingWebServicesSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="Microsoft.Web.Configuration.ScriptingJsonSerializationSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
<section name="profileService" type="Microsoft.Web.Configuration.ScriptingProfileServiceSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
<section name="authenticationService" type="Microsoft.Web.Configuration.ScriptingAuthenticationServiceSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
<tagMapping>
<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CompareValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CustomValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RangeValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RegularExpressionValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RequiredFieldValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Microsoft.Web.UI.Compatibility.ValidationSummary, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</tagMapping>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
</httpHandlers>
<httpModules>
<add name="WebResourceCompression" type="Microsoft.Web.Handlers.WebResourceCompressionModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptModule" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler"/>
</handlers>
</system.webServer>
</configuration>
Wish the above can help you.

Hi JC,

Had the same error and found that it was because I had not replaced the AjaxControlToolkit.dll in my application with the new one in the SampleWebsite/bin folder when I updated my AJAX version from beta to AJAX 1.0 RC. Recommend you try this.

Kind regards,

Mick

ASP.NET AJAX Controls with SharePoint

I need to implement AJAX controls within SharePoint web parts? Is that possible? I can't seem to find any help on the Internet. Any information on what steps to follow would be greatly appreciated.

Regards,

Lilia Safronova

Check out this blog post:

ASP.NET Ajax in SharePoint


According to Daniel Larson's Blog, looks like a lot of javascripting will be required, right? What are the steps to create a very simple Ajax-enabled Hello World web part?

As soon as I inherit from SharePoint.Ajax.WebParts.AjaxWebPart, I get an error in the web part that it couldn't be found. Do you know why that is?

How do I get my hands on Ajax controls when in VS05?

I'm no very clear on what is needed to create Ajax-enabled controls for SharePoint. Would I have a web part (implemented in VS05) with a grid control for example and this .cs class would call a web service implemented with javascript (Ajax capability)?

Your help is very much appreciated.

Lilia

Monday, March 26, 2012

ASP.NET Ajax Control Toolkit in different browsers

This toolkit seems to be incredible, better than a lot of packaeg offered (charged) by 3rd providers. I am only concerned all these controls will behave accordingly in any browser chosen, from IE 6, 7 to Firefox. Has anyone done tests, or used them in production?

I have tested most of the controls, and use them in my production environment, with many browsers (FF 1.5(OSX, Windows), FF2(OSX, Windows), IE 6, IE 7, Opera 9(OSX, Windows), Safari (OSX)). They all worked fine. Microsoft has gone through alot of trouble to see that they do. :)


This is nice to hear, if you dont mind, a nice list table with the results of your findings with respect to the various browsers.

I am working on creating webparts ( custom composite controls , DLLS , what ever you call them) to use AJAX.NET extensions and the "unsupported" Ajax.NET ControlToolkit and I must say the behaviour is NOT as rosy as it may be when using the controls in the WYSIWYG drop-n-drop way of the VS designer.

behaviour varies from IE6 to IE7, even on mozilla


You talked about "drag & drop′", considering u r working with webparts. Actually I know there is one of the toolkit components that is able to be dragged, the others AFAIK are not able to such a task. So as for this problem you mentioned, you were referring particularly to this case with webparts ?


Hi,

When developing webparts as custom composite or server controls, drag-n-drop is not an option as the WYSIWYG editors such as VS2k3 or WS2K5.

And yes, I am referring specifically to WebParts using ASP.NET 2.0 WebParts class and also using AJAX.NET extensions and AJAXControlToolkit extenders etc.

To be clear i am talking about the behaviour of coded webparts ( not user controls such as ASCX stuck into a webpart zone) such as overriding CreateChildControls and RenderContents or Render where the layout and lifecycle of the objects are different when laying out objects on an ASP.NET webpage or webpartpage.

Anyways, its an uphill battle. Right now I want the AlwaysVisibleControl Extender ( if thats the "correct" name) to work properly in a custom ajaxified webpart (DLL). This is where the browse side problem appears.

This is why I createdhttp://forums.asp.net/t/1128326.aspx a while back with no feedback from anyone. Oh well, i will figure it out eventually.

ASP.NET AJAX Beta 1 and AutoCompleteExtender

Have follow page:
1<%@dotnet.itags.org. Register TagPrefix="ajaxPreview" Namespace="Microsoft.Web.Preview.UI.Controls" Assembly="Microsoft.Web.Preview" %>23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">45<html xmlns="http://www.w3.org/1999/xhtml" >6<head id="Head1" runat="server">7<title>test autocomlete</title>8</head>9<body>10 <script language="javascript">11 function onClick()12 {13 SearchService.GetAutoCompleteList("a",10, function(a1){alert(a1);} );14 }151617 </script>18 <form id="form1" runat="server" defaultfocus="UserNameTextBox">19 <asp:ScriptManager ID="MainScriptManager" runat="server" >20 <Services>21 <asp:ServiceReference Path="~/Services/SearchService.asmx" />22 </Services>23 </asp:ScriptManager>2425 <input type="button" id="btn" value="custom call" onclick="onClick();" />26 <asp:TextBox ID="tbSearch" runat="server" /><br /><br />2728 <ajaxPreview:AutoCompleteExtender ID="extSearchAutoCompleteExtender" runat="server"29 MinimumPrefixLength="1" Visible="true"30 ServicePath="~/Services/SearchService.asmx"31 ServiceMethod="GetAutoCompleteList"32 TargetControlID="tbSearch" />33 </form>34</body>35</html>36

and service:

[WebService][ScriptService]public class SearchService : WebService { [WebMethod] [ScriptMethod(true)]public string[] GetAutoCompleteList(string PrefixText,int count) { ... } }

When i press button - it works. But AutoCompleteExtender not work.
I debug internal JS Code. it seems that Request to server was send in JSON format, but not parsed on server properly, and call not come to Service.
I set breakpoint in service - it never come to it when use AutoCompleteExtender. But in Fiddler i can see that request goes to server.

in Jule CTP same code was works fine.

In anywherein new documentation has sample with AutoCompleteExtender ? how use it in ASP.NET AJAX Beta 1

hello.

it seems like you're using get for the request. try removing true from the scriptmethod and see if it works.


Initialy it was without true, but not work too.

I place true, when try to fix with. By Http Traces this flag not change anything.

I'm found a problem, but not know how to fix it.

when i call service with button follow package was send:

{"PrefixText":"a","count":10}
but when i type "a" in text box: content will be follow:
{"prefixText":"a","count":10}
 and response from server:
 
"@._Error(false,"Invalid web service call, missing value for parameter: \'PrefixText\'."," at Microsoft.Web.Script.Services.WebServiceMethodData.CallMethod(Object target, IDictionary`2 parameters) at Microsoft.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters) at Microsoft.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams) at Microsoft.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","System.InvalidOperationException")Error_@."
Why in second case parametr prefixText starts with non Capital letter?


if I change Service Method signature form
public string[] GetAutoCompleteList(string PrefixText,int count)

to

public string[] GetAutoCompleteList(string prefixText,int count)
AutoCompleteExtender works fine. But i have no clue why it works so.
Can anyone explain why i need parametrs started from nonCapital letter?

First off... thanks for posting this (along with the solution) as i just ran into that error as well (Fiddler is so great for helping debug, eh)

Anyways, to maybe make an attempt at answering:

mogadanez:

Can anyone explain why i need parametrs started from nonCapital letter?

Perhaps since the "closure" to "prototype" change that capitalization became important? that's just a wild shot in the dark


Just to backup my wild shot in the dark, using fiddler to poke around the javascript files spit out by the ScriptManager it has:

Sys.Net._WebMethod._invoke(this, this._serviceMethod, this._serviceMethod, false,
{prefixText : this._currentPrefix, count: this._completionSetCount },

when i call service method "by hand"

<script language="javascript">
11 function onClick()
12 {
13 SearchService.GetAutoCompleteList("a",10, function(a1){alert(a1);} );
14 }
15
16
17 </script>
...
19 <asp:ScriptManager ID="MainScriptManager" runat="server" >
20 <Services>
21 <asp:ServiceReference Path="~/Services/SearchService.asmx" />
22 </Services>
23 </asp:ScriptManager>

it's work with any parametrs names "PrefixText", "prefixText", and "BLABLA"
It is not work from AutoCompleteExtender ( and maybe from other components )

and i have no idea why.


hello.

that's weird...i've just tested with a simple page and i've named the parameter PrefixText and it works without any problem...


in simple service call? or in AutoCompleteExtender?

mogadanez:

if I change Service Method signature form

public string[] GetAutoCompleteList(string PrefixText,int count)

to

public string[] GetAutoCompleteList(string prefixText,int count)

AutoCompleteExtender works fine. But i have no clue why it works so.

I had the exact same problem and was getting very frustrated by it. This fixed my problem perfectly. Thank you for posting this fix.

Devteam, Can we get updated documentation showing these sorts of updates or atleast some form of example for the AutoCompleteExtender.


Another big thanks here !!!

I thought I was going nuts, how much can go wrong in configuring the autocomplete extender.

changing PrefixText to prefixText was all it took.

Kuddo's !


This problem is true for VB.net also. Thanks for the help.
hello guys. just like to confirm if this behavior happens when you use the internal server or only with iis. thanks.
I am using Localhost with IIS

ASP.NET AJAX 2.0 Futures

What is included/placed in the ASP.NET AJAX 2.0 Futures? What controls?

//Kim

Foudn out my self by readinghttp://ajax.asp.net/files/AspNet_AJAX_CTP_to_Beta_Whitepaper.aspx#link5

Saturday, March 24, 2012

Asp.net Ajax - Validation Controls

Hi, i created a ajax modal popup with some text controls and validation controls on it programmatically and attached this to be shown on click event of hyperlink. The modaI popup is working. I enable client validation on validation controls. When i submit the modal popup, validation is taking place on the client side, but the modal popup is closing instead of displaying the validation messages. Any help is appreciated.

Regards

Subba

Not sure which Validation controls you're using but you may want to check out the validator controls that are part of the System.Web.UI.Compatibility namespace (separate assembly that you need to download).

We were having a problem when using the default validation controls on an Ajax page, that despite the validation failing on the client side the page still went back to the server. We had to change the validators...check out the two links below.

http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx

http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx

Regards,

Tim


Tim, I installed the hot fix 'KB934839' and i donno whether this hot fix solved the validation control - ajax issue or not. By the way, i'm using validation summary and required field validator on my modal popup.


Sorry.. wrong post for your reply... I installed the hot fixhttp://support.microsoft.com/?kbid=933383. Let me give a try for your solution. Thanks.


Tim, i did go throughhttp://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx and referenced validators.dll, modified web.config. but no luck.. stil the modal popup is not shown with the requried field validators error message. i need to click on the hyperlink to show the modal popup again with those validation messages..


Hi,

That's because the close function is implemented with javascript, and the failure of validators won't prevent it from happenning.

You may try this:

1. Don't specify a button as the OK button for the ModalPopup

2. Add a click event for that button to close the popup

function closePopup()
{
var result =ValidatorOnSubmit();
if (result == true) // only close it when validation successes
{
var modalPopup = $find('ModalPopupExtender1');
modalPopup.hide();
}
}

Hope this helps.


Raymond, modalPopup is null in the page script and is erroring out..


The sample code I provided is used to express the idea of how to implement it. It may not work directly.

You may need to modify it accordingly.

ASP.Net AJAX - Cannot Set focus to a TextBox inside an Update Panel

Hi; I am using the released version of AJAX Controls and I am working on a Web Application with a Masterpage.
What I would like to do is, I have two Radiobuttons and two TextBoxes inside an update panel; When the user clicks the RadioButton1, I would like to set the focus to TextBox1 and if the user clicks the RadioButton2, I would like to set the focus to the TextBox2. I have googled for it and found couple of similar solutions that works with the beta AJAX assembly "Microsoft.Web.Atlas" but it doesn't work with the ASP.Net AJAX which I am using in my current project.

The following code works just fine when I use theMicrosoft.Web.Atlas soplease let me know if anyone knows a solution that works with the released version of AJAX Controls; Thanks in advance.

//***************************************************************************************

//Code behindprotected void RadioButton1_CheckedChanged(object sender, EventArgs e) { SetMyFocus(ref TextBox1); TextBox1.Focus(); }private void SetMyFocus(ref TextBox txtBox) {string focusString ="setTimeout(\"$('" + txtBox.ClientID + "').focus(); \", 100);"; ClientScript.RegisterStartupScript(this.GetType(),"focusString", focusString,true); }protected void RadioButton2_CheckedChanged(object sender, EventArgs e) { SetMyFocus(ref TextBox2); TextBox2.Focus(); }

//***************************************************************************************
 The following code is from the source view of the page
 
<%@dotnet.itags.org. Page Language="C#" MasterPageFile="~/Test.master" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" Title="Untitled Page" %><%@dotnet.itags.org. Register Assembly="Microsoft.Web.Atlas" Namespace="Microsoft.Web.UI" TagPrefix="cc1" %><asp:Content ID="Content1" ContentPlaceHolderID="CPHTest" Runat="Server"> <cc1:ScriptManager ID="ScriptManager2" runat="server" EnablePartialRendering="true"> </cc1:ScriptManager> <cc1:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" OnCheckedChanged="RadioButton1_CheckedChanged" GroupName="Group1" /><br /> <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" GroupName="Group1" OnCheckedChanged="RadioButton2_CheckedChanged" /><br /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br />   </ContentTemplate> </cc1:UpdatePanel></asp:Content>

Hi,

I am using the new SetFocus method of the ScriptManager class.

Example:

ScriptManager1.SetFocus(TextBox2);

I works with the last release of Microsoft AJAX.

Hope this helps,

David


Wow; that works great; Thanks for the quick reply.

Jacob


I am using the Atlas beta version. I am having the same textbox focus problem. I tried to use the setFocus(), but i couldnt find the setFocus() of the scriptmanager.

Where to use

ScriptManager1.SetFocus(TextBox2);

I just have the

ScriptManager1.Focus() method. please help.

Thanks in Advance


Use the latest version of ASP.NET AJAX


Thanks lot

I also having same prob and search the web for solution. This is tha only place that I found a resolution.

Thanks lot again

ASP.NET / Ajax asp:UpdatePanel controls

I am just getting started using the ASP.NET/Ajax extensions and am curious about something. I have an aspx page where the controls are laid out using a table...nothing unusual there. Two of the controls are asp:DropDownList controls. Each of the controls appears in a row <tr> of the enclosing <table>. I have the classic issue of having the selection of DropDown1 controlling the choices listed in DropDown2. I need then to put the DropDown2 in an UpdatePanel and wire them together. However, can you use the UpdatePanel INSIDE of the <table> around only those rows containing the control involved? Something like this...(I have not completed this yet...as I wanted to find out if this is even allowed).

<tr>
<td align="right">
<asp:Label ID="lblSYS_NM" runat="server" Text="System:"></asp:Label></td>
<td>
<asp:DropDownList ID="ddSYS_NM" runat="server" >
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvddSYS_NM" ControlToValidate="ddSYS_NM" InitialValue="0" Display="Dynamic" runat="server">
<%= RequestConstants.DDL_MSG %>
</asp:RequiredFieldValidator>
</td>
<td>
(Select System)</td>
</tr>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<tr>
<td align="right">
<asp:Label ID="lblSUB_SYS_NM" runat="server" Text="SubSystem:"></asp:Label></td>
<td>
<asp:DropDownList ID="ddSUB_SYS_NM" runat="server" AutoPostBack="False">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvddSUB_SYS_NM" ControlToValidate="ddSUB_SYS_NM" InitialValue="0" Display="Dynamic" Width="100%"
runat="server">
<%= RequestConstants.DDL_MSG %>
</asp:RequiredFieldValidator>
</td>
<td>
(Select SubSystem)</td>
</tr>
</ContentTemplate>

<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddSYS_NM" EventName="SelectedIndexChanged" />
</Triggers
</asp:UpdatePanel>

Thanks

I would only wrap the necessary controls with the update panel. The only thing that changes within the update panel is the DropDownLists. it would look more like this:

<table>
<tr>
<td><asp:Label... /></td>
<td>
<asp:DropDownList id="DropDown1" .../>
<asp:RequiredFieldValidator .../>
</td>
</tr>
<tr>
<td><asp:Label... /></td>
<td>
<asp:UpdatePanel ...>
<ContentTemplate>
<asp:DropDownList id="DropDown2" .../>
<asp:RequiredFieldValidator .../>
</ContentTemplate>
<Triggers>
<AysncPostBackTigger Control="DropDownList1" Event="Click" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
</table>

Asp.net & Microsoft Ajax Performance issues

I am having performance problems with ajax control toolkit. I have a web form with some ajax control toolkit controls(Textbox, Dropdownlist) and some simple standard asp.net controls. Now whats hepening with me whenever I post a ajax call to server each time request size increases secondly all the data of controls of the page is being sent back to server on each request why?

If I do all this work with raw javascript using XMLHttpRequest object(the very first form of ajax) it works fine.

Hi,

According to your description, I think it's normal to see this.

When you use ASP.NET AJAX, it doesn't eliminate unnecessary data transfer. All information on current page will be posted to server just as a normal request.

While working with a raw XmlHttpRequest, you can send necessary data explicitly.


you are right its normal way of httprequest.

But my point is, don't you think for a specific control say a button or text box only required data(viewstate) should be travel to server as you can do using simple ajax.

I think if this functionality could be added in Ajax Framework it will be a value added in this framework for enterprise applications wehere performance is critical.


Yes, this is a good point.

But we have to sacrifice some performances when we manage to achieve an easy-to-use framework. This sacrifice usually comes with UpdatePanel, but if you are accessing WebService or PageMethod, there will be less unnecessary traffic.

Wednesday, March 21, 2012

asp controls unknown inside updatepanel in nested master

I have a master page with scriptmanager and update panel outside the contentplaceholder. Immediately the updatepanel and all nested master and non-master pages show all asp elements as unknown. If I move the update panel to inside the nested master content element it is still unknown as is all of the nested elements and pages.

I am running the december releases. I have un-installed and re-installed a couple of times. This is always the behavior. The code runs, but there is not intellisense and virtually everything is marked with the red underlines, and the error page is full (but doesn't stop the app coming up).

I looked at a number of posts suggesting rebuilding the toolbox. Nothing seems to help. However, the ajax toolkit controls are recognized because there is an @dotnet.itags.org.Register in the nested master.

Additionally, despite the post I found saying it had been fixed, I must keep my master pages open or none of the controls on any of the lower pages are recognized.

Anyone know of a post I missed about this issue?

/bump

I have the same issue.

In visual studio i create a new Ajax enabled website. I create a master page and a content page. The content page is to contain an update panel with some stuff in it. The AjaxControlToolkit is recognized while the Update Panel is not.

Cheers,

Michael


I'm also having this same problem. I have a Master page and my update panel is in the content page. AjaxControlToolkit controls are recognized but any controls within the update panel are not.
I'm also having this same problem. I have a Master page and my update panel is in the content page. AjaxControlToolkit controls are recognized but any controls within the update panel are not.

bump

I have 2 update panels (master/detail) that I am wiring together.

I am trying to make an object data source in UP2 use a praramater from a gridview in UP1. On creation of the data source, the Master gridview is not visible, but I hard coded it, and it actually works fine.

I think this is a bug in the UI of VS 2005.


Make sure you have the content inside your update panel wrapped with <ContentTemplate></ContentTemplate>

ASP control inside AccordionPanes wont show in Desing View.

ASP controls inside the content of an AccordionPane won't show indesign view,
so the codebehind (.vb files) in VWD 2005 ED tells me theyare not declared.

I have this simple accordion:


<atlasTK:Accordion ID="Accordion1" runat="server" SelectedIndex="0" AutoSize="None"
<Panes>
<atlasTK:AccordionPane ID="AccordionPane1" runat="server" >
<Header>
<a href="http://links.10026.com/?link=" onclick="return false;" >ONE</a>
</Header>
<Content>
<asp:Label ID="lbl1" runat="server" Text="Test"/>
</Content>
</atlasTK:AccordionPane
<atlasTK:AccordionPane ID="AccordionPane2" runat="server" >
<Header>
<a href="http://links.10026.com/?link=" onclick="return false;" >TWO</a>
</Header>
<Content>
<asp:Label ID="lbl2" runat="server" Text="Test2"/>
</Content>
</atlasTK:AccordionPane
</Panes
</atlasTK:Accordion>


and albl1.text="hello world" in the codebehind is unacceptable.

What i'm doing wrong?

Hi DV,

I answered your question inthis thread.

Thanks,
Ted

asking about ajax 1.0 realesd ?

hi dev.

im using ajax 2.0 beta in my application. and i used ajax controls on it. now when i installed the new ajax all my pages had errors. can i do something easy to uypgrade it to new ajax? or stay on the beta version?

and if i stay use the beta does that make problems in the future?

thanks

Hey jaffar,

you might have a look atConverting Applications from "Atlas" CTP to ASP.NET AJAX RTM . Basically there a various naming scheme changes. E.g. the <atlas:XY tag changed to <asp:XY ...You also have a look at your web.config.

I suggest you to upgrade to the AJAX release version. The CTPs or betas are not supported, neither you can install current Control Toolkit builds.

regards

Henrik


hi henrikholle

the problem i uninstalled the beta one and installed the new one BUT the application gave me 101 errors DUH

so i think ajax team must thought about that and should do something. now i think i have to stay on the beta.


Hey,

just have a look at the converting guide. The guide describes the converting process from your beta version to RTM 1.0 in detail.Read here


regards

henrik

As shown in one of the videos I tried to include some atlas controls into an exisiting web

Hello everybody,

I would like to hear some sugestions on how should be the apropiated steps to follow in order to make atlas controls work on an exiisting web application I had before instaling the atlas tool kit.

I already added the ScriptManager control, then inserted an updated panel, and placed inside it some controls I had created before. Then I inserted an Update progress control and wrote inside it "Please wait, processing", the problem is that when I try to run the application it runs just as before I doesnt gives me any error messages, but the funcionallity is not working. Eventhough the process takes like 2 minutes it does not activate de update progress control.

Please let me know if I am missing something. Thanks. (should i do any modifications manually on my webconfig ?)Confused

I suggest you to download the latest Ajax Beta 2,Ajax CTP future November?and?Ajax?Toolkit? to install them in your PC from Ajax website - http://Ajax.asp.net.
Try to have a look at this link about asp:UpdatePanel and asp:UpdateProgress - http://ajax.asp.net/docs/overview/UpdateProgressOverview.aspx
There are somewhat differences between Atlas controlToolkit and Ajax controlToolkit.
Try to take a look at this blog about Ajax Beta - http://weblogs.asp.net/scottgu/archive/2006/10/20/ASP.NET-AJAX-Beta-1-Released.aspx
Try to take a look at this reading about how to access Ajax controlToolkit - http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=AtlasControlToolkit,you will some useful sample codes here.
Wish the above can give you some help.

Are you planning an enhanced treeview?

It's amazing to read that you are planning 50 - 100 more Atlas enabled controls. Before doing it of my own, I want to know if an enhanced treeview with support for drag 'n' drop, insert, delete and rename nodes is part of the upcoming controls?I too I'm in need of such control is it planed for soon?

We've got number goals but not a specific list of controls. I don't think we'll have something that exactly meets your scenario even if we were to do a treeview.