asp.net-ajax

asp.net ajax + http module fails

Hi, I am trying my hands on asp.net+ajax+httpmodule. My Form <form id="LoginForm" runat="server"> <asp:ScriptManager ID="LoginScriptMgr" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="LoginPanel" runat="server"> <ContentTemplate> <asp:Label ID="lblLoginHeader" Text="Login" runat="server"></asp:Label> <asp...

How do you use ScriptManagerProxy in a custom ASP.NET control?

Basically, I have created a custom control that uses an UpdatePanel, and as I understand it I need to use a ScriptManagerProxy to make it work ( since there should only be one ScriptManager per page, and is is declared in my .aspx page ).So, how do you use this beastie, is it just a matter of adding: <asp:ScriptManagerProxy ID="ScriptMa...

Is it Asp.Net or Ajax or can both technologies be used together when developing web sites?

1) A while ago I’ve started learning Asp.Net, but then I’ve heard that Ajax is “the new thing”. Since I don’t want to throw away the time I’ve invested into Asp.Net, I’d like to know if it is a common/recommended practice to use both technologies ( Asp.Net and Ajax) when creating websites and web apps in general? 2) If it indeed is a c...

ajax tab container not displaying with ucPageBuilder:PageHost

How can I create a tab panel series to be used interactively on a pagebuilder layout? I am using Ektron CMS400 version 7.66. This code seem to keep my tab from showing on the page:(ucPageBuilder:PageHost ID="ucPageHost1" runat="server" />) Thanks. ...

ASP.NET Ajax partial postback and jQuery problem

A control contains some HTML and some jQuery to handle a fancy tooltip to display when you click an image within a div. The control is then used on several different pages, sometimes within an updatePanel, sometimes not. I have the following code to handle loading the jQuery after a partial postback when the control is displayed within...

What is the difference between the $get and $find functions?

What is the difference between the $get and $find functions in javascript? I'm guessing that these functions aren't really javascript-native things, so an additional question would be what are they native to? Clarification The web app I've seen this in uses jquery and ASP.NET AJAX. Perhaps that changes the meaning of these functions? ...

How to iterate through ASP .NET textboxes using javascript and calculate a value ?

i have a multiple textboxes in repeater and i will enter value in those textboxes at runtime. and i want sum of all value entered in those textboxes in one label.i want to do this thing using java script. so can u please help me. ...

Dynamically attached event handler not working with Update Panel

I have a checkbox inside a update panel. Based on certain conditions, I set the autopostback property to true and also attach a event handler as below chkBox.CheckedChanged += new EventHandler(this.ChkBoxChaned_Click); But when the checkbox is checked/unchecked, autopostback happens but the event handler does not get hit. any thought...

AJAX ReorderList's DataKeyField

I am trying to do the following exercise: http://www.codeproject.com/KB/ajax/ReorderListSaveOrder.aspx But how do I access the DataKeyField of the reorderlist for each of the list items programatically... so that I can update them one at a time in the DB - with their new sort order? ...

Making an Ajax request to a page method in ASP.NET MVC 2

I'm trying to call a page method belonging to a MVC Controller from another site, by means of: $.ajax({ type: "GET", url: "http://localhost:54953/Home/ola", data: "", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { con...

How to use an UpdatePanel inside a Reapeater ItemTemplate with a HTML Table

I want to allow the user to edit by data by row, so only need content updated by row. I managed to achieve this by using a Repeater with a UpdatePanel in the ItemTemplate. Using a Div <asp:ScriptManager ID="ctlScriptManager" runat="server" /> <asp:Repeater ID="ctlMyRepeater" runat="server"> <ItemTemplate> <div> ...

Ajax comments form in ASP.NET MVC2, howto?

I've been playing around with different aspects of MVC for some time now, and I've reached a situation where I'm not sure what would be the best way to solve a problem. I'm hoping that the SO community will help me out here :P I've seen a number of examples of Ajax.BeginForm on the internet, and it seems like a very nifty idea. E.g. you...

Passing page control from jscript to pagemethod in the codebehind?

Hi, I am looking write a javascript method as such called when a dropdownlist changes value function GetStuff(sender, destID){ var dest = document.getElementById(destID); this.PageMethods.GetStuffs(sender, dest, null, null); } GetStuffs() is in the Codebehind as follows: [WebMethod] public static void GetStuffs(object sender...

Why Virtual keyboard does not trigger AutocompleteList?

Hi, I have to use a Virtual(on screen) keyboard on a asp:textbox which has a AjaxControlToolkit's automcomplete attached to it, the virtual keyboard I use is the jQuery keypad plug in: http://keith-wood.name/keypadRef.html , but I have some problems with combining these two: Typing in the virtual keyboard does not trigger the Autocom...

How can I programmatically add triggers to an ASP.NET UpdatePanel?

I am trying to write a quote generator. For each product, there are a set of options. I want to dynamically add a drop down list for each option, and then have their SelectedIndexChanged events all wired up to update the quote cost. I am not having any trouble adding the DropDownList controls to my UpdatePanel, but I can't seem to wire...

How to get the value of a textbox modified by asp.net ajax from client side(by javascript)?

I have a textbox in a asp.net update control. When I click a button on the webpage, the value of this textbox got modified. And I want to use javascript to get the modified value. The code I use was: var kmlString = document.getElementById('<%=TextBox1.ClientID%>').getAttribute("value"); It only got the original value of my textbox. I...

AJAX Toolkit for ASp.net MVC

Is there any ajax toolkit for asp.net MVC ...

How would you pass objects with MVC and jQuery AJAX?

I am finally experimenting and trying to learn MVC after years of asp.net. I am used to using asp.net AJAX PageMethods where you can pass an object that automagically gets parsed to whatever type the parameter is in that method. Javascript: PageMethods.AddPerson({First:"John",Last:"Doe"}); Code-Behind: [WebMethod] public static Resu...

Refresh Controls In ASP.Net AJAX Update Panel

Hi, I've got a and some controls between a ASP.Net UpdatePanel, when I want to update the label the update reflect on the screen but when I change the image buttons they don't. I set each button's visibility to false on OnClick event but then want to set it back to visibility = true. ...

What's the difference between $get and $find in JavaScript?

Hi, I'm a .NET programmer who've just started to learn more about client side scripting, and I was wondering sometimes you use $get('value') and $find('value') and I've discovered that these are just shortcuts for document.getElementById('value') and Sys.Application.findComponent('value'), respectively. However, I still don't understa...