Jump to content

LJnel

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by LJnel

  1. okay, i will get back to you on this weekend, i have a slight problem with my pc..thanksLouis
  2. helo,it is just 2 listboxes, the 1st listbox is already populated from the databse when the user arrives on the page.. the 2nd listbox is empty at first, when the user wants to add a subject from the 1st listbox it is added in the 2nd listbox, and the user can also remove it if its the wrong subject added, and when all the relevant subjects are in the 2nd listbox and the user submits, then i want to write it back to the database..i am not using any dropdownlist..do u understand now?, its not big at alli will be glad if u can help, i registered at your site as well.. Louis
  3. helo,i am using a MS access database and i just want to display a number of subjects from(READ) the database subjects table and populate the first listbox..i am going to use 2 listboxes from which you can add and remove subjects..similiar to to example in windows xp where you can customize your toolbar in windows explorer by going to VIEW --> TOOLBARS --> CUSTOMIZE, i have tried this in ASP.NET code but i cant seem to get it to work first, i want to add subjects from the populated listbox and display the (subjects that u added by clicking on the "ADD" button) in the 2nd listbox and also remove them from the 2nd listbox(by clicking on the "REMOVE" button)..and write the contents from the 2nd listbox to the databaseplease help me, i know another way but that involves a different screen layout and it is not the same as the windows example..any code examples to read and write from the DB into the listboxthank you in advance Louis
  4. LJnel

    Listbox Problem!

    hey therei want to know, when i have chosen, lets say 3 values, out of a dropdownbox and i am displaying each of those values i chose in a listbox below, how do i save all that values, to write it to the database and the sql query string, must i create a variable for the listbox first or for each value i have chosen, and if so how do i do that?many thankslouis
  5. hey therei want to be able to delete a user from a table , getting the user's info from the database, by just using a checkbox, if the checkbox is clicked and the user clicks the confirmation button, i want to display a pop-up just the user "Are you sure?" thats all..i cant find any code, can somebody help me if they know the code..thanks
  6. good morning,i want to write my radio button values to the DB based on which one of the two radio buttons the user selects, do i determine the selection with an if statement and then store the result in a variable and then use the variable in my sql insert statement?? all is done in asp.net..example:if radlectmale.selecteditem.value = "male" then strDGender = "male"else strDGender ="female"end ifDim myCommand As OleDbCommandmyCommand = New OleDbCommand("Insert INTO Dosent ( DnewPassword, DSecretquestion, DGender ) Values (" & txtlectnewpassword.Text.Trim & ", " & ddbpasswordquestion.SelectedItem.Value & ", " & strDGender & " )", myConnection)myCommand.ExecuteNonQuery()myConnection.Close()thank you
  7. thank you, i will try it
  8. hey therewhen you use an INSERT INTO statement in sql, u fill the columns in the database with the values from a textbox or so on your registration page, like this...Dim myCommand As OleDbCommandmyCommand = New OleDbCommand("Insert INTO Dosent ( DosentNo, DnewPassword, DSecretquestion, DSecretanswer ) Values ( txtlectnewpassword.Text.Trim, ddbpasswordquestion.selecteditem.value, txtpasswordsecretanswer.text.trim )", myConnection)------------------------------------------------------------BUT, how do u get a value from a dropdownbox into the column in the database?? or am i using it right as i hav e shown here?------------------------------------------------------------myCommand.ExecuteNonQuery()myConnection.Close()
  9. it worked i got it right this afternoon, one at the end of this year i will show you the web application i am currently working on at the end of this year, i will put it on the internet.. but there is another thing i want to ask youi have a registration form where a user can register, but i have broken the form down into 3 parts and i am using ms access, everytime a user completes a part i want to just insert that part's values in my database, i want to ask if you can help me with the oledb connection just to do that a simple connection, i am working in vb.net visual studio, perhaps if you know about good sites with detailed examples of asp.net maybe it will help, most sites dont explain allthank you very much for your patienceLouis
  10. hey therei have 2 dropdownboxes on my webpage, when i choose a value in the first dropdownbox i want to then populate the 2nd dropdownbox with other values, for example:when i choose "grade 1 students" in the first dropdownbox, i want there grade 1 subjects to display in the second dropdownbox and so on ........any ideas or code examples pleasethank you
  11. hey there,Stiil remember my other forum post where i needed to add itemsfrom a dropdownbox to a listbox?? i am still using that example, butnow i want to make it different,i want to selects the items from the 1st dropdownbox and still add them to the listbox below the first dropdownbox, but the items in the first listboxmust be used to fill the 2nd dropdownbox from where i can select again from the filled dropdownbox.. thx louis
  12. good morning,i have two items in a dropdownbox and when i select oneof them i want two labels to change to according what theuser has selected automatically, but i cant seem to get it right, only oneitem's values displays and not the other one..thx louis
  13. LJnel

    DropDown To listbox

    thank you VERY much, ill try it and come back to ui have this project that my lecturer wants, i am on my own and new to asp.netand the project is a web app that the whole department wants to use, i amscared that i will not get it done in time.. so i will come here alot..i live in south africa, do u live here as well?thx louis
  14. LJnel

    DropDown To listbox

    hican you perhaps show me example websites or just examples, or explain how i can do it plz, i am a beginner still not a pro..thx
  15. LJnel

    DropDown To listbox

    heloi want to select item/values in a dropdownbox and with an "Add" button add the items to a list.... is this the best way of doing this or are there easier/better ways??thx
  16. hey i just want to ask u something simpleif i hav a normal log in, username and password, when i enter the username and password, how do i now continue ??? do i assign that username to a session and the password to another session?(can u maybe provide me with a code example of how the assignment process works and then how to go and look in you DB ms access).and a last questtion, how do i now keep that session thru out that user's browsing??thank you
  17. hey there'i am using a keypad where the user enter his pin and thenread it from the db, but i need to assign a session..i am using webmatrix how do i do this? tanks
  18. hello everyonei want to create a basic virtual ATM by using ASP.NET with VB.NET. • The user should enter a 5 digit pin by clicking on the appropriate buttons.(I know i must use my onclick event for the keypad number buttons, but how do i code the event in the button's sub so that your password numbers appears in the password textbox?? ) • it must display inside the pin textbox. • Once the pin has been entered the Continue button should be enabled (activated) and the user should be able to click on it. • If the pin is available in our array, the user should be granted access. • If the pin is not available in our array, the user should be prompted with a error message to indicate that the pin is wrong and that he/she should retry. A warning must then also show him/her the amount of tries tried. The Continue button must be disabled till the pin was entered again. • The user should only have three tries to enter the pin. • If the pin was entered incorrectly for three tries a warning is showed and the pin textbox is removed form the screen. • The Cancel button clears the pin. • All the number buttons (0-9) must make use of the same click event Notes • Only the pin is stored in the array. The names are "hard coded" in the page. • The different names and pins are: "12345" - "John Smith", "56789" - "Rene Molete", "13579" - "Peter Jackson", "24680" - "Jean Peterson" • how do i make a Global.asax page and how does it work, what does the file contain??..if you can help me send me an email and i will send u a screenshotnel.louis@gmail.comthank you
  19. hey thereeverybody knows that when u give an id to a form control, lets say a textbox then u name the id of that textbox, txtusername or any other control like, a dropdownbox or radiobutton, but i want the file upload control,the proper name, because i dont think it is going to be a textbox..Please help me with this oneThank you
  20. hey therei am starting this week to develop an admin system for my university, my database is complete and i am beginning now with the design of the interface, i am using Frontpage XP to design the GUI and then i save the file -> close frontpage and open WebMatrix to put in all my asp.net web controls and code that goes with it..But when i save the same file in WebMatrix with the web controls that i added and run the application on my browser only the header of the page appears and everything is gone..CAN ANYONE HELP ME OR EXPLAIN WHAT IT IS THAT I MUST DO..i must have it ready at the end of this month (only the register and log in part of the admin system)thank you
  21. how do i assign a security level to a user after the user registered, and then when that user logs in with that username and password do i just check for that unique security control that was assigned to him/her, like the password??thank youLouissouth africa
  22. how do i assign a security level to a user after the user registered, and then when that user logs in with that username and password do i just check for that unique security control that was assigned to him/her, like the password??thank youLouissouth africa
×
×
  • Create New...