Question
How to write a custom validation function in a seaprate class (C#) like Functions.cs, where the function can be called to validate the following from
How to write a custom validation function in a seaprate class (C#) like Functions.cs, where the function can be called to validate the following from the Code-Behind such as Validate()...... Can not use Validator.
In my aspx page, I need to validate these input:
-The name, address, and phone number textboxes cannot be blank.
-The user must select an option to either pickup their order or have it delivered.
-The user must select at least one pizza before completing the order. This means they need to add a checkmark to at least one row in the GridView for a PizzaType.
-A quantity must be entered for every PizzaType that is checkmarked in the GridView.
div> casp: Label ID "1b1Name" runat "server" Text "Name: "> casp:TextBox IDa "txtName" runat "server" >x/asp: Textbox> Kasp: Label ID-"1blAddress" runat-"server" Text-"Address: "x/asp: Label>Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started