.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Jean Paul
abhays
satyapriyanayak
SP
ASPEvil
Post New Web Links

AjaxControlToolkit.MaskedEditExtender mask for 0 or 1 entry only - is this possible?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net
 

Hi, my asp.net app requires input into text boxes for dynamically generated different types of values, and I'm wondering if it's possible to dynamically set the mask extender for each textbox to only allow specific values? For example, I would like to be able to set a mask to only allow a '0' or '1' character for one box. For another, I only want to allow the values 'T' or 'F'. How would I do that using a mask?

Thanks if you can help or point me in the right direction!




View Complete Post


More Related Resource Links

Ajax MaskedEditExtender mask not working properly after turning off readonly

  

Hi,

I ran into a strange issue with the AJAX MaskedEditExtender control, the extender is used with the Mask="99/99/9999" and MaskType="Date". Initially when the page loads the textbox was set to readonly using textbox.Attributes.Add("readonly", "readonly") in the codebehind. After the page loads if the user clicks on a certain button it would change the textbox to editable using javascript code: textbox.readOnly = false. The strange thing is after that if you start typing in the textbox you can see the entire mask (__/__/____) shifting to the right as you type. For example it looks something like this: 09__/__/____ instead of the normal 09/__/____.

If the textbox was never set to readonly in the first place this behavior won't happen. So it seems something got messed up when changing from readonly to not. I was able to reproduce this in a barebone aspx page with just the textbox, the mask extender, and a button that when clicked turning off the textbox's readonly. Anyone knows how I can fix this?

I'm using Ajax toolkit v3.0.30512

Thanks.


Need help, ASP.NET AJAX, AjaxControlToolkit

  

Hi, please forgive me if this question already answered before. I need help urgently.

I'm developing a web application (not website) which can be created under "New->Project->ASP.NET Web Application". I'm using Visual Studio 2010.

My problem is, all AJAX working fine except for the AjaxControlToolkit. I try to include the ValidatorCalloutExtender and it failed to work as in it won't display. However I created same thing using "New->Website->ASP.NET Website" instead and it works.

Question: Is AjaxControlToolkit only work on website but not web application? Is there anyway to use it on web application?


Basic Instincts: Dynamic Data Entry With XML Literals

  

Learn how to use Windows Presentation Foundation (WPF), XAML, and the deep XML support in Visual Basic to generate user interfaces dynamically.

Beth Massi

MSDN Magazine October 2008


Toolbox: User-Friendly UIs, Online Data Entry Controls, and More

  

Microsoft® Office is one of the most well-known and most-used consumer products. For many people, their only experience with a computer is when using Office, be it checking e-mail, creating presentations, or writing a document.

Scott Mitchell

MSDN Magazine February 2006


Vrooooom: How .NET and C# Drove an Entry in the DARPA Grand Challenge

  

Find out how the .NET Framework, a team of programmers, and a bunch of people from Carnegie Mellon University built an automated car to compete in the DARPA Grand Challenge. Along the way you get some inside tips on building an extensible real-time control architecture based on a whiteboard metaphor and implementing an accurate GPS-synchronized timer component for .NET.

John Hind

MSDN Magazine December 2004


AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. - Error being thrown while building asp.net si

  

Everytime I build my site in VS2010 Beta I recieve a few ajax errors before the site loads here they are in order as they pop out on the build; 

 

throw new Error("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.");


 

And then Next this line is throwing an error, I have a watermark ajax field on the page that I created a long while ago;

Sys.registerComponent(Sys.Extended.UI.TextBoxWatermarkBehavior, { name: "watermark", parameters: [{name:"WatermarkText",type:"String"}, {name:"WatermarkCssClass",type:"String"}] });


 And then lastly;

 if (Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked())


 

Even with these exceptions the page loads fin

AjaxControlToolkit.HTMLEditor adding H1,H2,H3

  

I like to use the ajaxcontroltoolkit, but i'm missing the H1,H2,H3 possibilities.
How can i add it to the editor?

With a override class i can add some buttons, but how can i add the posibility to set <h1></h1> on the selected text?
And what if i change the H1 to H3...

I'll got stuck in this, i know how to add a button and javascript to it, but don't know how to add the H1 to it.
Also would a dropdownbox be better i think.
Can someone help me?


Coding to add a button:

                AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton b = new AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton();//= new AjaxControlToolkit.HTMLEditor.ToolbarButton.ImageButton();
                b.Visible = true;
                b.Attributes.Add("onclick", "javasciptcode");
                TopToolbar.Buttons.Add(b);               


 


