Control to insert several numeber at once
-
Hi, I try to manage the absence of students in the exams, try to insert the id of students absent for each matter,to facilitate that to the user i want insert id_student at once (not one after one by textbox simple)is ther any control or method to do that? Thanks
-
Hi, I try to manage the absence of students in the exams, try to insert the id of students absent for each matter,to facilitate that to the user i want insert id_student at once (not one after one by textbox simple)is ther any control or method to do that? Thanks
Yes, you can take listbox which shows you student id and name (combination, however in background it will give you ids) so you can select multiple items from listbox. On each matter, there is two checkbox (absent and present) so just select multiple student from listbox and mark absent or present checkbox and insert it into database. Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
-
Yes, you can take listbox which shows you student id and name (combination, however in background it will give you ids) so you can select multiple items from listbox. On each matter, there is two checkbox (absent and present) so just select multiple student from listbox and mark absent or present checkbox and insert it into database. Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
-
Yes, you can take listbox which shows you student id and name (combination, however in background it will give you ids) so you can select multiple items from listbox. On each matter, there is two checkbox (absent and present) so just select multiple student from listbox and mark absent or present checkbox and insert it into database. Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
-
You do not required to do pagination in listbox, it will automatically shows you scroll bar... The other best option it you do not want to use listbox is create your custom control. Because if you are using grid control then it will not remember your selection when you select options from multiple pages.... Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
-
You do not required to do pagination in listbox, it will automatically shows you scroll bar... The other best option it you do not want to use listbox is create your custom control. Because if you are using grid control then it will not remember your selection when you select options from multiple pages.... Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
-
Thanks Jinal Desai - LIVE, creating user control seems complicated,I think using multiline textbox: the user will simply enter ID of abcent students line and in the end I enter that id in the database by a clic buton ,Waht do you Think? Thank you.
-
ya that will be also nice idea. If you want to just take IDs then it is fine...
Jinal Desai - LIVE Experience is mother of sage....
-
Hi, That's what I wanted ,it easier for the user but I did not know if there multiline textbox. I do not know how to check if those id are correct,to prevent the user from making mistakes and insert an id which does not exist in the table student. Thanks
Of course there exists multiline textbox in asp.net You need to use normal textbox and just make it multiline textbox. You need to give rows, columns and textmode property according to your requirement. Try following....
<asp:TextBox ID="TextBox1" runat="server" Columns="50" Rows="5" TextMode="MultiLine"></asp:TextBox>
Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....