Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 11-03-2009, 09:00 PM   PM User | #1
asifakhtar
New Coder

 
Join Date: Feb 2009
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
asifakhtar is an unknown quantity at this point
I need a recommendation on how to do the validation in this case without postback

Hi Every 1,
I have a Create/Delete Users and Roles aspx form with C#.

I want the form to validate whether the user had any opened tickets in the past before deleting that user. If the user has any opened tickets then the deletion is not permitted. I want client side validation for this purpose without postback.

Just to update you on this, my form will get the user opened tickets information from SQL SERVER Database (I know how to do this.).

I need a recommendation on how to do the validation in this case without postback(I want the form to validate whether the user had any opened tickets in the past before deleting that user. I want client side validation for this purpose).

Thanks
asifakhtar is offline   Reply With Quote
Old 11-03-2009, 10:24 PM   PM User | #2
Freon22
Regular Coder

 
Freon22's Avatar
 
Join Date: May 2005
Location: USA
Posts: 274
Thanks: 2
Thanked 5 Times in 5 Posts
Freon22 is an unknown quantity at this point
To validate without doing a postback you will have to use javascript.
__________________
Power tends to corrupt, and absolute power corrupts absolutely.
Lord Acton 1887

Last edited by Freon22; 11-05-2009 at 01:51 PM..
Freon22 is offline   Reply With Quote
Old 11-06-2009, 10:30 AM   PM User | #3
Nischumacher
Regular Coder

 
Nischumacher's Avatar
 
Join Date: Oct 2005
Location: Bombay, India
Posts: 196
Thanks: 0
Thanked 2 Times in 2 Posts
Nischumacher has a little shameless behaviour in the past
on page load... if the user has any opened tickets... then hide the delete button... or add attribute for onclick...
__________________
- NS 666
.net DEVILoper
Nischumacher is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:00 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.