asp.net-ajax

Convert c# to clientside Javascript

**UPDATED** I have an Asp.Net page with a list of options accompanied by a checkbox in a ListView control. I have applied Paging using the paging control. However i want to maintain the status of the checkboxes across the various paged pages of the ListView. I have done this with the following code private List<int> IDs { g...

For the combobox control (from Ajax toolkit) can I change the button next to the box?

I'm using the combobox control from the Ajax toolkit. Is there a way to set the image thats used for the button that shows up next to the dropdown box or am I stuck with the standard one? ...

history.go(-1) and UpdatePanel issue

Hello all, I have an UpdatePanel and inside of it there is a GridView and some controls so the user can type in some searching criteria. On the GridView there's one column with a link to another page and in that second page there is a link that does a simple history.go(-1). The problem is that after I go back to the original search re...

Asp.net Dynamic Validators don't work in Chrome or Safari

Ok, I'm dynamically creating Asp.net validation controls and inserting them into an update panel. The validation works in IE and Firefox, but not in Chrome or Safari. Here is the aspx file. Don't ask why I'm not using a button server control... <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <asp:Label ID="Label1" ...

Issues with $find using Telerik RadTreeView in Master Page

I have a RadTreeView on a MasterPage inside 2 nested RadSplitters. I am using LoadOnDemand, but need to be able to expand nodes from serverside code. I am attempting to do this by calling the method I have written to expand the node to the ResponseScripts. This method is in a RadCodeBlock as follows: <telerik:RadCodeBlock ID="RadCodeBlo...

Does the page load event still fire if a control is inside an update panel?

I have a page with part of a listview control inside an update panel. When a button is clicked in the listview I modify some data and call this.databind to refresh the data. It appears that the page load event is still firing even though the control is inside an update panel. I am wondering why the page load event is firing? Is it due to...

How to pass variables in to a JS file...

I know there's an easy answer to this, but this comes in the form of 2 problems. Problem 1: In an asp.net page there is a javascript block like this: <script type="text/javascript"> function doSomethingRandom() { var myVarToUse = <asp:Literal runat="server" ID="HackyLiteral" /> } </script> Ok, so it's a simplified ve...

Development Environment for Jquery and javascript

What develepment environment do you use when you need to work on javascript?What options have as an Asp.net developer for working with javascript or jQeury in order to have possibilities to test,develop in realtime? I tried to set up the intellisense to make it work the jquery documentation,but that's not working. Right now i'm using Fir...

MicrosoftAjax.js, SOAP Web Services, and static HTML

What is the proper way to call a ASMX Web Service with MicrosoftAjax.js if your just including the JavaScript in static HTML? What I have so far: <html> <head> <title>Testing</title> <script type="text/javascript" src="scripts/MicrosoftAjax.js"></script> <script type="text/javascript"> function testCallSoap() { ...

MVC Ajax form not submitting on IE

I have an ASP.NET MVC ajax form fully working on FireFox. Here's how the code looks like: <% using (Ajax.BeginForm("SendMessage", "Contact", new AjaxOptions { OnComplete = "ProcessResult" })) { %> <div id="inputArea"> <label for="Name" class="contactLabel">Your Name:</label> <%= Html.TextBox("SenderName", Model.Contact.SenderN...

AJAX ComboBox Control

Can anyone suggest an AJAX ComboBox control that will allow the dropdown to suggest items where the string typed in appears anywhere in the string not just at the beginning. Most of the controls I have found only search at the beginning. Infragistics is supposed to work by searching anywhere, but the performance is poor, and I haven't ...

Passing data into a ModalPopupExtender

I have a ModalPopupExtender that allows a customer to apply payment info. It has been working great. Then the customer asked to see the total due on the ModalPopup. This did not seem like a big deal to just take the total due from the parent control and pass it into the ModalPopup control. It seems like there is no easy way do to this. ...

Continuous calls to Ajax Modal Popup makes page slow

I am using Ajax modal popup on a page. This can be called n number of time. Steps are: 1. User opens the Modal popup. 2. Do some server things. 3. Fire OK server event. This will also hide() the modal popup. After repeting these steps almost 5 - 10 times, it makes page very slow. I have also called dispose() method of modal popup whi...

asp.net ajax in Full trust level

Controls such as RadControls, FtpWebRequest requires Full Trust Level. I had to change hosting from Godaddy to SoftSys cause I couldn't run my application properly according to the client's specification. What measures, do i need to take to secure my application on Full Trust level? ...

How to register click event of button in GridView header with ajax UpdatePanel

I have an UpdatePanel containing a GridView which contains a button in the HeaderTemplate of a TemplateField. I want to add this button's click event to the UpdatePanel's trigger collection but this doesn't seem to work as I get an error message saying that a control with the specified ID could not be found. I thought of programmatical...

ASP.NET AJAX UpdatePanelAnimation Extender: Cannot Reinstate a Div That Changes Size

In his UpdatePanelAnimation Extender video, Joe Stagner shows viewers how to animate an update panel during an update operation. Unfortunately, I've found that his sample code will not work if the targeted div's contents either grow or shrink after the update. For example, if you attach the UpdatePanelAnimation Extender to a div that c...

How can I have multiple UpdateTargetIds for AjaxOptions while using Ajax.BeginForm

I am using Ajax.BeginForm in ASP.NET MVC to post a form. I have one div being updated using AjaxOption's UpdateTargetId property. Now I need the post to update 2 Divs. I also need to return 2 different views. Here is the code that I have presently: <%using(Ajax.BeginForm("Create", new { controller = "View"},new AjaxOptions { UpdateTar...

Scrollup the div in updatepanel

Hi I need to scroll up the div as the new text comes in. My div is in Updatepanel and i am getting this error "get("divChatMessage") is null" Here is my code:- <script type="text/javascript"> function ScrollToBottom() { $get('divChatMessage').scrollTop = $get('divChatMessage').scrollHeight; } </script> <div id="divMessage" run...

ASP.NET ModalPopupExtender not rendering correctly

I have a fairly straight forward screen that contains two modal popups. The first confirms a delete type operation and the other allows you to edit form details. As soon as you open either for the popups they appear like they should but do not go away. At the bottom of the page they are rendered by asp.net with the exact same markup. I...

Returning a collection with Ajax Request

I have the following in my view: <ul id="statements"> <% foreach (var s in Model.Statements) { %> <%Html.RenderPartial("StatementControl", s); %> <% } %> </ul> Now I want to use Ajax to return a new Statements object when user clicks on one of several links: <ul id="statementChoices"> <li>group1<li> <li...