Showing posts with label enabled. Show all posts
Showing posts with label enabled. Show all posts

Wednesday, March 28, 2012

ASP.NET AJAX Enabled website Problem Stack Overflow

Hi all,

I use ASP.NET AJAX Enabled website. It gives error in IE "Stack Overflow at Line : 0" while i am doing paging in datagrid or any action like button click etc.

Anyone please solve my issue.

Thanks & Regards,

Patel Nasrullah


Make sure you do not have smart navigation turnned on.


Check out this post:http://forums.asp.net/p/956056/1397151.aspx

Specifically the post bywinter: "Had this problem also, did a little search and it turns out that it may be a bug in IE6 as well... (search Microsoft KB for more on this)
However, I resolved this when I changed to SmartNavigation="true" in my config-file instead of MaintainScrollPositionOnPostback.
Also a little tip: make sure that this is not still declared in any your pages' Page-property if SmartNavigation is used in the config-file."

-Damien

Asp.Net Ajax Enabled Web Site running very slow

I have developed my web application on ASP.NET 2.0 AJAX Extensions 1.0 . But it is running very slow.Please help me how to improve perfomance of asp.net ajax extension web site.

The most common cause for this would be that you're making too many requests to the server... i.e. you're doing lots of AJAX requests in the background and they're updating too much at once.

The performance difference between an ordinary page, for example a search box that then displays search results, should be negligable between AJAX and post-back versions - so you can't always blame the AJAX for any speed issue.

An example of AJAX slowing things down would be if you have a page with 100 Labels and each time you made an AJAX request, it had to update them all (even though only one had changed) - it would be the equivalent of building the whole page again as opposed to making an AJAX request to change just one bit of the page.

Hope this helps.

ASP.Net AJAX Enabled Web Application template missing

I have installed ASP.NET2.0 AJAX Extensions 1.0 but I cannot find a template for the above when I try to create a new project and I believe there is one available from another post? If I try a new website, I get the AJAX enabled web site template, but what I really need is the web application template.

Anyone have any ideas as to why it is not appearing? Or what settings do I need to migrate from a ajax enabled website to a web application project to enable ajax?

Thanks in advance

Hi,

Thank you for your post!

As far as I know, there is none web application project template and AJAX web application project template in Visual Studio 2005/2008.

And we can take a website as a web application project.

If you really need a solution for a web site, you can add an empty solution, then add website to it,and other related project(e.g. class library project).

If you have further questions, let me know.

Best Regards,

Asp.net Ajax Enabled web app creating more ScriptResource.axd on a Simple page

Hello,

I am using Asp.net Ajax extension 1.0.In my application ,I am using a index.aspx page,which have no script manager control.When i am runing this application the the index page is loading very slow.When I save the page from browser I am finding six ScriptResource.axd files are loading on client side.Which have up to 400 kb.So I want to reduce these files on index page.But I do not know how I do it.Please help me.

Regards,

Pawan

Hi Pawan,

Basically, those scripts won't be requested if there is no AJAX related controls on the form.
If you are using MasterPage and there is ScriptManager on it, they will be downloaded too.

Hope this helps.

Hello Raymond Wen,

Thanks for reply.

I am using asp.net ajax enable website1.0.I have noticed that ScriptResource.axd is uploaded each time when I am navigate the site.On each page ScriptResource.axd is again loading.I want to cache ScriptResource.axd on Client Side.If you have any idea about it then please help me. Thanks & Regards, Pawan


Please try the following:

1. Set debug to false in web.config

2. Set ScriptMode property of the ScriptManager to release


These should be cached on the client as long as you have <Compilation Debug="false" /> in your web.config.

ASP.NET AJAX enabled page loses its AJAX behavior when an IFrame is placed inside of an Up

Hello everyone,

I have a strange issue on one of my web pages in our ASP.NET AJAX-enabled Website. We have an ASP.NET 2.0 Website and we wanted to ajaxify it just by making good use of the UpdatePanel control on all the pages of website to remove the postbacks and make the pages more responsive to the user. One of the pages has a couple of IFrames on it and when we tried to place all the content on the page inside of an UpdatePanel, we have noticed that the browser itself crashes upon the selectedIndexChange event of a DropDownList on the same page. The IFrames are hidden by default and are made visible only upon the click event of a button.

