Web Forms :: How To Restrict User To Enter Only One Students Data
Jan 3, 2010
i am making a webform for university students to register projects.there is a dropdown list which will ask how many students have participated, suppose student select 3 students, now my question is how can i restrict user to enter only one students data,i want he/she should fill all three students data than the submit button should enabled.
I have developed a ASP.NET application,I have used sessions for parameter passing.I dont want to let the user to enter data when the session expired.Please suggest me how to do that.
I want user to enter name in Arabic if the user enter in english it should give Message " Enter Message In Arabic " and same for English if user try to enter in arabic it should give a message "Enter Name in English" ...
I have a gridview control that has two bound fields. I want to restrict the user's to enter only numeric values in the second bound column. I went into the properties of the gridview control. Selected "Columns" and clicked on collection. The fields showed up.
I selected the field and clicked on the properties. I found DataFormatString property. can I restrict by making changes to this property?
I gave an option to user to change password but the text boxes are taking - / @ (special characters). How to check at runtime that user may not enter these characters?
I have two textboxes,one is for fromdate and another one is for todate. I have one more textbox for the question for the quiz(my application)For example in my database : From date is 12/8/10 and To date is 20/8/10.Now i want to restrict the user to edit the question if the quiz is already started.
Lets say today is 12/8/10. If the user comes tomorrow i.e; 13/8/10, he could not change the from date. I tried to disable the date if the date entered in textbox is < todays date. I dont know whether this one is correct or not.
how to restrict the other user if one works on the particular record.
i am having a table with the name tblProduct and i used to edit the records from the code behind using my website.
When one user login into the site and search for the particular products and edits the product and at the same time other user log in and try to edit the same product, i need to show the alert message, "the user (username) is already working on this. please wait for a while."
In my website there is 1 module in which i m fetching data(Student name, Roll no.) of students from the student master table into gridview... and in that gridview there is 1 checkbox column...
I want that when i will check the checkbox of those students who are present...dat checked students and name should be get entered into another table in database where there wil be present written in front of checked students and absent written in front of unchecked students.....
I tried a lot but I am not getting it.....
From the above table(student info) i wil fetch data in gridview and will mark attendance in the gridview
In the above sample gridview in the student name column the name of the students is fetched from student info table, when I will check the checkbox and select the date and click on the button the students who are checked will be stored with a status present and those who are unchecked are stored as absent in another table
The following is the table(example) is where the data is to be stored in the same manner. It means that total two tables are there in the database.
From 1 table i fetch data of students info in gridview and in another table i wil save the attendance marked in gridview....
I have a grid page which has a datasource as a stored procedure. The grid page shows the fields obtained after executing the stored procedure.Now, there is a field called 'PURCHASE PRICE' on the stored procedure which can have empty values.If the grid page have that field empty, it should appear as the text box so that the users can enter some numeric values and run the page.
In an asp.net webform app, I need to restrict the logged in user to show data only for their company. This is a primary key of my topmost table. How to I set that based off the user. I imagine I would have another table with some user ID mapped to company ID?
I list selections of available items in a gridview and have added a button column for adding items to a cart. Is there a way to add a column where the user can enter the quantity to add?
I have a detailsview in insert mode. I want to prompt the user to enter data in all fields, if left empty. Could someone please find a few minutes to show me how to do it?
restrict user not to insert data in a booked time slot,suppose User reserved an item say below dates, now how to restrict other users to reserve that item at the below time.
If a user use back button of a browser and make any change on that webform then how can i restrict him to do so.I my case its a quiz and i don't wanna allow user to change his answer
I want to show a grid view Control that is initially displayed to allow the user to enter multiple records. This grid view will not be tied to a database nor will it need to save the data that is enter into the GridView Control directly to a database.
There are 10 options in the list box but I want the user only to select a maximum of 4. If user selects more then 4 then I want to display a message to user that they cannot select more then 4 options.
How can I achieve the above using some custom validator control?
<authentication mode="Forms"> <forms loginUrl="Login" defaultUrl="DailyLog" timeout="2880" cookieless="UseCookies" /> </authentication> when i browse my application through local host , it shows Login screen , also validating the credentials , but without entering any credentials if i change my Url at login page from :
http://localhost:49702/Login
to
http://localhost:49702/DailyLog
it goes to DailyLog without confirming the login ...
in Login Screen on Submit button Click event i have done this :
I have 2 textboxes with calender extenders binded. One is the start date.. Once user selects the start date the same date should not be selected for end date.. How can i restrict user?
I've posted this in the 'Datasource Controls' thread and didn't get the answers I was looking for. So I thought I'd try here; I recieved some good answers in this thread. I have a page where a user inserts new data in a table. The page consists of a series of textboxes and a button. My sqldatasource code is below. I don't have a SELECT statement, just an INSERT statement. I want to be able to have an error message (response.redirect, label, msgbox, etc.) when the user tries to enter an ID ( the PK) that already exists (instead of the usual "unique constraint violated" message)
On this page: http://vucsyd.dk/kursus/web/TilmeldingEksamenTest.aspxe.g. student number: 10629 kan mark rows and make choices in dropdownlistsBy next visit i i would like the page to show earlier choises. Do i have to change everything or is there an easy option?Site code:
I have a file upload control in which i want to restricr the users not to upload more than 1mb file. Is it possible using custom validator or any other code. I want to raise validation before any postback happends.