asp.net-ajax

ASP.NET callback to encoded URL with UTF characters fails on IE

I have Russian blog built with BlogEngine.NET 1.5. I use Russian words in links encoded with URLEncode, so links are human-readable in most browsers - FF, Chrome, Opera (except for IE, but this is not the real problem with this browser). This idea is not mine, I borrowed it from Wikipedia - it uses encoded URLs on localized sites. The ...

Execute a javascript function when textbox is populated in jQuery?

How do I execute a function in JavaScript when a text box is populated with text? The text box with be hidden from the user. It will be populated by a USB magnetic card swiper. Pseudo code: <script language="javascript" type="text/javascript"> function MyFunction() { //execute this function when MyTxtBox is populated ...

ScriptManager causes server error

I'm playing around with MonoDev on my mac and wanting to see how well it can run basic ASP.NET applications which I've worked on. I chose a very basic site, it's got a handful of ASP.NET pages, all of which inherit nested master pages and some ASP.NET AJAX stuff. The project is .NET 2.0 and I have the web.config set appropriately for AS...

Timer in ASP.NET AJAX

I have a UpdatePanel control in which there is a ListView that would read some data from a SQL Server.I want to use a Timer to periodic update this ListView every 1 or 2 minutes. What should I do in the Tick Event to do the partial refresh in the UpdatePanel? ...

LINQ-to-SQL Locks SQL Server during query?

Having a weird problem. I'm testing an ASP.NET application I wrote that queries SQL server via AJAX. The application is using LINQ-to-SQL to load data from approx 8 or so tables in a join, and every once in a while, the call to SQL server locks up and never returns. My first thought was that it was getting deadlocked, but from what I'...

How to user Frames with ASP.NET 2.0 / OR AJAX ??

Hi, I would like to use a flash menu in Asp.net 2.0. However, I have two problems: How do I keep the menu static so the animations do not refresh with page clicks? Example would be like a 'frames' but within ASP.NET 2.0... Do I use the old HTML Iframes approach?? Or can I use something more contemporary using AJAX or something like ...

asp.net toggle button extender and modal popup extender collision

I am currently moving some form fields on an existing webform into a modal popup window using the asp.net toolkit extender. One of the fields uses the toolkit's toggle button extender on a checkbox a works quite well. When I move the checkbox and extender into the modal popup div, the toggle button extender stops working. After confirm...

selectedindexchanged on dynamically created gridview

Hello, I've created a gridview dynamically, now i want to fire an event when the selectedindex has changed. GridView NewDg = new GridView(); NewDg.ID = "SubGridView" + e.Row.RowIndex.ToString(); NewDg.DataKeyNames = new string[]{"logentry_id"}; NewDg.SelectedIndexChanged += new EventHandler(NewDg_SelectedIndexChanged); NewDg.RowDa...

How to dynamically create a fully functional gridview in javascript with the results returned from a script service.

Hi i need to create a fully funnctional gridview with the results returned from a script serice ( AJAX enabled WCF Service ). The grid should allow user to sort and page the data. could any body drive me to the proper technology or a useful link. thanking you, Ramana kumar. ...

Replacement for ScriptManager when aiming for Ajax History functionality

When you are creating a Search for your Website, you Want the user experience to be as good as anytime and when you are browsing your gridview you want to be able to press the Back Button to go back to the previous viewed page. In asp.net with asp.net ajax it's possible when using the ScriptManager + Ajax Control Toolkit where there is ...

ASP.Net Ajax File upload

Hi, I am trying to upload an image and after uploading i want to show it in the image control. My code is: <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> ...

ASP.Net Ajax File upload

Hi, I am trying to upload an image and after uploading i want to show it in the image control. My code is: <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> ...

JQuery Autocomplete on ASP.NET MVC view

I have a working jQuery Autocomplete (the one by bassistance) in my view. The problem is I am just not getting this stuff. The MVC action returns JSON data and the plugin reads it out nicely and filter works great - it lists the results and I can choose from the dropdown. But then when I choose it nothing happens - I select an item eithe...

How to call two functions on single event. one as a javascript function other a server side function.

I want to call two functions on same event 1 is client side and other 1 is server side. How can i do that <input type="text" ID="txtUserName" runat="server" maxlength="50" class="DefaultTextbox" style="width:180px;" value="" onfocus="ControlOnFocus('', this, spanUserName);" ...

How To Change Ajax Control Toolkit Controls Button Text

Ajax Control Toolkit provides too many useful control and I've use them in a multi language application, nothings bad and everything's fine. the question is that , How can I change the Ajax Control Toolkit Buttons Text, for example in Confirm Button Extender and vice versa . any help appreciated ...

ASP.NET Ajax-enabled WCF Service, how can I 'post' instead of 'get'?

Hi All, I'm using a simple ajax-enabled WCF service. I'm creating a string of XML on the client and doing a get (by default). Here is the code. I see the 'WebGet' attribute, but there's no 'WebPost' [OperationContract, WebGet(ResponseFormat = WebMessageFormat.Json)] public string PrepareDoc(string inputXML) { var arg ...

How to: Create a asp.net ajax extender which have updatepanel and updateprogress controls in it?

Hi, I want to create a asp.net ajax extender which have updatepanel and updateprogress controls in it so that: I will drop my extender to my form, and updateprogress control will be automatically shown for every update processes. How can I do it? ...

Asynchronous File Uploading in Asp.net

HI How to upload files asynchronously in asp.net without postback thannking you. ...

AJAX/Javascript PageMethod.FunctionName, Trying to made this code reusable in ASP.NET

I have implemented AJAX for calling server side function using client side function call i.e Calling server side function using javascript tag by using PageMethod in javascript. I have few question regarding the same implementation. function OnBlurCall() { chk(ControlId, SpanMsgId, FunctionName)// where all these pa...

How do I load views independent of the site.master?

I'm preparing an application I wrote in ASP.Net MVC for some light Ajax-y stuff. Basically, I want users to be able to go to different parts of the page without it reloading. To do this I want to be able to reload the body of my page. My site master is broken down into a head body and foot div. I want to be able to use something like ...