I am working on registration page. I am accepting some general inputs from user. Like First Name, Middle Name, Last Name etc.
Now what I want to do is:
1. When user enters in textbox then while typing; first letter should be automatically come up as capital letter & next as small case letters. E.g. If I am typing my first name then while typing it should be Sanjay & not as sanjay or sAnjay.
2. While typing in textbox user should not be allowed to enter white space in between the words like Sa jay this should not be happen. If user types like this I want to give an alert that something like please do not use space in between name.
Our customer needs to add a value like 'NAK' to the database. This is a hexadecimal value (think it's either 15 or 21). How can the user enter this in the textfield? Or, what do I have to do to allow this to be entered?
If he enters '21', it just saves '21' to the database because he once asked for backslashes in this particular field.
Then, once I know how to enter the hexa value, can I expect any trouble in saving this to the database?
I never knew that there was something like when you enter <xx> in the textbox it gives the error, so my question is how can i avoid this kind of problem? and how can i avoid this error? I cant say to ppl do not enter this in textbox who know what ppl can do, so it is better to make sure you wont get error cuz of this.
I ve design a page that has nine text box name txtSubject1 to txtSubject9 with the visibile properties to be false.I now have a method called Save1, Save2 to Save9 depending on the no of subject selected from the dropdown.But i think that is not professional bellow is a sample of how i did't and i believe the textbox can n number of an array that can be selected from the drop down. i need someone to put me through how to insert this into the database out side the fake method i ve used.
can i add new records in gridview by entering value in textbox in runtime?suppose a value is entered in textbox and concerned record is displayed in gridview again if i want to add a new record in gridview along with the old record how can i add?
I have a textbox where user can add comma separted value. I would like to add it to the database.that i can do it without any problem. After that i would like to get the value retrieve from the database and then display it to the user in grid or something like that.
I am working on a project in .NET (C#), connected with a database. And I am entering values in database through 'text-box' control, for a part of the project. What I want is to check if the user entering value already exsists in the database and if so, shows error during that time only.
I have searched for any familiar post here, that could solve my query, but didn't get any.
my EXACT objective(if not cleared earlier):-
when the user enter the value in textbox, automatically an event to check any duplicate records in database should occur. And if found, displays an error message
I need expression for following things1.HH:MM in Military format2.mm/dd/YYYYThere is one catch if user is not entering any thing system should not show any message but if he is entering any thing then it should ask from the format.I am using a grid view with 20 rows ans in that so many columns are available. In that grid i have to check this thing
After going through few asp.net 2.0 books surfacially, I want to accomplish most of the task using c# code and Sql database.
1.we can access and update data using various ways like using sqldatasource code, data reader,command object,dataset,datatable etc.But which one to use in which situation?I am very confused.what do you prefer most,why?
2. How to code professional way? I mean how to separate code using different classes and how to link all togerther?
3.I want to design a webform for entering/editing user input using c# code and use presentation control like gridview and detailsview for viewing,paging and sorting only.Is this possible?