CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 6/21/2007 10:42:58 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 52 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
IceAngel89
Asp.Net User
Regular Expression Validator6/21/2007 10:42:58 AM

0/0

i have 2 problems with my validator:

it dont seem to work that ok

A Reg Exp like "^$" should match a NULL String right? but in VS ASP it validates as invalid input if i leave the textbox null 

also sometimes, i cant rmb when they don't seem to behave like what it should be. like i use a site to test my Reg Exp http://www.nvcc.edu/home/drodgers/ceu/resources/test_regexp.asp 

and how do i disable it? so that it dosen't validate my inputs.

 

 
RegularExpressionValidator3.Enabled = False
RegularExpressionValidator3.Visible = False
Control.ValidationExpression = "" 
 

 

All didn't work 

iuliax
Asp.Net User
Re: Regular Expression Validator6/21/2007 11:11:10 AM

0/0

RegularExpressionValidator3.Enabled = True


Popa Iulia
____________________
MCP.MCAD.MCSD
Benson Yu - MSF
Asp.Net User
Re: Regular Expression Validator6/26/2007 10:46:07 AM

0/0

Hi IceAngel89,

Set the ?Enabled? property to ?false? can disable it. Following is my test code; it works well on my machine. Please test it, I hope it is helpful to you.

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="RegularExpressionValidator" ControlToValidate="TextBox1" Display="Dynamic" ValidationExpression="^$"></asp:RegularExpressionValidator>
            <br />
            <asp:Button ID="Button1" runat="server" Text="Button" />
            <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Style="position: static" CausesValidation="false" Text="Disable" /></div>
    </form>
</body>
</html>

***********codebehind file
        protected void Button2_Click(object sender, EventArgs e)
        {
            RegularExpressionValidator1.Enabled = false;
        }

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming ASP.NET: Building Web Applications and Services Using C and VB.NET. Authors: Jesse Liberty, Dan Hurwitz, Pages: 988, Published: 2003
Sams Teach Yourself C# Web Programming in 21 Days Authors: Phil Syme, Peter Aitken, Pages: 560, Published: 2001
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
ASP.NET for Web Designers Authors: Peter Ladka, Pages: 648, Published: 2002
ASP.NET: Tips, Tutorials, and Code Authors: Scott Mitchell, Pages: 878, Published: 2002
ASP.Net Web Developer's Guide: Web Developer's Guide Authors: Robert Patton, Mesabāha Āhamada, Mesbah Ahmed, Jonothon Ortiz, Pages: 736, Published: 2002
Visual Basic .NET Developer's Guide to ASP.NET, XML, and ADO.NET Authors: Jeffrey P. McManus, Chris Kinsman, Pages: 592, Published: 2002
ASP.NET Kick Start: Kick Start Authors: Stephen Walther, Pages: 624, Published: 2002
Sams Teach Yourself ASP.NET in 21 Days Authors: Chris Payne, Pages: 1104, Published: 2002
C# for Java Programmers Authors: Brian Bagnall, Harold Cabrera, Syngress, Jeremy Faircloth, Stephen Goldberg, Philip Chen, Pages: 608, Published: 2002