AjaxControlToolkit v3.0.20820.0 with SP 2010

  

First let me say sorry if this is the wrong forum or place for this question.  I followed a link from Roy Tian of Microsoft Online Community Support to post here.  If I'm in the wrong place please let me know

I've been working on a project using MOSS 2007 for quite some time and I've been using the Collapsible panel extender successfully.  After installing the same assemblies on SP 2010 I've found an issue with what I think is the CollasiblePanelExtender.  I receive the following JavaScript error:

Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://sschaff-d830win/ScriptResource.axd?d=hkE0C-mon3hEzu1u5RC5qNML7UetI_KAwydLEusX1UxMCjQ48uOPyaAWsV096dH0lkOHD4jIyPJVImyX1fkY6bRSzz2Wek3Zc08xuemhBTw1&t=ffffffffec2d9970


Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: ht

How to create a single entry page for site collections in MOSS 2007

  

Hi,

I have  7 site collections containing a few hundred team collaboration sites. Some users are internal (intranet) but most are external (extranet). Extranet users are experiencing problems with losing links to their sites and forgetting which URLs to use. So I would like to create a single entry page that all users can enter after the logon process, which shows a list of sites they have permission to access, and other user-specific information. Perhaps relevant documents, tasks, recently modified documents etc.

I know this sounds like a 'My Site' but we want to use use a general welcome page instead. We use Windows authentication.
What is the best way of doing this and is it something that can be done in SharePoing Designer or does it need to be done in Visual Studio?

Many thanks in advance.


Using tabs from the AjaxControlToolkit causes error: ...control contains code blocks (i.e. <% ... %>

  

I'm getting the error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

When attempting to add the tabs from the AjaxControlToolkit.  A little background..Theres an existing aspx page in a microsite which used the accordion control and the tabbed control ...I need to modify this page to use a different masterpage. 

The original site was .Net Framework 2.0 and the page in question used AjaxControlToolkit 1.0. which I manually installed originally.  Some of the site has been further developed using the .Net Framework 3.5.  (Come with AjaxControlToolkit) Now I have come to update this aspx page and I get the error above.

I have narrowed the down to the TabContainer (I think)  Does anyone have any experience with this sort of problem?  Also what version of the AjaxControlToolkit should be with the .Net Framework 3.5? I have 1.0.20229.20821. 

I also tried to browse to the AjaxControlToolkit.dll to add the tools to the tool box as they're missing... thinking this may be an indicator as to why it wasn't working. I get the error: 'There was an error loading types from assembly C:\inetpub\wwwroot\project\Bin\AjaxControlToolkit.dll Could not load file or assembly 'System.Web.Extensions. Version=

System.EntryPointNotFoundException: Entry point was not found. when unit testing html helpers

  

I'm trying to unit test a very simple html helper but keep getting the following exception:

System.EntryPointNotFoundException: Entry point was not found.

public static string AdditionalUsersDropDownList( this HtmlHelper helper, int additionalUsers )

{

Dictionary<int, string> items = new Dictionary<int, string>( );

items.Add( 0, "None" );


for ( int i = 1; i <= 30; i++ )

{

items.Add( i, i.ToString( ) );

}


SelectList list =  new SelectList( items, "Key", "Value", additionalUsers );

return helper.DropDownList( "AdditionalUsers", list );

}

AjaxControlToolkit.HTMLEditor Please Help

  

Ok, so this has been driving me mad for 2 days. I have a AjaxControlToolkit.HTMLEditor named Editor1. I created a custom button, but how do I get the contents of that button into my editor?


If I do Editor1.content = MYBUTTONVALUE it over rides everything i currently have in my content box.

Please don't point me to WYSIWYG applications either, b/c non are free.


Thanks


why runat="server" attribute is required for ajaxcontroltoolkit controls?

  
the doubts i have may looks silly,i started my carrier in dotnet recently,1)we are calling them as client side controls,then what is the need for runat server attribute?2)<asp:Button ID="Button1" runat="server" Text="Button" /> <asp:ConfirmButtonExtender ID="Button1_ConfirmButtonExtender" runat="server"              ConfirmText="Really?" Enabled="True" TargetControlID="Button1">  </asp:ConfirmButtonExtender>when i execute the above code,i observed that in status bar message as "connecting to localhost",if they are client side controls what  is the need of going to local server,why it is happening?Thanks in advance.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend