how retain values in 1st combobox when 2nd populate from database using jsp and javascript pleasehelpwithcode?
486157
im sorry i dont speak computer language nooo jk no really i dont know much about computer just how to turn it on a nd go on the inernet...well good luck if your trying to find somethin
768485
I'm not exactly clear on what you're trying to do with the second button, but if you're binding the datagrid from a query, you should be able to set the DataKeyField property of the datagrid to the primary key of your query.  It will then automatically be stored for each row when the datagrid is bound.\n\nYou can then retrieve it by using a line like:\n\n            Dim PID As Integer = Val(source.datakeys(e.Item.ItemIndex))\n\nIf this doesn't help, contact me with the exact error message you're receiving and with more info about what you are using the second button for, and I'll try to help.\n\n- Rich\nhttp://www.IMAgolfer.com
673659
You have to give each of the input tags a different name. \n\nFor example:\n<form action="previousForm.html" method="get" name="form2">\n\n   <input type="hidden" name="hiddenvalue" value="hiddenstuff"><br>\n\n   <input type="Checkbox" name="check1" value="yup" checked>\n\n   <b>Checkbox 1 here</b><br><input type="Checkbox" name="check2" value="yup">\n\n   <b>Checkbox 2 here</b><br><input type="Submit" value="Take a Look" align="MIDDLE">\n\n</form>\n\nOnce you get the selections, you can differentiate between them using the name associated with the boxes.
95799
Assuming you do this on the server side, look for the user name and password in the request collection in you particular language - the variable name will be the names you give them in the input text items on the form.\n\nIf you are talking client side, have the form call a javascript function on the onclick event, the use a location.replace or location.href method to ship them off.
357503
hey man you need to add a new reference first, the in code behind use it. ie: my reference is Ajax, then I click right click on References / Add new Reference / select the reference to be added 'Ajax' / OK. Now in code behind : using Ajax;\n\nand that's all\n\nthen you can use all the Ajax resources, easy uh?
283150
Here's a code snippet that you should be able to paste into a form module and give it a try ... there are obviously many ways to tackle the issue ... this is just one of them.  To use this code you'll need a reference in your VB6 project to a Microsoft ActiveX Data Access Library (like 2.6).  Good luck!\n\nDim rs As Recordset\nDim cn As Connection\n\nDim DBPath As String\nDBPath = App.Path & "&#92;customer.mdb"\nSet cn = New Connection\ncn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBPath\n\nSet rs = New Recordset\nrs.CursorLocation = adUseClient\nrs.Open "SELECT * FROM tblCustomers WHERE CustomerID=" & 1, _\n    cn, adOpenStatic, adLockOptimistic
848661
You have to consider two things here - \n\n1. Do you need to reference a field from the earlier form? If yes, you should not unload it until you have obtained all the values off of that form.\n\n2. Would you need that form again shortly? If yes, its better to set visible=false rather than unloading - because loading an unloading a  form causes an overhead, so if you're gonna need that form again and often, its better to keep it in memory by just hiding it.
498557
change the action of the form using javascript.\n\nsay ur form name is form1\n\nthen ,\n function doSubmit(var action){\n  document.form1.action = action;\n  document.form1.submit();\n}\n\nin the link give doSubmit('Servlet1'),doSubmit('Servlet2')\nand mapping for Servlet1 and servlet2 is given in web.xml.
1093628
Try to merge them in one. When use hidden input changed by javascript depending on the form user fills. \nI could tell you more if you provided me with more detailed information.
859662
This sounds like an assignment! Anyhow...\nCreate an array of 10. Then create a for loop of ten and each time ask for the user for an input. Store that input to the array. Then using a loop again output the array to the listbox
120841
Since you are going to use a combo box, you will have to bind your recordset to the said control (combo box, or it can be a data grid). You specify the Data Source in the Combo Box control (or whichever control you use), and set the Display Member to the column you wish to display in the Combo Box.\n\n2. Adapted from response by Gibbs On Monday, September 6, 2004\n\nSay you used "RS" as the variable name of the recordset, then you can do\nthis:\n\nDo Until RS.EOF = True\nCombo1.AddItem RS!(FieldName)\nRS.MoveNext\nLoop\n\n3. Adapted from response by Nails On Wednesday, September 8, 2004\n\nIf all you want to do is programmatically populate the combo box, then you don't need to fuss with recordset:\n.rowsource = ""\n\nIf you do create a recordset, its data is in RAM. Use FIND method to go to the record you want (involves a WHERE-like statement), ("") as pointer to specific data element, etc. See help under RECORDSET\n\n\nhttp://visualbasic.ittoolbox.com/documents/popular-q-and-a/populate-a-combo-box-in-visual-basic-2863
214490
I am not sure I completely understand, but from the sounds of it you want to add records to a recordset? If you need to do lots of manipulation to get them try method 1, if it is simply data from two tables use method 2:\n\n1)I like to use a temporary table, insert all your records with an insert into, then do whatever you gotta do to create more records in the table, then select to get the full recordset. This is nice when the new records require a lot of manipulations to figure out.\n\n2)If you just need to add two selects together use a union statement\n\nSELECT * FROM Table1\nUNION\nSELECT * FROM Table2
616999
Add trhe below lines in your Page's Head Section.\n<SCRIPT LANGUAGE="JavaScript">\n<!--\nfunction f1(){\n   switch (event.keyCode)\n   {\n    case 112 :\n        event.keyCode = 0;\n        event.returnValue = false;  \n        break;\n    }\n}\ndocument.attachEvent("onkeydown", f1);\n//-->\n</SCRIPT>
134750
You are returning an ArrayList, so are we to assume the field you want is in the first entry?\n\nlabel.text = ctype(randomMessage(0), string)
946107
Personally I think this is a java question, not a javascript.  Anyhow, I am not going to argue with that.\n\nIf you have your Prompt Box and can get the information from it, the following methods may help you.\n\n// Arrays to hold the seles person data\nString[] salesperson_names = new String[100];\nint[] salesperson_cars_sold = new int[100];\ndouble[] salesperson_sales_amount = new double[100];\n\nint counter = 0;\n\n// method to store data\nvoid inputData(String name, int cars_sold, double total) {\nsalesperson_names[counter] = name;\nsalesperson_cars_sold[counter] = cars_sold;\n// etc.\ncounter++;\n}\n\n// for the average, do a for loop\nint accumulator = 0;\nfor (int i = 0; i < counter; i++) {\naccumulator += salesperson_sales_amount[i];\n}\nint average = accumulator / counter;
858844
you need to check what kind of values you are receiving as a recordset first if you are finding it difficult to access the values. echo the result set as follows\n\n<?php echo $queryResult['columnName']; ?>\n\nyou can loop through the values by using a do-while loop by following\n\n<?php\ndo {\necho $queryResult['columnName']; \n} while (mysql_fetch_assoc($queryResult));\n?>
880089
if you know 2003, you should have the answer to this.  You have to post the form back to the same page (add a button with a method like btnSubmit_Click(object sender, EventArgs e).  Once this the page is posted back, you then need to create a database connection.\n\nYour SQL connection string should be saved in your web.config file.\n\nusing System.Data.SqlClient;\n\nSqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ConnectionString);\nSqlCommand cmd = new SqlCommand("INSERT INTO TABLENAME (Column1, Column2, Column3) VALUES (" + "'" + txtColun1 + "'" + "," + "'" + txtColumn2 + "'" + "," + "'" + txtColumn3 + "'" + ")", con);\ntry\n{\n   cmd.ExecuteNonQuery();\n}\ncatch(SqlException e)\n{\n  string error = e.Message.ToString();\n}\nfinally\n{\n  con.close();\n}\n\nThe only change is that VS 2003 use to use:\nSqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["con"]);  This is now obsolete.\n\nSorry, I updated this because yahoo answers cut have my code off.