Web:
Regular Expression Validator // sweeting.org Regular Expression Calculator. This is a simple JavaScript-based RegExp validator. It simply states the number of times the patern (regexp) matches the text ...
RegularExpressionValidator Class (System.Web.UI.WebControls) Minimal)> _ Public Class RegularExpressionValidator _ Inherits BaseValidator ... The RegularExpressionValidator control checks whether the value of an input ...
Javascript Regular Expression Validator | Regular Expressions ... Web-based javascription regular expression tool and library for testing regular expressions.
ASP.Net Tutorial - Understanding Regular Expressions (ASP.Net ... Regular Expressions in ASP.Net, used in Validator Server Controls are kind of like applying rules to the text input. If the Regular Expression above were ...
Regular Expression Validator This tool is useful when you are creating Regular Expression. This tool will help you in checking syntax of the regular expression typed in.
CodeProject: Regular Expression Validator Web Service. Free source ... This is a simple web service that can be used to validade a regular expression.; Author: Ricardo Martins; Section: Web Services; Chapter: Web Development.
RegularExpressionValidator Control (General Reference) Evaluates the value of an input control to determine whether it matches a pattern defined by a regular expression.
Regular expression validator [Archive] - CodingForums.com [Archive] Regular expression validator ASP.NET. ... View Full Version : Regular expression validator. hytechpro. 02-08-2006, 05:57 AM ...
patterns & practices – Enterprise Library - Discussions Discussions List | Create New Discussion. Wiki Link: [discussion:37760]. Regular Expression Validator Tags: General discussion, Validation Application Block ...
RegularExpressionValidator expression help - .NET ASP RegularExpressionValidator expression help. Get answers to your questions in our .NET ASP forum.

Videos:
Eagle's View --- Regular Expression This is one of the new features in Eagle's View v1.6. Please visit www.biblewordtour.com for more information.
Yoshinori Takesako - s/ Perl5 Regular Expression / Perl6 Regex and Rule /mixes; Yoshinori Takesako - s/ Perl5 Regular Expression / Perl6 Regex and Rule /mixes; (YAPC::Asia 2007)
Regular Expression Users: Train a Teacher On the Power of Find and Replace! Regex can really help speed up the most annoying of simple document fixes... teachers can really use it to leverage grading! Devs! Build more scrip...
VI - VIM editor tutorial (part2) sequel of the VI tutorial with some regular expression examples
Abigail - RegExp-Common Perl Programming Talks at YAPC::Braga A talk about the Perl module Regexp::Common, which provides a repository of many common (and uncommon) regular...
S Club Juniors -Puppy Love on TOTP I'm not normally a Calvin fan but this little Calvin is too cute here! Incidentally, he kind of looks a bit bewildered in here. Or is that his regul...
Save Time On Your PPC Projects Using RKGDuck RKGDuck is a free handy Windows utility that lets you put Perl filters into the Windows cut-and-paste buffer. That sounds arcane, but a few minutes ...
IP-based Rustock.B infection I took a brief video of an exploit/Rustock.B (along with a bunch of other malware) infection being run by a site that does Country-based IP detection...
LyX FindAdv patch - usage of regular expressions Advanced usage of the LyX FindAdv feature added by the patch at the URL: http://bugzilla.lyx.org/show_bug.cgi?... In addition to searching for arbi...
. \ ' UBUNTU LINUX ' / .: Eureka! got TextAloud working TextAloud working atop Wine in Ubuntu. Note Wine is a windows replacement, it doesn't emulate a machine and has running windows on it. It actually im...




Search This Site:










visual studio 2005 deployment project

problem with sub-section replacement

duplicate classes with web application project

precompiledweb folder. what is it? please help!!!

web publishing - how to?

wdp for server control

want to have the user asked for confirmation, when building in release configuration

where is the connection string for the aspnetdb.mdf

weird problem with option merge each individual folder output its own assembly

unalbe to use web deployment project

vs2008 + wap + wdp + seperate assembly for each page. too hard...

warning msb3245: could not resolve this reference

spelling error

aspnet_merge report object reference not set to...

creating my own messagebox

extra files in wdp output

aspnet_merge doesn't work with indigo's .svc files

local resources

partially trusted callers

new version of ilmerge, what about aspnet_merge?

@(precompiledoutput) emtpy in afterbuild target

vs2005 wdp, no vista?

problem with aspnet_merge.exe

using an existing .wdproj in my asp.net web application

error aspparse: could not load type global

adding setup forms in web deployment project

package development with .net framework

merged dlls not being deleted after-the-fact

compiling before deployments aspx & aspx.cs

web deployment project build error : datetime.minvalue.ticks

  Privacy | Contact Us
All Times Are GMT