ajaxcontroltoolkit

Ajax Controls Toolkit and Ajaxmin

♀尐吖头ヾ 提交于 2019-12-23 16:28:15
问题 I am learning how to use the Ajax Control Toolkit using VB.NET in code-behind in Visual Studio 10.0.40219.1 SP1Rel, .NET 4.0.30319 SP1Rel. I have been to many websites and tried lots of code, using the AnimationExtender. The sample that came with the toolkit works perfectly, but on http://localhost:1049/ which is different from my "view code in browser" url: http://localhost:4258/ When I change the url to mine, I get this error: Could not load file or assembly 'AjaxMin, Version=4.97.4951

How can I make CalendarExtender StartDate attribute take the current date?

喜你入骨 提交于 2019-12-23 13:16:17
问题 I thought something like this <ajaxToolkit:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" TargetControlID="txtDatumPoaganje" Format="MM/dd/yyyy" StartDate=<%=DateTime.Now%>> But it doesnt work. I can make something similar with JavaScript and alert message: how to disable previous dates in CalendarExtender control through its render event? but it's not the same. 回答1: Try SelectedDate instead of StartDate. Also, the link below says you can't set selecteddate from the html side,

The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'System.Web.UI.WebControls'

孤者浪人 提交于 2019-12-23 10:57:41
问题 I am getting the following errors The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?) The type or namespace name 'ModalPopupExtender' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?) The type or namespace name 'Accordion' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?) I have installed

How to clear file upload text in server side (c#)

房东的猫 提交于 2019-12-23 07:04:29
问题 I want to clear the file path from the file upload. The file upload is inside the update panel and I am using a AsyncFileUpload . How can I clear the file and change the background color of the fileupload btnAudUpload_Click Method string filename =FileUpload.FileName; string Fullpath = Path.Combine(@"D:\Media", filename); if (FileUpload.HasFile) { if (filename.ToLower().EndsWith("mp4")) { //Saving the file } else { //I want to clear the FileUpload content here } } 回答1: Clear the Attributes

Cant get text from textbox in method for AjaxFileUpload1_UploadComplete

爱⌒轻易说出口 提交于 2019-12-23 05:14:18
问题 Don't really know what's wrong but i have an AjaxFileUpload from the ajaxToolKit and in the method in code behind for upload complete i try to fetch the user id from my textbox to link the document to the file uploaded. Somehow, this doesnt seem to work, whats wrong? Here is my aspx <div class="floatLeft"> <asp:Label id="idSearchLabel" runat="server" >Employee ID:</asp:Label><br /> <asp:TextBox id="idSearchTextBox" runat="server" CssClass="textbox125" ></asp:TextBox> <asp

Using a CalendarExtender with a MaskedEditExtender

不问归期 提交于 2019-12-23 02:21:19
问题 I'm trying to have a textbox function exactly like the third textbox down on this page: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/MaskedEdit/MaskedEdit.aspx. I'm trying to use a CalendarExtender control with a MaskedEditExtender, because I don't want the user to be able to enter anything except a valid date into the box. On my maskededitextender I have a mask of "99/99/9999" but it seems to only work when the date is actually 8 digits (e.g. 12/12/2000) and not when the date is 7 or 6

Make postback when the OkButton in a ModalPopup is clicked in ASP.NET AJAX

余生长醉 提交于 2019-12-22 12:18:10
问题 I follow the example in Atlas: Creating a Confirmation Using the ModalPopup Extender to make a postback when the OkButton in a ModalPopup is clicked (it uses the ModalPopupExtender that comes in ASP.NET Ajax Control Toolkit), but as I can see, the Sys.WebForms.PostBackAction() is no longer present in ASP.NET AJAX (the example is for Atlas). When I run it the "Microsoft JScript runtime error: Object expected" error message raises, in the line in javascript where I create the PostBackAction.

How do you get/set content via javascript with the AJAX Control Toolkit HTML Editor?

徘徊边缘 提交于 2019-12-22 09:49:45
问题 I'm using the AJAX Control toolkit HTML editor and have what I hope is a simple question. As the question title says - how do you get/set the content of the HTML editor via javascript? I have no problems accessing the server side content property - but how to do it client side? Any help gratefully received ! 回答1: The Html Editor is one of the unique Ajax Control Toolkit controls, becuase it does not inherit AjaxControlToolkit.ExtenderControlBase (server side) nor inherit AjaxControlToolkit

Close AJAX Control Toolkit BallonPopupExtender on mouse out

徘徊边缘 提交于 2019-12-22 08:57:19
问题 Does someone know how to close Ballon Popup Extender from client side? Everything is fine but since I set up BPE to display on mouse hover it is really impratical that it don't have any close or hide method on mouse out I tried: function hideElement() { document.getElementById(ID).style.display = 'none'; } function hideControl() { document.getElementById('<%=ID.ClientID%>').style.visibility = "hidden"; return false; } I hooked up above methods to one of divs onmouseout, I can hide any control

Update Progress animated gif stops on postback

社会主义新天地 提交于 2019-12-22 08:46:14
问题 I have used ajax update progress control that shows the animated gif when postback happens. Problem: It displays for a while but then it stops refershing (or rather, stops playing/revoloving). What could be the actual cause of the same? Please advice!. Thanks! 回答1: The animation of a .gif will stop on PostBack with Internet Explorer. The problem is inherent to Internet Explorer. Apparently this issue goes all the way back to IE 6 (though I've only confirmed it in IE8). There is a little hack