AJAX

AsyncFileUpload file filter

The AsyncFileUpload control (part of the AjaxControlToolkit) does not expose a method that enables you to limit or filter the types of files that can be uploaded. You could add logic to the server side event UploadedComplete to check the file extension prior to saving the file but you would need to upload the file [...]



IScriptControl

A friend of mine was trying to create a control that would limit the amount of text that could be typed into a asp:TextBox with multiline set to true.  I have done something similar years ago, a composite control with a textarea and a label that indicated how many characters remained before the textbox was full.  I [...]



Content Panels & Update Triggers

An update panel trigger allows an asynchronous event be to raised from outside of the update panels content template. <asp:UpdatePanel runat=”server” id=”up1″> <ContentTemplate> <asp:Literal id=”ltTest” runat=”server”/> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID=”btnTest” EventName=”Click”/> </Triggers> </asp:UpdatePanel> <asp:Button runat=”server” id=”btnTest” Text=”Go” OnClick=”btnTest_Click”/> When using master pages and the update panel and trigger control are within different content areas the [...]