ajaxcontroltoolkit

How to get the checkbox id that placed in a repeater for update panel?

与世无争的帅哥 提交于 2020-01-06 08:18:08
问题 I have checkbox inside a repeater and repeater is placed inside of an update panel. The checkbox have an checked changed event and I need the id of the checkbox so I can state it in autopostbacktrigger inside triggers. But I can't access the id as it is placed inside the repeater. How can I get the id of the checkbox? <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div class="row"> <div class="col-md-4"> <div style="padding-top: 10px; padding

ajaxToolkit:AjaxFileUpload capture file description

谁都会走 提交于 2020-01-05 09:24:26
问题 I'm trying to get the FileDescription asp:textbox to save into a db when the user clicks upload but it's coming back blank. what am I doing wrong? this is in my upload.aspx file <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" ThrobberID="myThrobber" OnUploadComplete="AjaxFileUpload1_UploadComplete" ContextKeys="" AllowedFileTypes="jpg,jpeg,doc,xls" MaximumNumberOfFiles="1" runat="server"/> </div> File Description<asp:TextBox ID="FileDescription" Width="200" runat="server" ></asp:TextBox> and

ajaxToolkit:AjaxFileUpload capture file description

 ̄綄美尐妖づ 提交于 2020-01-05 09:24:05
问题 I'm trying to get the FileDescription asp:textbox to save into a db when the user clicks upload but it's coming back blank. what am I doing wrong? this is in my upload.aspx file <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" ThrobberID="myThrobber" OnUploadComplete="AjaxFileUpload1_UploadComplete" ContextKeys="" AllowedFileTypes="jpg,jpeg,doc,xls" MaximumNumberOfFiles="1" runat="server"/> </div> File Description<asp:TextBox ID="FileDescription" Width="200" runat="server" ></asp:TextBox> and

Calendar control is not popping-up when clicked on image

我是研究僧i 提交于 2020-01-05 08:11:16
问题 I'm using a CalendarExtender control with the help of <img> to populate a TextBox with a date. I am using this in EditItemTemplate of GridView . But when I click on the image, the calendar control is not poping up. I have used this CalendarExtender control in four or five other places (in this project) also. Everywhere else it is working fine. I have compared the code from the well working version to this code. No difference at all. I have written the code like below: <EditItemTemplate> <asp

Radio Button won't stay check if I have a modal window open up when it is selected

Deadly 提交于 2020-01-05 06:28:54
问题 In a asp.net web project when the user selects a radio button I need a modal window to open up and prompt for user credentials. I have the "TargetControlID" set to the radio button. The modal opens up just fine but when it goes away the radio button isn't checked. EDIT: Removed code for personal reasons 回答1: When the Modal goes away, just recheck the radio button $("radio button").attr('checked',true); 来源: https://stackoverflow.com/questions/11562598/radio-button-wont-stay-check-if-i-have-a

Ajax Control Toolkit HtmlEditorExtender: Xss Attacks

大憨熊 提交于 2020-01-04 05:15:12
问题 I'm using Ajax Control Toolkit in my ASP.NET project and I have a problem with HtmlEditorExtender which name is ContentHtmlEditor . HtmlEditorExtender attached to TextBox which name is ContentBox . I tried to make an XSS Atack. I edited html code with Chrome and inserted the following string: <a href='javascript:alert()'>bla-bla-bla</a> After post back ContentBox.Text equals to <a href="javascript:alert()">bla-bla-bla</a> . As you can see javascript:alert() hasn't been removed but as I know

Modal Popup Extender auto closing after .Show()

荒凉一梦 提交于 2020-01-04 02:56:12
问题 I am using ModalPopupExtender from AjaxToolkit for asp.net. I am trying to have a ModalPopupExtender triggered with different buttons. The problem is that unless I am using the TargetControlID the popup opens and quickly closes within under a second. I need this popup to be accessible by several different buttons with the same panel being used everytime. The code below should replicate the problem nicely, on my actual application it almost works fine. Even content being updated with the

Want ajax multiple file upload on my button click event

你离开我真会死。 提交于 2020-01-04 02:20:08
问题 Here is my .aspx page code <form id="form1" runat="server"> <asp:ToolkitScriptManager runat="server"> </asp:ToolkitScriptManager> <asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" Width="400px" OnUploadComplete="OnUploadComplete" Mode="Auto" /> <asp:Button ID="abc" runat="server" Text="Button" OnClientClick="$('.ajax__fileupload_uploadbutton').trigger('click');" OnClick="abc_Click" /> </form> .aspx.cs code is protected void OnUploadComplete(object sender, AjaxControlToolkit

AJAX Control Toolkit Loading All Scripts

一世执手 提交于 2020-01-02 07:31:28
问题 I have a bit of a weird problem I can't seem to fix. I am using the AJAX Control Toolkit's calendar extender on some of my pages. Despite the information I've found via the web I can't seem to get it working with a regular ScriptManager control, it only works with a ToolkitScriptManager . However I've noticed that when the page loads it adds some 84 script files for every possible control script provided by the toolkit: Is this the expected behaviour, and can I turn it off? I only need it to

weird Ajax ComboBox drop down list

我怕爱的太早我们不能终老 提交于 2019-12-30 10:44:34
问题 I've got combobox inside some panel : <ajaxToolkit:ComboBox ID="YearList" runat="server" OnInit="YearList_Init1" EnableTheming="false" Width="45px" ViewStateMode="Disabled" /> and it was OK before I updated project to .NET 4 , after updating project (And AJAX) to .net4 it's looking like really strange ... I can't explain it proper , I will show : how can I fix it ? :) Full CSS / ASPX page here -> https://github.com/nCdy/Issues/tree/master/Ajax%20ComboBox (string # 287) 回答1: I had a similar