When I wanted to find out the reason behind all this by replicating or simulating the same aforementioned behavior on a sample page, I have noiticed this *** behavior that if an IFrame is placed inside of an UpdatePanel along with other html elements, the page loses its AJAX behavior and makes a postback for the click event of a button placed inside of the same UpadetPanel as the IFrame.

Here's the source code for that...

<form id="frmAJAX7" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="TRUE">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table>
<tr>
<td>
<asp:Label ID="lblName" runat="server">Enter Your Name: </asp:Label>
</td>
<td>
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnClick" runat="server" OnClick="btnClick_Click" Text="Click me!" />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lbl" runat="server"></asp:Label>
</td>
</tr>
</table>
<iframe id="iframe1" frameborder="1" src="http://pics.10026.com/?src=http://www.msdn.microsoft.com"></iframe>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form
If the IFrame named iframe1 is placed outside of the UpdatePanel, the page works fine and exhibits the normal AJAX behavior. Is there any kind any of conflict between the ASP.NET AJAX extensions and the IFrame element?

Please let me know if any one out there has any idea about this since I am not a seasoned developer yet in ASP.NET AJAX. And any help regarding this would be appreciated as this is quite an urgent requirement.

Thanks in advance...

Well...it seems to be working fine for me.
I belive you are getting confused coz the page inside the IFrame which happens to behttp://www.msdn.microsoft.com in the example above is reloading itself on button click. The purpose of Ajax is (or to be more specific, you can say UpdatePanel in your case) instead of causing entire page to postback it would just refresh the part of the page which is inside update panel. Notice the Label and and text box in which you enter your name they dont get reloaded when they are inside the update panelon button click. Try putting everything out of updatepanel and then check the behaviour of TextBox and Label. I am sure you would notice the difference.

I also tried keeping a drop down list control inside and outside the update panel, still working fine for me.

Well, instead of keping the Src of IFramehttp://www.msdn.microsoft.com try to keep the Src of IFrame some other webpage in your project(preferebly with one or two textbox and buttons) and if you still dont notice the difference then also try to keep the controls of source page under updatepanel:)

Hope this helps:)

Cheers
Ritesh


Thanks for the reply, Ritesh.

I have mentioned the src attribute to a different page, part of the same project. I replaced the value of the src attribute to http://msdn.microsoft.com just for the posting purposes. The source page has UpdatePanel with a few other controls wrapped inside of it. I still get the same issue.

Here's the source code for the source page of the IFrame...

<form id="frmAJAX2" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Panel Created"></asp:Label>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Click me!" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form
I don't really want the UpdatPanel to refresh or reload the source page of the IFrame and even if it does, the request should be a asynchronous postback, which is not the one happening in my case. I see a clear postback in the example that I have mentioned.

Hope I was clear enough...


Hey....i thought you were seeing main page getting refreshed. Now...If I understand you correctly then you dont want the SOURCE page inside the IFrame to get refreshed... Well as I said in my last post Ajax would not postback the entire page but the controls inside the update panel would get refreshed to fetch the data from the server.

If you dont want to see any refreshing in the source page then you need to create page which would work something like this onehttp://www.jamesdam.com/ajax_login/login.html. Hit F5 and try to refresh this page and see the difference. Also keep this page under the source of IFrame. You can refer to the sample code provided at the botton of that page.

Cheers
Ritesh

asp.net Ajax datagrid?

Hi,

I am looking for a tutorial sort of thing that can guide me to build ajax enabled datagrid with functionalities like editing,deleting, sorting, paging etc in ajax mode. Right now I am able to load the datagrid ajax way but not able to find way to get other things in ajax manner. any help will be appreciated.

Regards,

Sunil

Hi Sunil,

Maybe this link can be helpfull:

http://weblogs.asp.net/rajbk/archive/2007/01/17/master-details-using-ajax-introducing-the-updatepanelpopupextender.aspx

regards,


Hi Dennis,

