473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Form Authentication

Hi,

1. I have a group of check boxes and i want to force the user to click at
least one. If none is checked i want a message to be displayed.

2. I have 3 Drop Down Lists and 2 Input Boxes. I want to display a message
everytime all 3 Drop Down Boxes have the value "- - - " and the Input Boxes
are empty. This way i am forcing the user to make, at least, a selection or
fill one of the input boxes.

Can you tell me how to do this?
I am using ASP.Net / VB.

Thank You,
Miguel

Nov 20 '05 #1
1 1032
Select Case True
Case txtFaxsID.Text = ""
MessageBox.Show("Error Please Notify Simon")
Exit Sub
Case txtFaxsNumber.Text = ""
MessageBox.Show("Error: Please enter a value for Fax Number")
Exit Sub
Case txtFaxsSerial.Text = ""
MessageBox.Show("Error: Please enter a value for Serial")
Exit Sub
Case txtFaxsMake.Text = ""
MessageBox.Show("Error: Please enter a value for Make")
Exit Sub
Case txtFaxsModel.Text = ""
MessageBox.Show("Error: Please enter a value for Model")
Exit Sub
Case cboFaxsSite.SelectedIndex = -1
MessageBox.Show("Error: Please select a Site")
Exit Sub
Case cboFaxsDepartment.SelectedIndex = -1
MessageBox.Show("Error: Please select a Department")
Exit Sub
End Select

HTH
MCN

"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:uC**************@TK2MSFTNGP11.phx.gbl...
Hi,

1. I have a group of check boxes and i want to force the user to click at
least one. If none is checked i want a message to be displayed.

2. I have 3 Drop Down Lists and 2 Input Boxes. I want to display a message
everytime all 3 Drop Down Boxes have the value "- - - " and the Input Boxes are empty. This way i am forcing the user to make, at least, a selection or fill one of the input boxes.

Can you tell me how to do this?
I am using ASP.Net / VB.

Thank You,
Miguel

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rudi Groenewald | last post by:
Hi there... I use SQL server integrated security so when a user opens a database in access it prompts the username & password in a small popup box on connection, but I'd like to use my own...
5
by: mvr | last post by:
Hi all IIS 5.0, ASP, and https:// I have "DataEntrypage.asp" which is a data entry page(about 250 data elements includes text boxes, radio buttons, check boxes, drop down boxes etc). ...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
0
by: Shailesh Gajare | last post by:
Hi All, I have a login page and a data page. For data page authentication is required. For few users authentication is being done by my server (.Net Server ) where form authentication is being...
3
by: serge calderara | last post by:
Dear all, I clearly underdand the advantage of both type of authentification but is it allowed or possible to set the Authentication mode to Windows and then handle a login form for defined...
2
by: Gnic | last post by:
Hi, I am a page that sit on a form authentication directory, but I have 1 or 2 pages that don't require form authentication, also I have a web service class in this directory as well, I am...
2
by: nick | last post by:
I have an Asp.Net 2.0 application using form authentication. I want the html pages be protected by the authentication system too. The accessing of html files need to be authenticated in my local...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.