ajaxcontroltoolkit

Why do CSS styles only take affect when placed in a style tag in my form and not in the associated CSS file?

馋奶兔 提交于 2019-12-11 14:38:37
问题 Thanks to [this question][1] about repositioning the AJAX toolkit's CalloutExtender control, for an answer to my problem of positioning Validator CallOuts on a web form. Can someone tell me why adding the CSS classes directly to my web page within a <style> element has the desired effect but when adding the same classes to a linked CSS file, they have no effect? So, adding: <style> .CustomValidator {position:relative;margin-left:-80px;} .CustomValidator div {border:solid 1px Black;background

Trying to add ajax TabContainer, getting error “The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>).”

守給你的承諾、 提交于 2019-12-11 12:17:37
问题 I want to add an ajax:TabContainer to my webpage. I don't get any build errors, but when I try to browse to the page, it gives me the error: "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).". I re-downloaded the Ajax Control Toolkit for the sample sites, opened the solution in VS, ran the sample for the TabContainer, and it worked fine. I thought it was perhaps a different version of the Ajax Control Toolkit - but no. The

The Event Handler of the OK button inside a Modal PopUp is not executing

可紊 提交于 2019-12-11 11:33:10
问题 Problem here is, i have a Modal PopUp Extender inside a User Control, which is called from another User Control inside a Page, inside a Master Page. The Page loads the first user control dinamically and when i want to display the modal dialog it loads the User Control into a placeholder dinamically and call the show method of the modal when the Modal Pop Up User control loads. Inside the modal I have some TextBoxes and a Button to save some data into the database. The problem is that the

AjaxControlToolKit ModalPopupExtender Drag snap back to center

时光总嘲笑我的痴心妄想 提交于 2019-12-11 11:03:06
问题 I am using ModalPopupExtender of AjaxControlToolKit 4.0 (ASP.NET 4.0), every thing working fine, when I drag ModalPopup it is dragging, but the problem is that it is snaping back to its original location(Center). The same code is working on: http://www.asp.net/AjaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx I have search about this issue but all solutions are given by using external Java script code, but what can be the mistake on following code while the same code working

Calling an Ajax-enabled WCF Application from AutoCompleteExtender

无人久伴 提交于 2019-12-11 10:30:48
问题 I'm trying to use a WCF service to fulfill MS Ajax AutoCompleteExtender completion list. I tried two alternatives. If I add a WCF service in my website project, AutoCompleteExtender calls it thriugh POST and it works fine. Then I decided to make a separate WCF Application and add my AJAX-enabled WCF service to new application. I also copied part of Web.config of my site concerning servicemodel . And it doesn't work! First of all, autocomplete calls a service uing GET , not POST . I changed

Show static non-clickable heading in AutoCompleteExtender list

吃可爱长大的小学妹 提交于 2019-12-11 10:21:51
问题 I have an AutoCompleteExtender from the Ajax Control Toolkit. I need to have a heading in the dropdown list that shows how many items found, but it should not be selectable as an item. I have tried this using jQuery, but even when I just add as a div, it is still selected as an item into the text box when I click on it: function clientPopulated(sender, e) { var completionList = $find("AutoCompleteEx").get_completionList(); var completionListNodes = completionList.childNodes; for (i = 0; i <

DateTime.Parse or Convert.ToDateTime is not working

前提是你 提交于 2019-12-11 08:23:29
问题 I have a textbox with a calendar extender. The format should be like this: <add key="DateFormat" value="dd/MM/yyyy"/> I have the following on my aspx markup <asp:TextBox ID="txt" runat="server" meta:resourcekey="txt" MaxLength="150" HtmlEncode="False"></asp:TextBox> <ajaxToolkit:CalendarExtender runat="server" TargetControlID="txt" PopupButtonID="Image1" Format="<%$Appsettings:DateFormat%>" /> WHen I try to use it in a property like this: datett= DateTime.Parse(txt.Text), It says

Can you use findcontrol with an Ajax Accordion in c#?

你说的曾经没有我的故事 提交于 2019-12-11 07:55:01
问题 This goes along with another question that I have asked, I have a drop down list on my master page that causes postback when changed and in that index changed method I am trying to find my ajax accordion to look at the selected index of it protected void ddlSelectedCustomer_SelectedIndexChanged(object sender, EventArgs e) { CustomerSelected(); Response.AppendHeader("Refresh", "0;URL=storefront.aspx"); ViewState["SelectedAccordionIndex"] = (AjaxControlToolkit.Accordion)FindControl("MyAccordion

Button event doesn't fire inside Update panel for FileUpload

大兔子大兔子 提交于 2019-12-11 07:46:05
问题 I have a asp.net web form Page which uses master page also. This is a simple page which displays some text and has a form, this page also allows user to upload resume in .doc, .docx & pdf format. Problem with this code is that i am not able to trigger for some reason <asp:Button ID="btnUploadCV" runat="server" Text="Upload" CssClass="btnUpload" onclick="btnUploadCV_Click"/> <%@ Page Title="" Language="C#" MasterPageFile="~/en/SiteMasterPage.master" AutoEventWireup="true" CodeFile="career.aspx

CSS Help - How can a DIV ignore css previously set on the page?

纵然是瞬间 提交于 2019-12-11 07:29:09
问题 I am using AjaxControlToolkit CalendarExtender. Some previous rule in my stylesheet is affecting div's within the calendar. div#paymentRegion div { float:left; width:49%; } There are DIVs within the calendar that are being forced to 49%. How can I have the calendar ignore the previous settings and use the styles that come with the calendar? Is that possible? I am afraid to change the current rule, but I think it probably needs to be, however many other divs on this control rely on it. What