ajaxcontroltoolkit

CSS Issue - ASP.NET Calendar picker

我与影子孤独终老i 提交于 2019-12-11 01:49:20
问题 EDIT With one of the below answers, I was able to correct this issue for the rendering within a table. I'm still seeing this issue within my ListViews. I've tried this CSS for the ListView, but it has not corrected the issue. /* FIX FOR CALENDAR IN TABLE */ .DateTime_Edit { white-space: nowrap; } .DateTime_Edit table { border: solid 0 #FFFFFF; width: 0; height: 0; padding: 0; margin: 0; } .DateTime_Edit table tr td { border: solid 0 #FFFFFF; padding: 0; margin: 0; } /* LISTVIEW, NOT WORKING *

Returning data with AjaxControlToolkit's async AJAXFileUpload control in ASP.NET

北战南征 提交于 2019-12-11 01:40:35
问题 I'm using the above control (note it's the ASP.NET one. I seem to see lots of people using a similarly named one written in javascript) to allow upload multiple uploads of files with a progress bar, drag-n-drop, etc. That part all works fine but I need to return two pieces of data along with the file. Specifically, it's a user entered latitude and longitude that comes from two text boxes. Since the upload control is async, the contents of the text boxes don't get posted back so I can't access

Execute server side code on ModalPopupExtender okcontrolid clicked

我只是一个虾纸丫 提交于 2019-12-11 01:37:57
问题 I am using ASP.NET and C#. I want to popup this little screen, then when the OK button is clicked, I want to update the main screen based on the input to the popup. Sounds like it should be a regular thing. Is it possible, and if so, how? <cc1:modalpopupextender id="ModalPopupExtender1" runat="server" cancelcontrolid="btnCancel" okcontrolid="btnOkay" targetcontrolid="txtCosCodeExpCode" popupcontrolid="Panel1" popupdraghandlecontrolid="PopupHeader" drag="true" backgroundcssclass="ModalPopupBG"

Did Client Templates in ASP.NET AJAX 4.0 get dropped entirely, in favor of the jQuery Templates plug-in?

橙三吉。 提交于 2019-12-11 00:26:05
问题 I think that Microsoft dropped client templates from the AJAX Toolkit in favor of jQuery Templates plug-in. I'm trying to find full documentation on this and except for some "will do" blog posts such as this one I am unable to find anything except @#$%-loads of bogus, obsolete documentation and magazine articles from the Preview / Beta days of ASP.NET AJAX 4.0. Can anyone please confirm that the ASP.NET AJAX 4.0 Client Templates feature is, in fact, jQuery Templates , officially, and that

AjaxFileUpload: How can I alert the user to a server-side error in OnUploadComplete?

前提是你 提交于 2019-12-11 00:13:52
问题 I've got the AjaxFileUpload control working just fine -- it uploads, and on completion calls the server-side code to move the files around, works just fine, etc etc etc. What I'm worried about are potential server-side errors, and how to hand back some sort of warning to the user. Not an Ajax error, but something on the server-side code. Now, I've got log4net running just fine, and it's called in my error-trapping code and merrily dumping logs when I hard-code an error. But that doesn't tell

How to limit year in ajax calendar extender

一世执手 提交于 2019-12-10 19:25:23
问题 I have a Calendar Extender. I want to show only current year in calendar. User can not select 2010 as current year is 2011. So how to do this ? 回答1: Use the StartDate and EndDate properties to set a range of acceptable dates that you want to allow the user to select - you can set this in the markup as per krolik's answer, or in the code-behind so you can set it to the current year e.g. CalendarExtender.StartDate = new DateTime(DateTime.Today.Year,1,1); CalendarExtender.EndDate = new DateTime

Ajax AutoCompleteExtender — styling individual items?

我的梦境 提交于 2019-12-10 19:05:54
问题 Short version: I want to know how I can change the css style of individual items generated by an autocompleteextender, but the control only allows me to set the styling of all items as a group. Long version: I have a search box that utilizes an AutoCompleteExtender. As you type, search results pop up in a box under the search box. <asp:TextBox ID="txtSearch" OnChange="javascript: Changed(this);" runat="server" style="width:360px;" /> <cc1:AutoCompleteExtender ID="Search_AutoCompleteExtender"

Ajax Control Toolkit AutoCompleteExtender displays html source character by character of the current page as autocomplete suggestion list

我与影子孤独终老i 提交于 2019-12-10 16:55:06
问题 I am trying to implement the autocomplte example on http://www.aspsnippets.com/Articles/AJAX-AutoCompleteExtender-Example-in-ASPNet.aspx to my own web page. Author says; Here I am explaining, how to use AJAX AutoCompleteExtender Control directly with ASP.Net Web Page without using any web service. I have downloaded AjaxControlToolkit installed the toolikt written the code according to my own aim. My code is as the following: <!--Default.aspx--> <%@ Register Assembly="AjaxControlToolkit"

Change text in TextBox outside of UpdatePanel

Deadly 提交于 2019-12-10 16:42:11
问题 I have a gridview inside an UpdatePanel ( gridview is showing in a popup). On click of select button in that grid I am trying to set a textbox text in the page. But its not working ,if I remove the update panel then it will work. Please help. This is my code in aspx: <div><asp:TextBox ID="txt" runat="server /></div> <asp:UpdatePanel ID="updLendersearch" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnLenderSearch" EventName="Click" /> </Triggers>

Clear up AjaxToolkit AsyncFileUpload control

浪子不回头ぞ 提交于 2019-12-10 14:03:10
问题 I am using an AsyncFileUpload control in my aspx.net page. This control is running inside an update panel. I can successfully upload files to the server asynchronously. My problem is that I can't refresh the entire page after each file is uploaded, so I need to figure out how to clear up the last uploaded file, so when the user selects a new file to upload, the old file does not appear in the control and the control does not keep its last upload in ViewState. I have tried this http://www