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. Advertising

  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. Advertising

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:
    439
    bruce barker
    Dec 17, 2003
  2. Gary Smith

    Validations......

    Gary Smith, Feb 15, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    567
  3. DotNetJunkies User
    Replies:
    1
    Views:
    358
    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,821
    Scott Allen
    Oct 31, 2004
  5. rvsraghu

    Datalist validations. . .

    rvsraghu, Apr 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    461
    Karl Seguin
    Apr 2, 2005
Loading...

Share This Page