Thanks for your link but it is not what i want. I want that I should be doing all sort of things (editing, sorting,deleting) in grid with the help of ajax. If user does any sorting, then page should not get posted back and use ajax. same for other functionalities.I have searched google for it but didnot find any good help.

Regards,

Sunil


Maybe you just need an <asp:GridView> control inside an <asp:UpdatePanel>? (Then all the sorting/paging/editing/etc. will go through the server, but asynchronously and without reloading the page. That's the magic of the UpdatePanel!)

Monday, March 26, 2012

ASP.NET Ajax and VisualStudio2005

Hi there,

I've recently been experimenting with ASP.NET Ajax.
I'm able to create an Ajax Enabled website however Visual Studio doesn't seem to recognize the Asp.NET Ajax components...

When I'm viewing the web page in HTML format it doesn't even recognize the <asp:ScriptManager>.
What's really getting to me is that it doesn't recognize the<asp:UpdatePanel> nor the <contenttemplate>...andeverything within these tags, even though they are regular components(like text boxes and panels), shows up as errors.

Finding real problems in the HTML is difficult because there are so many error-swigglies underlining everything.


The site is works very well...and despite the fact that all theseerrors are listed, Visual Studio still compiles and runs the site.


Is there a way to make Visual Studio recognize the ASP.NET Ajax components?

Thanks

-Frinny

Have you added the Ajax/ControlToolkit components to the VS toolbar?

Yes, I have added it to the toolbar.

The site uses a bunch of different extenders and makes use of the update panels.
It works nicely but Visual Studio is showing the errors even though there are no errors.


That's odd.

When I enable Ajax, or ControlTookit, on existing asp.net pages the toolbar changes and the directives in the web.config seem to always do the trick.


So you don't see red-squggly error indicators when viewing the aspx as html?

Am I missing something? Did I not set this up correctly?


Have you registered the assembly in your aspx page?

<%

@.RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="ajaxToolkit" %>


Yes I have <%@.RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="ajaxToolkit" %> at the top of my pages.

This problem has been solved.

I was running Visual Studio 2005 without Service Pack 1.
Once I installed SP1 everything worked as it should...no more errors are showing up.

Thanks for all your help and advice!


-Frinny


Thanks for reporting back...You'll no doubt help a lot of others.Wink

ASP.NET AJAX 1.0 - ViewState Problems

I am getting the following error very frequently when working with my AJAX enabled page:

"The state information is invalid for this page and might be corrupted."

Can anyone explain why this is happening and what I can do to prevent it? It is a major problem in the ajax-enabled website I am trying to build. I can be more specific with when and where the error is occuring if needed.

Thank you.

-Tommy

Are you storing custom types in the ViewState? seehttp://www.eranachum.com/PermaLink,guid,295cdfb4-d9d0-4362-8787-9eb80703d13b.aspx

Not sure if this will help, but here's a related post:http://forums.asp.net/p/976239/1472501.aspx

-Damien


Hi,

is the ViewState large for that page? If yes, you could try to split it with <pages maxPageStateFieldLength="charactercount"> setting in web.config. However, are you doing something special on the Page, like loading controls dynamically etc?


Yes, I am loading some custom user controls dynamically at the page_load. Anything I can do to prevent or correct this problem?

Thanks,

-Tommy


Whether you are getting error in IE or Firefox

For Firefox add

if (Request.Browser.Browser == "Firefox") Response.Cache.SetNoStore();

http://forums.asp.net/p/976239/1472501.aspx


FYI...This problem I was having may have been caused by latency problems in my internet connectioin. For about a week I was having some internet connectivity problems where my cable modem was having packet loss up to 60% at times (this is what the tech support guy said). Since my connectivity problems have gone away I haven't received this error even once.


If your problem is solved mark as answer,

So it will help for others

Saturday, March 24, 2012

ASP.NET 2.0, Ajax, webparts enabled portal site

I'm not sure where to post this specifically but myself and a co-worker have been developing an asp.net 2.0 site for our internal employees. It has been a great project with many, many stumbling blocks but we have pretty much gotten a handle on the darn thing to work as we envisioned. This site makes use of the asp.net 2.0 webparts functionality that attach on the back end to Microsoft Sharepoint, SQL, Oracle, and RSS feed data to create an extremely dynamic, up-to-date site. In order to acheive this functionality we had to implement customized functionality for the webpart catalog zones, webpart zones, page fire events, etc. Some of the things we did:

Ajax enabled browsing (for IE 6,7, we are working on the firefox implementation)

Webparts that attach to sql, oracle, Sharpoint services, RSS feeds

Page "tabs" that can remember webpart locations, data, etc.

Full theme support for as many themes as our lazy butts felt like coming up with (a few screen shots below)

User customizeable RSS feeds as well as static ones

Custom catalog zone with accordion controls and popup descriptions of "gadgets."

Custom weather items (data provided by weather bug)

Flickr photo gallery "gadget"

Dynamic static and modifiable pages for the different departments for customized content (we use a .uscx "gadget" that can save the current page "state" into a sql database)

Cool Design! (at least I think so :-)

At the bottom of the post should be some screen shots of the site. It's internal so ya' can't get to it through a browser but hopefully the screen shots will give an idea of where we went with this. When a user first visits the page, they are presented with a "wizard" where they can choose the type of user they are. Once they finish the wizard, we wrote custom code to read from a sort-of 'template' database that adds the webparts to the respective zones on the page in the order and location that we previously specified. As you can see the webpart functionality is heavily modified and I think it turned out pretty good! We lopped off alot of the standard bars and things and added our own styles using custom css and theme files.

If you have quesitions or what not, I can provide code snipets for sure. We are not master coders by any means and this is my first asp.net project but I hope to be as helpful as possible. any feed back would be cool! contact me at rstillwell <at> broomfield <dot> org.

THanks!

wizardAlso,

Default Theme (vista)

BlackTheme

Cool work!

It really looks nice!


Gentleman,

Is this really implemented with Webparts. Can you help me to understand the architecture of this application, as i read form your post that you have used, Sharepoint as well in your application.

In a nut shell, can you help me to understand to replicate the same. This will be a learning curve for my knowledge


Yeah the whole site is built around webparts. Sure I can help. Yes that is correct we tap into the sharpoint lists using xml stream readers. What would you like to know specifically?


Thankyou very much... before we go further, pl give a look athttp://www.codeproject.com/Ajax/MakingGoogleIG.asp, this page clearly explains how to create a dynamic content web app as step by step.

Now, coming to your help, can you help me to teach me as step by step to get going with your kind of web app. Apart of this, can we discuss offline, inother words, can we discuss off the track with this thread?

If you are interested, you can reach me at MSN Messagern withdskcheck@.msn.com id, damaraju_skc@.yahoo.com at yahoo messanger,varthy@.gmail.com at gtalk.

ASP,NET AJAX Enabled site and script module error

Hi All,

I have an ASP.NET AJAX enabled site which works OK in my development environment but when I publish it and view the site I get the error below. I have also tried creating a fresh ASP.NET AJAX enabled site and then publishing it but still the same error. Thinking some files were missing I downloaded the MS AJAX setup on my server (Win2K3 64-bit SP1) but to no avail.

From my Googling I see there are some patches to fix various issues with AJAX but nothing I have found matches my problem. If anyone has any info on this error or could point me in the right direction that would be most appreciated.

Description:Anerror occurred during the processing of a configuration file requiredto service this request. Please review the specific error details belowand modify your configuration file appropriately.

Parser Error Message:Couldnot load file or assembly 'System.Web.Extensions, Version=1.0.61025.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of itsdependencies. The system cannot find the file specified.(xxxxx\web.config line 42)

Source Error:

Line 40:
Line 41: <httpModules>
Line 42: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 43: </httpModules>
Line 44: </system.web>

The AJAX assemblies are intended to be installed in the servers GAC, therefore they will not deploy in your apps bin folder.

Run the AJAX installation on the server to install the assemblies to the severs GAC.


Thanks for the prompt response. I had tried seveal times to download and install the same AJAX setup on my server. Though I thought I'd give it one last try after your comment and it nows works :)

Wednesday, March 21, 2012

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.