Home / dating the enemy tv show / Validating checkboxlist asp net c

Validating checkboxlist asp net c

I need a form where a checkbox must be checked in order to submit.

I am using C# and am pretty new to it, I just found out the Required Field Validator that works with text box's won't work with checkboxes so I need another way to do this.

Does anyone know a way to validate checkboxes in ASP. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Provide some details on your code, and i'll help you figure out why it's not working.

Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S. "Thanks, but I saw something like that already and we don't have Visual Studio . url=/library/en-us/vblr7/html/The bin directory will be in the web application root and will hold all of the assemblies the application uses. Via the resource switch of csc.exe, for instance this would embed in my App.cs: C:\ boulder_bum, thanks again, but there is no "css.exe" on our Web server, we have no "bin" directory and no "web application root," either, in our Web server, and I don't write C#.

I'm tempted to extend Custom Validator, add a property Control Value Id2 to pass the ID of my second Check Box List, but i can't help but feel there must be a better way.

The reason i use 2 checkboxlists is because the data is coming from 2 different database with different schemas and even if they look the same, under the hood they are different.

validating checkboxlist asp net c-14validating checkboxlist asp net c-18

People keep saying you need to compile/build your code for it to work and I simply don't no how to do that. I can also use a Checkbox List instead if you know of a better way to validate those. Dobb's Journal Digital Edition will be sent to applicants who qualify. A complimentary one-year digital subscription to Dr. We introduce you to Apple's new Swift programming language, discuss the perils of being the third-most-popular mobile platform, revisit SQLite on Android , and much more! Meaning i can check one box from either list and the validation has to pass.What would be the proper way of implementing something like this ?On submit the data in the fields gets sent to a MS SQL database.I have more fields then the one's shown below but I thought I would condense it for this post and removed everything but one text box and the checkbox I need validated upon submit.In this article I will explain how to validate ASP.Net Check Box List control using Custom Validator and perform at least one Check Box Checked Validation in it. Net Custom Validator will make use of Java Script function to validate the Check Box List control Below is the Java Script function that gets executed when the Custom Validator is trigged on the button click.And now in the markup page(.aspx) have this javascript in the head section of the page: where "text Box1" is the ID you assigned to the text Box in your markup instead.Also, from Javascript, it's very possible that the ID of the text Box has changed once it gets rendered to the page.


  1. Hellow all I wants to validate radiobuttonlist in with C# on the click event of the button,if the user havnt selected the radiobuttonlist then it will pop up.

  2. Core is a new open-source and cross-platform framework for building modern cloud-based web applications on Windows, Mac, or

  3. How to validate a checkboxlist in Rate. Hi All, How to validate a checkbox List in Thanks. how to work with Checkboxlist in with 3.

  4. I have trouble for validating a CheckBoxList control. I want to force a user check the control before submitting the form. I've tried to use Requiredfieldvalidator.

  5. Introduction. The Validator controls shipped by Microsoft Framework from 1.0 till 3.5 are very helpful for developers to implement form control.

  6. CheckBoxList Validation. Could you explain further what you mean by validating and what the one CheckBoxList has to do with the. Custom CheckBoxList in 0.

Leave a Reply

Your email address will not be published. Required fields are marked *