Validations

Discussion in 'ASP .Net' started by =?Utf-8?B?UCBL?=, Nov 10, 2005.

  1. Hi,

    I have to do some validations related to various fields on the server.
    I cannot use the .net Validation controls.
    On page load I call my validation function. If it returns false I need to
    send back the page without continuing with the other event handlers.

    How do I do this?
     
    =?Utf-8?B?UCBL?=, Nov 10, 2005
    #1
    1. Advertisements

  2. Add a private variable (let's say IsPageValid) and set it to false then in
    every event handler check first If IsPageValid Then...<do the event
    handling>... Else Return.
    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "P K" wrote:

    > Hi,
    >
    > I have to do some validations related to various fields on the server.
    > I cannot use the .net Validation controls.
    > On page load I call my validation function. If it returns false I need to
    > send back the page without continuing with the other event handlers.
    >
    > How do I do this?
     
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, Nov 10, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Paugh

    vbscript validations and .NET

    Jon Paugh, Dec 17, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    517
    bruce barker
    Dec 17, 2003
  2. Gary Smith

    Validations......

    Gary Smith, Feb 15, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    721
  3. DotNetJunkies User
    Replies:
    1
    Views:
    448
    Teemu Keiski
    May 1, 2004
  4. Murat YILMAZ

    Page client validations are not working...

    Murat YILMAZ, Oct 28, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,962
    Scott Allen
    Oct 31, 2004
  5. rvsraghu

    Datalist validations. . .

    rvsraghu, Apr 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    614
    Karl Seguin
    Apr 2, 2005
  6. anil kumar via .NET 247

    how to close asp.net web page with out effect of validations

    anil kumar via .NET 247, Apr 7, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    6,737
    Shawn H. Mesiatowsky
    Apr 7, 2005
  7. David Lozzi
    Replies:
    3
    Views:
    368
    David Lozzi
    Apr 15, 2005
  8. =?Utf-8?B?UElTQ0VT?=

    Validations for TIME

    =?Utf-8?B?UElTQ0VT?=, May 9, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    341
    Kevin Spencer
    May 9, 2005
Loading...