Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
83% Quality Score
Upvotes Received
17
Posts with Upvotes
16
Upvoting Members
11
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
1 Commented Post
8 Endorsements
Ranked #233
Ranked #977
~31.4K People Reached
Favorite Tags

59 Posted Topics

Member Avatar for lianpiau

one way (not the best at all) is to create a table, insert the select results and pass that table as datasource to the grid since you are using datasources and before app exit or whatever, just drop the table

Member Avatar for Sarfraz409
0
7K
Member Avatar for dbalas
Member Avatar for PoorRogue
0
548
Member Avatar for rohit b k
Re: wpf

Hi. Though I haven't done it myself yet, I found a lot of examples online on how to do it. Here are a few links that can get you started. Once you have some code feel free to ask for help if needed. [MSDN Blog](http://blogs.msdn.com/b/jaimer/archive/2007/07/12/drag-drop-in-wpf-explained-end-to-end.aspx) [MSDN](http://msdn.microsoft.com/en-us/library/ms742859.aspx) [Codeproject Example](http://www.codeproject.com/Articles/24072/Very-Simple-WPF-Drag-and-Drop-Sample-without-Win32)

Member Avatar for KushMishra
0
303
Member Avatar for xXghostXx

From looking at the error's documentation I'm guessing one of your textboxes' text contains a column name. You can refer to this page to see if this is the case. [Click Here](http://www.techonthenet.com/oracle/errors/ora00984.php) It also gives you an example of what might be wrong.

Member Avatar for pitic
0
826
Member Avatar for darrylnuyda

Hi. Since you went with this approach to create your connection classs, in the OPEN method only open the connection if it is closed. if (csCon.State == ConnectionState.Closed) { csCon.Open(); }

Member Avatar for KushMishra
0
3K
Member Avatar for spowel4

After you set the ReadAndExecute permission on the parent folder do a loop through all the directories inside that folder and set their appropriate permissions foreach (var folder in dInfo.GetDirectories()) { var security = folder.GetAccessControl(); security.AddAccessRule(...); folder.SetAccessControl(security); }

Member Avatar for pitic
0
214
Member Avatar for sandesh.ps.9

Of course you can. It really isn't a C# issue. The database server should be configured to allow remote access and that's it. There are a lot of tutorials about how to connect to a DB server. After you decided which one you'll use (MSSQL, MySql, Oracle...) just enable remote …

Member Avatar for deceptikon
0
302
Member Avatar for Kratoswoo

Loop the `split` array with a foreach and add it to the same string + `Environment.NewLine` and finally set the `textBox1.Text` property with the string.

Member Avatar for ddanbe
0
234
Member Avatar for nolife

1. learn css 2. gradually disable css on that page to see how it starts / progresses from scratch 3. have a designer's eye / mind

Member Avatar for pitic
0
254
Member Avatar for pitic

Hey, Who can give me a hint on this case? Let's say I have an object "MyObject" with the following properties (this is a breakdown for easier explination) public clas MyObject { public string Column { get; set; } public string Value { get; set; } public int Row { …

Member Avatar for pitic
0
125
Member Avatar for pritesh.panchal.96
Member Avatar for pitic
0
88
Member Avatar for old_apache

It realy depends on how you call your action. If it's a normal http get request it loads the layout + view + every partial. If you want only the partial view to be retunred do an ajax call and replace the content with the result.

Member Avatar for pitic
0
169
Member Avatar for josiahemmy
Member Avatar for pitic
0
165
Member Avatar for Mohammad_10

What exactly is your problem? You need the SQL syntax for select? Or the linq syntax? And based on your example `where (orderId = 101 and orderId = 102)` you would never get the result you mentioned. (which include ordId 100).

Member Avatar for Mohammad_10
0
245
Member Avatar for ddanbe
Member Avatar for sch85

Do a File.ReadLines(), loop the lines and try parsing each line to a double value. If it succedes you have your text to fill up the lines until the following double exists.

Member Avatar for pitic
0
285
Member Avatar for prabhakar78
Member Avatar for MasterHacker110

Your while condition is wrong. It should be `while ((line = sr.ReadLine()) != null)`

Member Avatar for MasterHacker110
0
342
Member Avatar for pitic

Hi everyone, I have a tricky question, at least for me. We have a website deployed on IIS that once in a while throws a NullPointerException when trying to read the `HttpContext.Current.Application["JScriptRootPath"]` value. So this is the whole scenario: This is just a key added in the Web.config file that …

Member Avatar for TnTinMN
0
269
Member Avatar for peymankop

If you need to change the color of a button (at least this is what I understood) you can use the `button.BackColor = Color.Green` If you needed something else please give more details.

Member Avatar for peymankop
0
457
Member Avatar for complete
Member Avatar for hookedtocsharp

Did you check the Event Viewer for any errors in IIS? Also verify that the Application Pool used for the website (which I assumed it is) is correctlly set and started. Verify the .Net Framework for the App Pool. Did you run aspnet_regiis ?

Member Avatar for hookedtocsharp
-2
145
Member Avatar for prateek29chandra

Do you want to add them to the same combobox? If so you could use UNION ALL: select vuser, vStudentName from StudentAccount UNION ALL select <columns requested> from FacultyAccount replace the <columns request> with what you need from FacultyAccount Just remember you have to select the same number/order/types of columns …

Member Avatar for prateek29chandra
0
249
Member Avatar for ambar_bs

Why don't you just add the wsdl as a web reference to your project? This way it will automatically create all the necessary code so you can access any method in that web service.

