asp.net-ajax

What is the "proper" tag prefix for the AjaxControlToolkit?

I've seen many examples where they just use the "asp" prefix. Is this a good practice? (The reason I'm asking is because the templates that create the default for a new website appear to be problematic. There's an apparent naming collision on the BulletedList control.) ...

asp:UpdatePanel / Custom Control / RegisterClientScriptResource

I have built a custom control that has a small amount of JavaScript. The JS is maintained as an embeded resource. When my control is rendered, I added it to the page as follows: Page.ClientScript.RegisterClientScriptResource( GetType(), "Resources.MyControl.js"); The control works just fine but when it is rendered inside of an upd...

Asp.Net c# -> Javascript Ajax

First of all, I'm new to Ajax and I don't quite understand everything about how it's work in Asp.Net. I'm using Asp.Net 3.5 and I have a c# server code that run and when it's have finish it work, it's call a subscribed event that will write the result in a txtbox control. c# code : public partial class TestDBLoader : System.Web.UI.Pag...

Object definitions not being rendered for ASP.Net Page Methods

I am using ASP.Net Ajax's Page Methods and I have an issue that an enumeration's definition is not being rendered. Here is what I have: public class Contact { public string FirstName{get;set;} public IList<PhoneNumber> PhoneNumbers{get;set;} } public class PhoneNumber { public string Number{get;set;} public PhoneNumberTyp...

Page losing title after UpdatePanel asyncpostback

I have just noticed recently that my page title will reset to the standard "Untitled Page" after I perform an asyncpostback from inside my UpdatePanel in the main page. The title will not be lost during a postback from inside the master page (such as when I click on the search box button inside the master page). I assumed that by using ...

How does one call method exists in a page from another page?

I'm working on a page, in which other pages are opened from it in a modal way. I need to call function exists in opener page to update certain controls in it. I'm using window.open to open another window but in this case Page.PreviousPage for opened page is null. I'm using <%@ PreviousPageType VirtualPath="~/PreviousPage.a...

Caching ASP.NET AJAX service javascript proxies

We have a number of small but useful WCF services which are being hosted using the WebScriptServiceHostFactory class and consumed via ASP.NET AJAX. We've noticed that in our production environment that the javascript proxies are not being cached by the client. Is there anyway to allow these files to be cached? ...

ASP.NET server side tags vs. JavaScript-based UI and REST

Hi, I've been developing "traditional" ASP.NET applications with server side ASP.NET controls and code behind files, etc. Now I'm exploring several JavaScript libraries like: jQuery, YUI, Ext Js, Prototype. (also it's hard to pick one, but it's another post). All these libraries make client to server communication a lot easier, but they...

How do I call a particular class method using ScriptManager

Hi, I've created a particular server control that has some methods I'd like to call from javascript. I know that the ScriptManager allows to call a web service or a page method. But I'd like to call a particular class method (I can do this with Anthem or even AjaxPro.NET). Is there a way to accomplish this using ScriptManager? Thanks. ...

ASP.Net, Drag-n-Drop, Postbacks, and Control IDs

The title attempts to summarize the problem, but here's a more detailed summary: our web page is a collection of usercontrols, which visually render as rectangular reporting widgets, which are set in AJAX updatepanels. We are giving the user the ability to drag and drop the widgets to pre-set "zones" on the page. The drag and drop fu...

Embeded Flash in asp.net accordian performs poorly

I'm using the ajax toolkit accordion extender and I notice it performs a little "funky" when I try to embed some flash in the content sections. You can see what I have working now at : http://kristinsconfections.com/gallery.aspx. As you can see when you toggle the accordion it's a little choppy. I'm pulling the flash slideshow from fl...

Making a website/project Portable

Good evening/morning/after/noon. I have an ASP.net 3.5 website and I am using vb.net in VWD 2008 Express, I am also using MS SQL Server 2008 Express, I used ajax tabs and a textBox charavters counter control develped by http://www.4guysfromrolla.com/ The database is attached with MS SQL Server Management Studio Express and the files are...

Resources for WinForms/WPF dev trying to learn ASP.NET

What are your best resources for a WinForms/WPF developer to come up to speed on ASP.NET? Will it take a complete paradigm shift for me to learn how to use ASP.NET or will it be a slight adjustment? I will award the answer flag to the post with a resource that gets me up to speed in the shortest amount of time. Downloadable code and c...

Why is javascript unable to get asp:Label innerText?

I have two labels: username and email. I use them to retrieve their content and pass them as method parameters. var lblEmail = $get('<%= lblEmail.ClientID %>'); var email = lblEmail.innerText; var lblUsername = '<%= lblUsername.ClientID %>'; var username = lblUsername.innerText; The email label is defined in the same way as username ...

Why is the UpdatePanel Response size changing on alternate requests?

We are using UpdatePanel in a small portion of a large page and have noticed a performance problem where IE7 becomes CPU bound and the control within the UpdatePanel takes a long time (upwards of 30 seconds) to render. We also noticed that Firefox does not seem to suffer from these delays. We ran both Fiddler (for IE) and Firebug (for ...

Title tag out of sync with AJAX

So when users land a on a product page on my website we have a few products we cross sell that can be swapped in to the main view with AJAX. The title tag changes, but it doesn't flip out with the first alternate product then stays one click behind as you flip through the additional products. The only thought I could have is that I'm n...

Update panel and javascript

Hello All, I have a user control whose structure is - <updatepanel UpdateMode="Always"> <ContentTemplate> <asp:FormView> <EditItemTemplate> <table> <tr id='tr1'> <td> Textbox1 btn1 </td> </tr> <tr id='tr2'> <td> ...

Serialize Entity Framework objects into JSON

It seems that serializing Entity Framework objects into JSON is not possible using either WCF's native DataContractJsonSerializer or ASP.NET's native JavaScript Jersializer. This is due to the reference counting issues both serializers reject. I have also tried JSON.Net, which also fails specifically on a Reference Counting issue. My ob...

How do I reference a web service in another project using a ScriptManager?

I have a web application project and a web service application project. I'm using ASP.Net AJAX and I want to reference a service called Tickets.asmx from the web service project and call it with JavaScript. (I'm referencing it [or trying to] in a ScriptManager on the page) I've done this before with the web service being part of the asp...

AJAX Autocomplete peformance

Can I know some tips and tricks to improve AJAX autocomplete performance? Thanks. ...