- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 3
25 Posted Topics
Re: try running the query in SQL Sever Management Studio or the like, so that you can see the result set. You will see the same "EmplID" and "EmplName" on multiple rows. On those rows look for whats different, that's the reason "EmplID", "EmplName" show up multiple time...Solution: change your select … | |
Re: For each event you want to track, write a record, describing the event, to a log file or database table, when that event occurs. Since you can trap the event within an EventHandler, this should be fairly simple. Applies to C# or VB. | |
Re: How do you know when to auto-click the button? | |
Re: TextBox1.Focus will put the cusor in that control | |
Re: What are you triing to accomplish? Normally, the database would be created first using any of several DBMSs, such as SQL SERVER. | |
Re: when only one choose is valid at any one time use radiobuttons | |
Re: If you are asking how to save data to a database using C#, please see T-SQL UPDATE, and .net classes SqlConnection and SqlCommand (also see SqlCommand.ExecuteNonQuery) | |
Re: I'm assuming that cid is an integer, so remove the single quotes around ComboBox1.SelectedValue.ToString()... So this...Query = "Update candidate SET votes = votes + 1 WHERE cid = '" & ComboBox1.SelectedValue.ToString() & "')" Should Be... Query = "Update candidate SET votes = votes + 1 WHERE cid = " & … | |
Re: Haven't seen it yet, but the API got to be better looking than VS 2012's | |
Re: C and later C++ have been used for year because they are easier to use than assemble. But unless you are a very disciplined coder, both languages should be considered to be write-only, meaning they are difficult to maintain, especially for those new to programming. | |
| |
Re: try something like... int myCount = 0; foreach (Laundries l in users) { myCount+=1; } if (myCount==0)... one man's opinion...a table name should be the singluar name of the object it represents, user instead of users. For variables use List instead of the plural form, userList instead of users. | |
Re: which line of code produces the error? | |
Re: if cmbSupplier.SelectedIndex = -1 nothing has been selected otherwise SupplierID is cmbSupplier.SelectedValue | |
Re: do something like... `DropdownList1.SelectedIndex = DropdownList1.Items.IndexOf(DropdownList1.Items.FindByText(someTextvalue))` | |
Re: put the value borrowed in single quotes... UPDATE Equipment SET Borrowed = '" & borrowed & "' WHERE EQID = '" & eid & "'" | |
Re: if you are triing to select student that match the filters Get rid of the VALUES clause, put the txt?.Text values in the WHERE clause. Something like... "WHERE ID = '" + txtID.Text + "' AND LastName = '" + txtLastN.Text & "' AND... Value if you are triing to … | |
Re: why are you selecting Department when you already know what it is... I think you mean something like SELECT * FROM Table1 WHERE Department = "'" + Textbox1.Text + "'". You should replace the * with the columns you want returned. | |
Re: If you just want the number entered...use a NumericUpDown control, it will allow you to set a valid range of values | |
Re: Assumming VB.Net do something like... Dim myTimespan As TimeSpan = Date1 - Date1, or Dim myTimeSpan As TimeSpan = Date.Now.Subtract(myStartTime) then you can... if myTimeSpan.TotalDays > n then do something | |
The End.