Member Avatar for pitic
0
189
Member Avatar for kidkardel

You could do this if you create your own Image class. Something like: public class MyImage { string Path { get; private set; } Image Image { get; private set; } public MyImage (string path, Image image) { Path = path; Image = image; } public bool Equals(MyImage secondImage) { …

Member Avatar for tinstaafl
0
4K
Member Avatar for Mr.pc.online

The TextBox has a TextChanged event where you can do your logic. However, that's not smart. As every input in that TextBox would fire-up the event. You can narrow it down to only fire-up when "Enter" key is pressed inside the TextBox (check if event args key is Enter). As …

Member Avatar for RvSon
0
186
Member Avatar for rajathvk

I've never used it before, but I think you can use Microsoft Windows Image Acquisition (WIA). Add a reference to your project and build your application using the classes available in this library.

Member Avatar for catherinesea
0
209
Member Avatar for Aaron_JY

My guess is you are talking about a Singleton. [Click Here](http://msdn.microsoft.com/en-us/library/ff650316.aspx)

Member Avatar for JOSheaIV
0
148
Member Avatar for danimischiu

To extend on BackgroundWorker that gusano79 suggested you can update each row of the DataTable in the DoWork method (foreach row do a separate thread with Verificare_Online_single) and on RunWorkerCompleted do the update do the database using the DataTable.

Member Avatar for danimischiu
0
1K
Member Avatar for chordian12

Good thing you specified to send a piece of his code. Otherwise you could have received a photo of a car missing it's wheels. :)

Member Avatar for ddanbe
0
111
Member Avatar for sukhanya
Member Avatar for levijoseph
Member Avatar for danimischiu

Try this after filling the DataTable (in your for loop or whatever you use to increment i) var rowsFound = dt.Select("<unique identifier from table>=" + value); rowsFound[0]["cui"] = cui; rowsFound[0]["denumire"] = denumire; ... da.update(dt);

Member Avatar for pitic
0
1K
Member Avatar for sbharani

for starters... do this and then come back when you're stuck: - connect to fingerprint device through code - get stream of bytes from fingerprint device and serialize into string - send to other computers databases

Member Avatar for pitic
0
304
Member Avatar for jangojan

I think Momerath is saying this: You can either install MySql Connector on the machine where you are using the application, or include the dll files for MySql connector in your installer so they are copied over to the machine where you are installing.

Member Avatar for jangojan
0
523
Member Avatar for sundog1

You can create a constructor for Form2 that accepts a string parameter and pass that value when showing the second form. Be sure to set the textbox text on second form on Init().

Member Avatar for sundog1
0
189
Member Avatar for jangojan

Are you trying to save in the table where the update came from? Just add a column where to store it and pass the hostname as value in the insert.

Member Avatar for pitic
0
159
Member Avatar for sofien.fkih
Member Avatar for ryan311

If you are trying to compare 2 DateTime objects use DateTime.Compare(date1, date2). Results are: -1 if date1 < date2 0 if date1 = date2 1 if date1> date2

Member Avatar for pitic
0
154
Member Avatar for pitic

How can i inject the namespace into an xml file which doesn't have one? I scane the file from a 2d barcode, and, the creator decided to not write the namespace info into the xml. So i have to add it after scanning. How can i do that?

Member Avatar for gusano79
0
123
Member Avatar for pitic

I have a task to create an app that scans a 2D code (DataMatrix) with a usb scanner (set to work as a serial port), then creat a zip file from the inputstream, unzip it and get an xml. i have managed to scan the code, get the inputstream but …

Member Avatar for pitic
0
267
Member Avatar for pitic

Hy, I trying to create a windows forms app that also starts a webservice that hosts some webmethods. The webservice is used by different users that connect to it to generate some data. The webservice, in his turn, connects to a public webserver with a certificate from a usb token. …

Member Avatar for qadeer37
0
356
Member Avatar for Jazerix

as an addition to C#Jaap. if you want to then compare to another string (lets say username and password stored in database) and the char is not all upper/lower case use this: [CODE] string username = textbox1.text; if (username.Equals("string from database", StringComparison.CurrentCultureIgnoreCase)) { } [/CODE] if you're using string in …

Member Avatar for aloksupremacy
0
115
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

Member Avatar for kvprajapati
0
233
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

0
82
Member Avatar for samueal

if you parsed the whole grid cell by cell, you could also parse the text in each cell and check each character's ascii code. if it's between 65-90 and 97-122 these are latin alphabet.

Member Avatar for samueal
0
332
Member Avatar for samueal

if you need to disable your internet connection the simplest way is to change your gateway to some ip that doesn't provide the functionality. ex: your curent settings: [LIST] ip: 192.168.1.100 netmask: 255.255.255.0 gateway: 192.168.1.1 [/LIST] your modified setting: [LIST] [*]gateway: 192.168.1.255 [/LIST] this method still lets u use the …

Member Avatar for samueal
0
604
Member Avatar for pitic

Hello, I have the following situation which I can seem to resolve. When I do an "ALTER TABLE" in mysql (v5.5) it hangs in with "waiting for metadata lock". Here is how I got there: - i have an xml which i want to import into a table; i use …

Member Avatar for Alekjenderbo
0
459
Member Avatar for Hellborg

> hello there, i have a problem, it might be trivial but i cannot for the life of me understandw what is causing it. > > so i have a numeric updown and based on the value, it loops and creates as many txtboxes as the value in hte numupdown. …

Member Avatar for Mitja Bonca
0
208
Member Avatar for sngapoonage

The End.