- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 17
- Posts with Upvotes
- 16
- Upvoting Members
- 11
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
59 Posted Topics
Re: 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 | |
Re: Hi. Can you also post the Flight class? And the full Create Job view where you use Html.Partial() | |
Re: 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) | |
Re: 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. | |
Re: 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(); } | |
Re: 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); } | |
Re: 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 … | |
Re: 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. | |
Re: 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 | |
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 { … | |
Re: http://lmgtfy.com/?q=example+of+game+development+in+c%23 | |
Re: 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. | |
Re: Ok. So what have you done so far and where are you stuck? | |
Re: 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). | |
Re: 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. | |
Re: Try setting the width to 0 and change it back when disaplying it | |
Re: Your while condition is wrong. It should be `while ((line = sr.ReadLine()) != null)` | |
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 … | |
Re: 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. | |
Re: Check the Web.config file for the "IsTesting" key. | |
Re: 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 ? | |
Re: 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 … | |
Re: 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. | |
Re: 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) { … | |
Re: 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 … | |
Re: 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. | |
Re: My guess is you are talking about a Singleton. [Click Here](http://msdn.microsoft.com/en-us/library/ff650316.aspx) | |
Re: 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. | |
Re: 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. :) | |
Re: Use a byte array (byte[]) and then work with it using streams (memory, file...). | |
Re: There is a AS.NET thread under Web Development tab. | |
Re: 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); | |
Re: 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 | |
Re: 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. | |
Re: 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(). | |
Re: 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. | |
Re: Sounds great. Where are you stuck? | |
Re: 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 | |
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? | |
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 … | |
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. … | |
Re: 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 … | |
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 … | |
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 … | |
Re: 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. | |
Re: 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 … | |
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 … | |
Re: > 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. … | |
The End.