Jump to content

LJnel

Members
  • Posts

    25
  • Joined

  • Last visited

LJnel's Achievements

Newbie

Newbie (1/7)

0

Reputation

  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
×
×
  • Create New...