Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
3
0 Endorsements
Ranked #3K
~6K People Reached

25 Posted Topics

Member Avatar for haymen.roth.3

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 …

Member Avatar for sushmaja.arumalla.9
0
186
Member Avatar for soundarya_1
Member Avatar for Ajay_9
Member Avatar for YA RAMSAMKER

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.

Member Avatar for ZER09
0
125
Member Avatar for xn hunk
Member Avatar for Khyxz
Member Avatar for 21334929

What are you triing to accomplish? Normally, the database would be created first using any of several DBMSs, such as SQL SERVER.

Member Avatar for narek.arzumanyan.129
0
117
Member Avatar for 21310051
Member Avatar for Fenrir()
0
143
Member Avatar for CodeAssasian

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)

Member Avatar for narek.arzumanyan.129
0
116
Member Avatar for 21345572
Member Avatar for mayaestat
0
118
Member Avatar for skyscraper11

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 = " & …

Member Avatar for cxzei
0
708
Member Avatar for mikyle

Haven't seen it yet, but the API got to be better looking than VS 2012's

Member Avatar for cxzei
0
104
Member Avatar for 21303359
Member Avatar for claush@dut

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.

Member Avatar for cxzei
0
159
Member Avatar for johmolan
Member Avatar for scooby36

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.

Member Avatar for cxzei
0
160
Member Avatar for Maideen
Member Avatar for nickurooo

if cmbSupplier.SelectedIndex = -1 nothing has been selected otherwise SupplierID is cmbSupplier.SelectedValue

Member Avatar for castajiz_2
0
223
Member Avatar for HunainHafeez

do something like... `DropdownList1.SelectedIndex = DropdownList1.Items.IndexOf(DropdownList1.Items.FindByText(someTextvalue))`

Member Avatar for cxzei
0
264
Member Avatar for ignnniter

put the value borrowed in single quotes... UPDATE Equipment SET Borrowed = '" & borrowed & "' WHERE EQID = '" & eid & "'"

Member Avatar for cxzei
0
125
Member Avatar for saintrenz

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 …

Member Avatar for cxzei
0
287
Member Avatar for ImZick

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.

Member Avatar for Reverend Jim
0
161
Member Avatar for masterfact18

If you just want the number entered...use a NumericUpDown control, it will allow you to set a valid range of values

Member Avatar for tinstaafl
0
185
Member Avatar for korathualex

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

Member Avatar for cxzei
0
142
Member Avatar for davy_yg
Member Avatar for pritaeas
0
147

The End.