I have a range validator to validate a textbox for birthday. i must ensure that a student must be above 21 to register with us. i set "31/12/1993" format (dd/mm/yy).
but it cannot run the website as in my database is set to this (mm/dd/yy) format. how can i solve this without changing my database format? so that it can function for everyone.
I have a Range Validator as follows. It is for restricting values between 1900 and 2070. However, it fires error when I enter a alphabet also. I want this to be fired only if the user enters integer values. How do I overcome it?
When using a range validator, if the user exceeds the defined range, How do you code it so it disables a button so the user can't continue. (without using JavaScript)
I want to validate textbox, so user enter greater than 30
if user enter lessthan 30 than message will display.. for that i use range validator of asp.net
<asp:TextBox ID="txtprice" runat="server" CssClass="textbox" Width="180px"></asp:TextBox> <asp:RangeValidator runat="server" Display="None" ID="range1" ValidationGroup="grdsave" SetFocusOnError="true" ControlToValidate="txtPrice" MinimumValue="30" MaximumValue="999" ErrorMessage="Minimun budget is 30 USA dollor"></asp:RangeValidator> Â It give message if i enter less than 30. but if i enter 100 or 200 it also give message. How can i allow that value?
I have created one page where i am using Required and Range Validator and i am using java script also. But it is not working.And when i am trying only validator it is working. How should i run both the things
I have a couple of textboxes (actually a set of pairs of textboxes) where users can either enter a value or a percentage of a value but cannot use both. So in any given time some of these textboxes are disabled depending on which option the user chose.
For the textboxes representing percentages, there is a range validator to make sure only values from 0 to 100 are entered. If user selectes to enter datanot in percentage form, the percentage textbox gets filled automatically based on the value user enters. So if the total is something like 8 and user enters 2, the corresponding percentage textbox gets filled with 25% (minus the % sign).
However, the vaidation fails as if there is nothing there, persumably because the textbox is disabled. How do I get around this?
i'm doing a page which allow user to choose date from calender extender using a text box.. after choosing the date, the text box will have the event ontextchange that will display all data related to that date without user clicking any button.. i will be using a range validator to check whether the user access to more than 2 days from the system date..
the problem i'm having is,
- after everytime i choose the date, the range validator will keep disappear due to the auto post back which i use in order to make the text event (ontextchange) work..
- i need some advise on how to solve this problem?? been trying to solve it for 2 days alread T.T
using ASP .NET and I'm retrieving data from a MySQL S2005.
I'm using several Jquery Datepickers and I set the dateformat to: "yy/mm/dd".
However, when the datepicker's input field is filled with a date stored in the DB, it uses different formats, depending on the language of the system.How can I specify a default format? Should I specify this on the DB or directly on the app?
I have a table "RANGES" with the following columns
LowRange as int HighRange as int with the data similar to below select * from Ranges LowRange HighRange 1 100 101 200 201 300 . . . 901 1000
And another table "infoDetails" with the following columns
Range as INT amount as money with the data similar to below select * from infoDetails Range Amount 23 34.00 235 44.00 345 34.00 678 100.00 555 100.00 530 100.00 510 100.00 I need one report with the following format without cursor. LowRange HighRange Count Amount 1 100 1 34.00 101 200 0 0.00 . . 501 600 3 300.00 601 700 1 100.00
I have been struggling with this for a long time. I have a form in which there is a textbox using an ajax calender extender. Now, the problem is that, I want to take the Date value which is string format and format it to a specific date format before inserting it into the database. The following is the core problem:Dim MDate as string=txtMeetingDate.Textdim d as new Datetime ' I want to convert the d to a datetime using the Mdate/// The problem is that I don't know what's the date format in the TextBox because users can use any time format they want, it is based on their windows settings!!!
So, I am struggling to change my String (MDate) into a DateTime in the same format the user have and then convert it into my format:"dd/MM/yyyy" and after I have the date in the correct format, I want to change it back to string and save it in the database.I am doing this so that I have the same dateformat saved in my database.
I have written this query for retrieving data from mysql as below
select FeedbackCode,EMailID,FeedbackDetail, Date_Format(FeedbackDate,'%m,%d') as 'Feedback_Date' from FeedbackDetail where EMailID not like '' and InstanceCode =5 and I'm binding this data with GridView in asp.net but at the column of Feedback_Date, instead of Date I receive System.Byte[].
I have a validator on a textbox that validates against a list to ensure that the user doesn't input the same name. When testing it, if I type in the same name including the same case structure, it returns an error. If I change one letter to a different case, it doesn't return an error but rather my SQL server returns a duplicate error. How do I change the server-side validator so that it picks up duplicate names regardless of case?
When it comes to field validation, when I use a Compare Validator to make sure a date is a date or a numeric field has a number, I must also use a Required Field Validator to make sure there is something actually enetered. In other words, the Compare Validator allows a blank value even though a blank is not a date or number or whatever.
Is using both a Required Field Validator and a Compare Validator the way to do this or is there some way to make the Compare Validator also require input of some kind?
I have a validator callout extender that works, it shows the callout box. But, it does a postback. It didn't do a post back the first time I clicked the button but it did for subsequent times. I read on the AJAX site that a custom validator must be used with this for it to work. I'm currently using this with a required field and regular expression validator. It works, the callout appears, but it doesn't work every time with out the post back.I posted this to see if there is a way to get this to work with a required field and regular expression validator, with out using a custom validator. I'm using the newest release of the toolkit, so I thought the documentation may be old, since the callout is appearing.
I has developed a crystal report, which display the records from a table and filters them based on a parameter( date range parameter). now I has integrated the report into a asp.net page using c#, but when I am running the asp page it is not promption for the date range values, it used to prompt for date range when I run the report in crystal report.
I put a jquery range slider (a 2-handled slider) on a page and am able to access its two values as needed. Works like a champ! The requirements just changed - now the range needs to be fixed. So as one handle slides, the other needs to slide with it. Or at least re-position itself after the other slider is dropped into it new position. Does that make sense? I'm still really weak with javascript, so go gently with me
I created my custom validator in one project, something like that:
[Code]....
he composite control in another project. I added a reference of the custom validator project to the composite control project. I have a textbox in a composite control and I would like to validate this textbox by the composite control I created. But how can I do that? How can I create the custom validator instance that is linked to the custom validator I created?
<% UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If UserIPAddress = "" Then UserIPAddress = Request.ServerVariables("REMOTE_ADDR") end if IF Left(UserIPAddress,11) = "111.111.111" or Left(UserIPAddress,10) = "444.444.44" then %>
how could i do something like this in asp.net(using vb.net)