asp.net-ajax

How to get variables from JavaScript to ASP.NET (MVC)

I'm using ASP.NET MVC (I'm really new to both asp.net and the asp.net mvc type projects, but trying hard to learn). I've set up MVC with a controller so that it runs a C#.net method which; queries an mssql db converts it to json returns the json string It's called from the javascript by requesting an url with a parameter. But what ...

Ajax calendar extender doesn't set textbox value

Hi, I've got a code: <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" Enabled="True" TargetControlID="TextBox1"> </asp:CalendarExtender> and it works. When i click textbox i've got a popup ajax extender, a...

Update using AJAX and JQuery

I'm trying to do a simple update, but can't figure out somthing. I have a table that i get from a DB with an Edit button that when i press change to a Save button so i can save with Ajax the record that the user just edit. I'm doing the first part just fine, have one function that do all the jquery stuff on the page (that is working just...

ASP.NET MVC ,Maintaining Model State between Ajax requests

problem: On first full page request, my controller invokes an applicationServices Layer (Web Service Proxy to my business tier) in order to populate a collection of current services that is stored in my own controller base class property. This is then to be displayed within a view. Everything within the context of that controller has ac...

adding tooltip for a column in component art grid

Hi, I am new to component art grid. I am trying to add tooltip to a column in the component art grid.I have to show the data of the column in the tooltip when i mouse over each record. Can you please help me in this issue. Thanks. ...

serverside controls vs html controls from AJAX point of view

hi, i know this question have been mentioned alot here but mine is a little more updated, now with ASP.net 4 and new Ajax client templating plus JASON services. so if i got all these new capabilities will i really need server side controls as long as i can bind on client side, create data-views on client side heck i can even use data-c...

asp mvc: how to pass parameter to controller using jquery api?

I am following the following tutorial (http://www.highoncoding.com/Articles/642_Creating_a_Stock_Widget_in_ASP_NET_MVC_Application.aspx) on using ajax to render a partial form , but in this example parameters are not passed, and I have not been able to work out how to do it... This code works with no parameter function GetDetails() { $...

json ihttpmodule compression

Hi, I wrote an IHttpModule that compress my respone using gzip (I return a lot of data) in order to reduce response size. It is working great as long as the web service doesn't throws an exception. In case exception is thrown, the exception gzipped but the Content-encoding header is disappear and the client doesn't know to read the excep...

Error with Ajax.Beginform on ASP.NET MVC Page

Hi I am using Ajaxy Call to load the partial view. It is working fine in Firefox and IE without in Debug Mode. But in Debug mode, I am getting the follwoing error: Error: 'Sys' is undefined Ajaxy call Code: <% using (Ajax.BeginForm("SearchResults", new AjaxOptions { UpdateTargetId = "divLoadSearchResults" } )) {%> HTML View Sourc...

asp.net ajax control toolkit combobox displays incorectly when in fieldset with style of position:relative

I currently have an Instance of the ASP.net ajax control toolkit combo box residing in a field set with a style of position:releative applied. The control also sits in a very plain table (please no comments about using tables for lay-out, I know it is evil and try to avoid it). There are two problems with the display of the list: The...

netvibes fucntionalities how to ?

hi, i have stumbled upon this site www.netvibes.com of course many of you know it. now i got 4 questions i hope some one would help me on it -first is there is a small gray handle between the widgets column that let you re size the whole column and the widgets get re-sized upon that ? -second is how you can create dropping zones like ...

How to accept a JSON string array in an .aspx Page method

I am using jQuery ajax to pass a string array to a page method. I need to know what to do with that data once it gets to that page method. My goal is to insert it into a DB but before that I need to make sense of the array. As it is, it is coming over like this: { data : theArray} which correlates to {data: 1,2,3,4,5,6}. But 4,5, and 6 r...

Getting the Session Inside an ASP.Net ScriptMethod

I have a list of objects which I store in the session. This list then appears on a web page with little "X"s next to each item. When one of them is clicked I use Javascript to remove the item from the list on the page and then I send an AJAX call to the server to remove the item from the list in the session also. Here's where things g...

status code returned from the server was: 0

We have an ASP.NET + AJAX web app. When browsing the app in Firefox3.6, it always show status code returned from the server was: 0 but it does not happen in IE8. The pages have several auto update sections and make requests to the database at a certain time intervel. Checked all possible solutions on internet none of those works. Anyon...

How can I secure my ASP.NET AJAX application?

Ajax seems to give a better user experience, but I'm not so sure if I take the right steps to protect and secure my application. Is there a checklist of things I must pay attention to? ...

Flexigrid- How to bind data to flexigrid(jquery) ?

I am trying to use flexigrid(jquery) to display my data.. I have downloaded some examples but somehow i have not been able to figured out "How to bind the data to flexigrid" which i am fetching using ajax, and which currently is in array.. Basically i dont know how tryconvert my data in Json object.. Or is their any other way(I dont want...

creating a jquery plugin with user control or custom control please help.

hi, i have read this article and it look really sweet, and what i want is exact same thing to create strongly typed jquery plugins so basicly it is just outputting javascripts, css and html controls. my question though is will it better to do it this way or using a custom control and using the xhtmlwriter or what is the best way and ( i...

custom ASP.NET TextBox on textchanged event

Hi, I want to let TextBox control TextChanged event fire only when there are more than one character in the TextBox. Thank you. ...

How to add/edit functionality in the same page without flickering?

My current asp.net(c#) project required add/edit functionality in the same page without flickering. To fill the textbox,fileuploader & dropdown list etc while updating the contents. I searched google,but fileuploader not working properly in the ajax update panel Please give examples/reference for solving the problem. ...

Autocomplete extender on a textbox without using webservice.

Hi Guys, I don't want to use a webservice to populate an autocomplete extender on a textbox. In this case, it's where the user is entering country name and I don't want to make a trip to the database every single time. I'd much rather keep a collection in session state and 'bind' the autocomplete to that. Is it possible to set ServiceP...