asp.net-ajax

Errors using Microsoft Ajax Controls

I am trying to add a TextBoxWatermarkExtender control into my ASP.NET 3.5 web application. I followed the tutorial Microsoft supplies here http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx and then I added in the control I wanted. My code looks like this: <asp:TextBox ID="txtEmailAddress" runat="server" Width="130px"><...

Making a call to a page that returns JSON using ASP.net AJAX

I have a Page that expects a POST Request and returns some JSON. Essentially it's an .ashx Page, but that doesn't really matter. When using jQuery, I would use jQuery.Post with "json" as dataType to simply make the POST request and get an object back. However, for the current project I mainly use ASP.net AJAX and I don't want to add jQu...

ASP.NET ScriptManager CompositeScript doesn't work with javascript that requires querystring param

I have a jQuery function in a .js file, and the function requires a querystring parameter to be passed. If I try to use the CompositeScript feature in the ScriptManager, it pukes on the file that has the querystring. Is there any way around this? ...

AsyncFileUpload is not accepting larger images.

hi I am trying to upload an image of size 800kb using Ajax AsyncFileupload control But on the server side the filebytes are null if the image size is large. can any body tell me the possible solution for uploading larger documents using AsyncFileUpload control. thanking you. ...

Calling one ModalPopupExtender from two different buttons?

I have a panel that is hooked up to a ModalPopupExtender but it can be called two different ways, by either adding a user (one button click) or editing a user (a totally different button click). The controls on the panel never change, but they are all blank when adding, or they are binded to the data of the particular user being edited....

How To Enable Keyboard Navigation for Large Application

I Have a Large Asp.net (somepages are Ajaxable but not all) which I want to Activate Keyboard Navigation for it. Some Shortcut key chosen to do or call some methods & Functions or visible and hide Page Elements. these shortcuts are more than 50 keys in addition users must be able to change any shortcut (in this time is not necessary bu...

I want to highlight a specific date when ajax calendar popup is opened

Hi I am Using an AJAX calendar extender as following. * Date <asp:TextBox ID="txtCalControl" runat="server" Visible="True" Enabled="false" CssClass="inputText" ErrorKey="IsValidDate" ></asp:TextBox> <span > <asp:Image ID="imbCaledar" runat="server" ImageUrl="~/Images/calendar.GIF" /> </span> </td> <td > <ajaxToolkit:CalendarExtender...

BlockUI enable form posting

I'm using the jQuery plugin blockui as part of a project, and it causing me some grief while trying to call a postback as part of an asp.net ajax updatepanel. Is there a way to enable form posting for an element without performing the .unblock() command? I was able to get around this for my submit button by using: ...

HttpContext Items Not Available to Web Method Called by AJAX

I have an item that I store in the HttpContext: HttpContext.Current.Items["myItem"] = "123"; I can access this no problem from any of a page's methods. For example: protected override void OnLoad(EventArgs e) { string l_myItemVal = HttpContext.Current.Items["myItem"] as string; // "123" } This works fine. However, when callin...

Modelpop up unload on when Click on any button on Panel

hello, i have a modelpopup extender in my page.i am using this to search some data from database like customer etc. when i put search criteria on panel and as i click on serach the model popup goes and i want been able to make it visible as soon i finish the searching a code and then i select that code. kindly help me out than...

AJAX PagingBulletedListExtender - View All

I'm using the PagingBulletedListExtender with an IndexSize="1". This displays alphanumerics relevant to the list items. Is there a way of having all items in the collection be displayed? ...

ASP.NET Ajax Library

while using the ASP.Net Ajax Library to load scripts does it check to see if the script is already loaded? For example, if I have a script block in my aspx page and one in my master page and they both load jquery via the sys.require() method with jquery get loaded twice? ...

ASP.NET AJAX AutoComplete Extender Scrolling Issue

I was looking at the ASP.NET AJAX AutoComplete Extender sample on http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx Once the items are populated in the list the scrolling doesn't seem to work in IE8 but it works in IE7. How can I make the scrolling work in IE8? ...

Ho to correctly derive from an ASP.NET ScriptControl base class?

How do I correctly derive from a script control? Especially how to correctly define the script descriptors. Let's say, I have a MyScriptControl class implementing IScriptControl: public IEnumerable<ScriptDescriptor> GetScriptDescriptors() { ScriptControlDescriptor descriptor = new ScriptControlDescriptor(GetType().FullName, ClientI...

not able to focus to textbox after asp.net updatepanel postback

Hi, I am using asp.net update panel for part of the page. I have a textbox outside of the updatepanel. This textbox is used to search for employees. If the user does some action inside the update panel that causes a postback and after the page is rendered I cannot click on the textbox to enter text. This happens in IE7. But in IE8 it wo...

AJAX .NET CollapsiblePanel inside a gridview is causing memory leaks?

One of our ASP.NET pages has a significant memory leak. After a process of manual enable/disabling, I narrowed down the issue to a set of collapsible panels which are dynamically built on the code page and placed into an UpdatePanel which is already on the page. Using sIEve, I was able to see that this control apparently is creating a ...

Thread Safety in Javascript?

I have a function called save(), this function gathers up all the inputs on the page, and performs an AJAX call to the server to save the state of the user's work. save() is currently called when a user clicks the save button, or performs some other action which requires us to have the most current state on the server (generate a docume...

Why doesn't AJAX UpdatePanel work in ASP.NET 2.0 Web Site template?

I'm just getting into AJAX (little late I know) and am walking through some of the tutorials on the ASP.NET/AJAX site. One thing I've noticed is that I cannot get the UpdatePanel to work in the ASP.NET Web Site template. I can use the EXACT same markup, code, and web.config in the AJAX 1.0-Enabled ASP.NET 2.0 template and everything wor...

how to clear gridview

I want to clear my gridview. I have 2 GridViews and Has Select Button On It. on Selecting this button that item goes into the second gridview. now the question is how should i clear the second grid view. I am trying the clear method but clear method is not found in my visual studio.. ...

ASP.NET Ajax Library

when loading a control imperatively how can I also get the css file to load as well? <script type="text/javascript"> Sys.require(Sys.components.watermark, function() { Sys.create.calendar("#input1"); }); </script> I know you can load required scripts or even dependand scripts but what abou...