I have a form for the user to add a Contact's details. Within this form I have fields to enter telephone, mobile, fax numbers etc.
Each have a separate textbox for country code, area code and number. Basically, what I want to do is have validation on these fields so that all or none of the textboxes are filled.
So if the user just adds a number in they are required to enter also the country code and the area code. Or if they don't enter any of the details then the validation will not kick in.
I have one textbox and I want to allow only integer cannot allow character when I entered character to show the error message , this functionality I want create in server side withou using javascript.
i am using a search box for my application which returns a dataset. however when i click on the search button it returns an empty table result. how could i add validation so it doesnt accept empty strings or numbers.
I've a form where I'd like to impede the user from entering any alphabits or special characters. The user can only enter numbers between 0 & 3( both inclusive) no more no less.
How can i achieve this ? I've used RangeValidator. Would this alone be suffice or do we also need to use Expression Validator ?
I am having a ASP.net web application which is hosted in an internet server. Now i got a requirement to integrate this website with a computer telephony infrastructure. The details are as follows.
The user will be located in a building having TAPI standard, LAN - CTE infrastructure enabled telephone system and the logged-in user should be able to connect to the phone line (extension no:) within the same building through the browser. When a call comes to that phone line, a popup should appear in the users browser displaying the number of the caller. I am having the following doubts in implementation of this functionality
How should I connect (communicate) my application with this LAN - CTE infrastructure? The LAN - CTE infrastructre is simply an API having no web services exposed from their side for this purpose. So think I will have to write an extra wrapper class just above the LAN - CTE infrastructure to facilitate this.
Do I really need to connect to the telephone line across the internet as this logged user and the extension no: will be in the same local network?
I want to understand the interaction of telephone with webforms application.
In order to do that I want to create a small application which will be able to receive multiple calls at a time, place them in a queue and then forward calls one by one to a call answerer.
It should also be able to retrieve the Caller Id i.e number from which the call is being made.
How this may be achieved?
If there is any ready made solution available with source code pls provide links.
I have sql server database in which I have lot of contact person and their telephone numbers. these contact numbers is viewed by user on asp.net form in gridview control, its working fine. User filter the numbers dial the numbers to client through telephone set.
Now I am thinking to merge the call dial and receive funcationality through asp.net form like user have asp.net form have some telephone dial up control, search the number and dial the call on button click event. To talk with client user has headphone.
I would like to to make a UI with a panel of numbers, and when hovered above one of them ten the number becomes larger. something like that:
[URL]
I want that when I press a numbers it shows it's value in some other textbox. In which .NET technology is it possible to do it? Windows Forms? WPF? other?
I am using one datalist control for uploading multiple images.I hv used one Asp:FileUplaod Control and one button in one itemtemplate.I am using reqired field validator and regular expression validator for file upload cntrl I am assigning validation group for both of them on ItemDataBound event of my datalist so that each upload cntrl hv same validaton group as required field and regular expression validator.Now what i want to do is - i want to show my error message in validation summary which is right at the top of the page.I want one know how to write javascript that will assign validation group of my control in datalist on which i click ?
This seems very basic but I can't seem to find a fast way to do it..
I have the following numbers:
5, 3, 10, 52, 1
I want to order them in the correct format from 1 to 52 and be able to point out which one is the highest, which one is the lowest, which one the second to highest, etc.
When putting this html portion inside the div element : do the things respectively:
<ol> <li> Create button control </li> <li> Assign it to the main user </li> <li> Let me know what happened </li> </ol>
This is how it shows on the page: (Please look at the numbers) So the question is why this is happening?Why are the numbers are appearing outside of the div element. I used:
.messageContainer ol { list-style-position:inside; margin-left:5px; }
which worked just fine but now this is what happened.
I am migrating my application to MVC3 and getting this error message Validation parameter names in unobtrusive client validation rules must start with a lowercase letter and consist of only lowercase letters or digits.How can I ovoid it without going and modifying all my ViewModels
I am using ASP.NET's server-side validation. In the page_load event I'm calling Page.Validate(), and if Page.IsValid is not true I'm then polling the controls to figure out which ones are not valid, and then determining what actions to take.It would be much easier if each control would raise an event as validation fails, allowing me to take action for that particular control. I'm very much a naive programmer when it comes to validation, but is there a way to extend these controls so that a validation error raises an event?
I am creating dropdown controls in code behind. in some conditions I need to add validation control to dropdowlist. But Validation not firing when I submit button.
If mQuestion.RequiredToAnswer = True Then Dim mValidator As New RequiredFieldValidator mValidator.ControlToValidate = mDDL.ID mValidator.InitialValue = mDDL.Items(0).Text mValidator.Display = ValidatorDisplay.Dynamic mValidator.ErrorMessage = "* Required!" mTableCell.Controls.Add(mValidator) End If
I have other dropdown controls on aspx page with validation comtrols. Those are working fine. Only when I ddl and validations from code not working?
jQuery validation is working fine on my machine, when i pushed it to test server it won't it's throwing some errors which is kind of surprising.These are the errors I am getting: $.validator is null or not an object...I've never gotten this error before and it throwing an error when I declared a variable like var isValid.I don't know what to do. I am doing the custom validation methods not in the document.ready(). Does this cause this error? I wonder because all jquery validations are passing and hitting the server side validations.
How can I disable the code behind validation when javascript validation is present? Then if there is no javascript enabled then the code behind validation will do its thing. What I notice is that it's reading the code behind valdiation not the javascript.
This example works great with string variables in ASP.Net:
Session("Stocks") = "MSFT; VRSN; GE" On a different aspx page: Dim StockString() as String = Session("Stocks").ToString.Split(";") for i as integer=0 to StockString.GetUpperBound(0) dim x as string = StockString(i) next i
But...I cannot determine how to take a number (as in val(txtNumber.text) and make it available on a different page.
Now i would like to add numbers to the labels before they are rendered. For example currently the data displayed are like
Tennis Football Basketball Nfl Nba Polo
and the output i would like to have is
1. Tennis 2. Football 3. Basketball 4. Nfl 5. Nba 6. Polo
Could i use ListView1_ItemCreated or the ListView1_ItemDataBound event to achieve this? If that is true, could you point me a place to start? the list view is filled with
Dt = GetDataTable("SELECT Ans1, Ans2,Ans3,Ans4,Ans5,Ans6, Ans1Visible,Ans2Visible,Ans3Visible,Ans4Visible,Ans5Visible,Ans6Visible, From myTable WHERE CatID ='" & cat & "'") ListView1.DataSource = Dt ListView1.DataBind()
I am developing a site in Persian (it a right to left language), and it's supposed to be used both with IE7 and IE8. I don't have any problems with IE7 but in IE8 all my numbers show in English instead of Persian; ie instead of showing ١٢٣ , IE8 shows 123. I tested Culture and UICulture but they didn't solve the problem.
By a great chance, I found that if I Omit "DocType" tag from top of my pages this problem resolves, but some other problems appear like my Ajax popup dialog box won't work as it used to in both IE7 and IE8; I've also seen warnings that say CSS Styles may not work properly without "DocType" tag.
What's wrong with <!DocType>? And How can I solve my problem?