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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Default MaskedEditExtender and MaskedEditValidator CSS Class Location

Posted By:      Posted Date: October 03, 2010    Points: 0   Category :ASP.Net

I am new to using the MaskedEditExtender and MaskedEditValidator controls. When I went to set these up, I found that it entered the CSS class names automatically for the following properties.

OnBlurCssNegative = MaskedEditBlurNegative
OnFocusCssClass = MaskedEditFocus
OnFocusCssNegative = MaskedEditFocusNegative
OnFocusCssClass = MaskedEditError

However, I do not have these CSS classes in my Styles.css file. Where are these CSS classes located? Also, if I do include these same classes in my own stylesheet, will it override whatever the classes state in this default location or do I have to call them something different?

View Complete Post

More Related Resource Links

How to change the default page base class?


I've tried setting the <pages pageBaseType="DynamicWebPage" /> value in web.config, but when I response.write out the page type, I'm still getting Microsoft.WebPages.WebPage.

I'm simply trying to sub-class WebPage and add some additional functionality such as a dynamic PageData dictionary similar to Phil Haack's dynamic ViewData dictionary.



The type '' exists in both '' and ''

For some reason though it appears that one of my class files (_common.cs - in the App_Code directory) is being included in the WAP .dll file as well as when it compiles the App_Code at runtime.error CS0433: The type 'inlinehockey._common' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25321638\9b5c4b00\assembly\dl3\3657f4e6\cd91aef5_4d5cc601\inlinehockey.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25321638\9b5c4b00\App_Code.xad_ajc1.dll'  The error was not knowing what dll to use for the type when you get the CS0433 error.How can I get round this error?ThanksJeremy Thakewww.made4the.net

How to set a default location for saving Profiler templates

How do you change the default location for saving Profiler templates.  I've done this before, but don't recall how.  And now I'm trying to setup 2008 to reference a network location vs. the local hard drive on my PC. Thanks,  Dave

how to change the default log file location?


I recently install SQL2005 on my win 2003 server. I have 3 drives (C, D, E).  The sql is installed on D. 

When I install SharePoint, it create the database for me.  However, both data & log files are default to D:\Program files......

As advised, I should separate data & log files into different drives.  How can I set the default data file to D and log file to E?  Can I detach the model database and move the current ldf file to E.  Then update the new location when I reattach the model database?  Will this change my future default log file location?   Is this save to do it this way? or I shouldn't touch the model database.  Instead, do a manual change after a new database is created?! 



Insert Ignored When Time Field Populated (MaskedEditExtender & MaskedEditValidator)


I have a C#/ASP.NET web application that utilizes the Entity Framework and pages with DetailsView controls that provide CRUD operations through EntityDataSource objects. The fields in the DetailsView control are template fields with various standard ASP.NET web controls. I have a table that contains various fields with different data types, including time(7). However, the controls for the time fields also have the AJAX MaskedEditExtender and MaskedEditValidator controls attached to them.

Everything works great, until a record is inserted where a value is specified for a time field. When that happens, it acts like it's inserting, posts back, executes statements, etc. but no record is inserted. No statement is sent to SQL (as seen by a SQL trace), no exception is thrown, nothing... it acts as if everything went perfectly, it just doesn't insert the record.

Since no exception is thrown and the code being executed is inside the EF, I'm kind of at a loss as to where to track this down. I have "Enable .NET Framework Source Stepping" enabled, but it doesn't step into the EF code. Can someone help?

How to Configure MaskedEditExtender & MaskedEditValidator



I have a C#/ASP.NET web application that contains DetailsView controls that are used for CRUD operations through the EntityDataSource and Entity Framework. Unfortunately I'm not sure which forum would be best to post this under, since I am wondering whether either the MaskedEdit AJAX controls or Entity Data Model could be configured to allow for this.


The Entity Framework requires time fields to be of time(7) data type, which must be entered as 24-hour time, with seconds (e.g. '09:30:00'). However, I want the time entered in 12-hour time and without seconds (e.g. '9:30 AM'). Is there a way I can configure the MaskedEditExtender and/or MaskedEditValidator to allow for this. What I was thinking is possibly using the AutoComplete portion of this control to fill in the remaining portions (i.e. seconds) that the user does not enter, but which the EF requires. Either that or can the Entity Data Model or something else be configured to allow for this?

Existing Code

<asp:TemplateField HeaderText="Start Time" SortExpression="StartTime">

SharePoint Workspace 2010 Default Caching Location

Hi all, We are currently working with SharePoint Workspace 2010 and need to change the default caching location for offline files, we have been looking for a registry entry to do this with no success. Is it possible to change this caching location?

SharePoint Workspace 2010 Default Caching Location

Hi all, We are currently working with SharePoint Workspace 2010 and need to change the default caching location for offline files, we have been looking for a registry entry to do this with no success. Is it possible to change this caching location?

Editing default backup location



I am running out of space on the sharepoint pc's C drive. This is due to the c:/Andor folder that sharepoint is backing up spbr* files.

Where can i change where these files are backed up to, i want them backed up to a different drive?

Default location of data files


I had changed the default location setting for database in the "Database Options" tab of SQL server setting and it has taken effect when I create new database using Management Studio.

But when using CREATE DATABASE DBName the file still gets created in the old location. I dont see any option to change the setting any further. Its an SQL 2005 cluster. Is this a bug or am I missing a setting somewhere?

Arun Jebakumar B

How to change the default backup location?

SQL Server puts backups in a default folder C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup
Is there a way to change that to a different location?

I'm using Smo.Backup object in my code to create backups. The backups I create are stored in that default folder, but I was hoping that I can change that default location without having to make code changes.
Is that possible?


How to change the default location of SQL Server Profiler Template?


How can I change the default location of SQL Server Profiler Template from C:\Users\xxx\AppData\Roaming\Microsoft\SQL Profiler\10.0\Templates\Microsoft SQL Server\90?  If I log on to a Windows machine as certain user, anything created in appdata\roaming folder during that logon session will be lost after I logged off.  

If there is no way to change the location, how can I set up such user to retain anything created?  I know this question is related to Windows administration but I guess someone in here probably have experienced my problem before.

Class Diagrams

Class diagrams show the static structure of the systems. Classes define the properties of the objects which belong to them. These include:

Attributes - (second container) the data properties of the classes including type, default value and constraints.

Creating a Simple Class in C#

The second article in the C# Object-Oriented Programming tutorial describes how classes are created in C# and how behaviour, in the form of publicly visible and private, hidden methods can be added. This demonstrates some of the uses of encapsulation

Static Class for Beginners

In general, the members of a class can be accessed by instance of that class when they are in public, but there comes a situation to access or call members of a class without an instance and this can be achieved by declaring them as static

Default ASP.NET Architecture

In providing an architectural approach, some assumptions are made concerning the project goals. These assumptions should be used as a litmus test to determine if the described architecture may be an appropriate fit for your ASP.NET application.

abstract away the source of the connection string using a class with a static property.

ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

Let's abstract away the source of the connection string using a class with a static property.
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