461 Posted Topics
Re: Use a streamwriter and foreach through the data set? That's how I'd do it | |
Re: Sorry for the hi-jack, seems related, I decided to un-disable adverts earlier as felt bad for reducing advertising revenue. However I've since had my firefox crash 4 times on loading pages, the page loads visually and then I lose complete responsiveness of the tab, and so I've been forced to … | |
Re: I would say its both. The chemical addiction caused in the body I would say is more like a disease. But the lack of will power to pull the individual off the drug is more the character of the individual. My view anyhow. | |
Re: `Form1.Refresh()` Just redraws the form and its associated objects on screen. You will need to rerun `smtpDetails.Load(PATH);` to reload the XML document. This will be done in the code block that makes the admin form (dont have that in my inbox either so cant comment on the exact layout, it … | |
Re: Hi Mark, Any chance of getting this XML sheet? Or a stripped down version of it showing the part causing the issue? Edit: could you also disclose the variable type of `root` as it cannot be determined from code. | |
Re: Use the StreamWriter class. using System.IO; StreamWriter sw = new StreamWriter(FullFilePathHere); sw.WriteLine("I have written a line to the above specified file."); sw.Close(); | |
| |
Re: For clarification... You have say 5 picture boxes [] [] [] [] [] You load an image into one [x] [] [] [] [] and so you want the code to then automatically put the image into the next empty one? [x] [x] [] [] []? | |
This will sound like a homework assignment, it sort of is, but isn't. Anyway! I have created a simple address book application with a CSV backend. This utilises a Person class to store the contacts details and an AddressBook class storing the list of Person. Within the code we have … | |
Re: You use the IP address of the server in the data source of the connection string. See: - http://msdn.microsoft.com/en-us/library/ms175483(v=sql.105).aspx - http://stackoverflow.com/questions/4743799/connect-sql-deployed-database-over-the-internet Next time please google your question first, I hate just reciting two links within the top four entries on a google search. | |
Re: You have two syntax errors. ---------------------- Change `<VALUE><xsl:value-of select="$RecordName" /><xsl:text>.</xsl:text><xsl:value-of select="$currentID" />` to: `<VALUE><xsl:value-of select="result:num2dot($currentID)" /></VALUE>` This is because we do not need the `<xsl:value-of() />` to retrieve the variable value, simply referencing it is enough. ---------------------- Change `<xsl:if test="$currentID <= $endID">` to: `<xsl:if test="$currentID <= $endID">` This is because … | |
Re: [Here you go](http://lmgtfy.com/?q=open+source+.net+BPM) The above magical link will take you to a long list of pages. Through which you can look for examples of open source BMP software. | |
Re: public class Profile { public Profile() { } // method public string getMSG() { return "What do you look like"; } private string _eyecolor; public string eyeColor { // Missing this opening bracket for a property get { return _eyecolor; } set { if (!string.IsNullOrEmpty(value)) { _eyecolor = value.Substring(0, 1).ToUpper() … | |
Re: The DisplayMember and ValueMember settings of the combo-box allow you to make the display value different to the selected one. | |
Re: Most windows PC's ship with some version of the framework pre-installed as it is so common. So I would generally put up with the five minutes it takes to download a re-dist of the latest framework. The only way to do it without as Momerath said is [third party software](http://spoon.net/studio) … | |
Re: Once you select an attachment there is a background process as the document uploads to the server to be checked. You may notice an uploading message in your browser status bar. As that is what I get, once the document is uploaded options appear to place the document within the … | |
 Just wondering, is the attached an intentional visual display or a glitch? Reloading the window does not reset the bar to its normal position. Edit: This is still occuring while the web browser is maximised also. Edit2: Also the alignment to the last reply to topic is off. | |
Re: Semi-Duplicate post of http://www.daniweb.com/software-development/csharp/threads/435649/ask-ihtmlinputelement-setattributeonclick | |
![]() | Re: > If you still do not understand the voting system then I fear we will have to break out the picture book version of the explanation :) Gimme gimme gimme. |
I've noticed on two seperate occasions today that viewing my own profile page has seemingly crashed my Chrome browser. I'm running at under 25% of my hardware capabilities so its not that. Wondered if anything was done in the background that could be causing this? Chrome Version 22.0.1229.79 m Running … | |
Re: Im confused at what the issue is, as were the people on StackOverflow when you asked them the identical question. Please clarify. | |
Re: How is `position` determined? A variable passed to the XSLT? The position within the loop in XSLT? Etc? | |
Re: Once again... You do not open a connection to the database **before** the line calling the `dataadapter.Update()` and then closing it **after** the line calling it. It cant find a data table if it cant connect to the database now can it :) This method call requires manual opening and … | |
Re: Can we see said XML file and higlight what causes the issues? | |
Re: Mod, by earning the management teams respect and trust, along with other factors most likely. Admin, can't say I know. | |
![]() | Re: Hows about this: [Click](http://bit.ly/RC3lOr) You did ask for a LMGTFY link with this question... Though the login screen may occupy the entire screen, nothing is wrong with a box in the centre and a shaded colouring on the rest of the screen, it is a common approach. |
Re: I suggest you provide the error itself. Also run a debug on the academic.aspx page and check what the session value contains when it loads. | |
Re: Could you not base the progress bar off how many files have been copied? Max value = total file number progress value = amount copied? | |
Re: You simply pass the stylesheet the second file location as the parameter `InputFileTwo` and it will work when run on the primary file, it doesnt matter which way round you do it, however the XSLT will look at the attributes of the primary file to determine concatenation (nothing said otherwise … | |
Re: Stultske is right, mess with cracked programs and make sure your up the task of dealing with the consequences. | |
Re: The adaption to Deceptikon's response here would be to make a custom form that looks like a message box proving two buttons, 1 and 10, and then use `.ShowDialog()` on the customer form to display it modally, therefore forcing a response to the form before continuing. You could then assign … | |
Re: If `myObject.HandleString(Cards);` has a return value, `CardsNumber = myObject.HandleString(Cards);` will set CardsNumber to be that value. `Cards` would be modified if it is a form level variable and the method makes changes to the `Cards` variable within it. Can we see the method code and that might help find the … | |
Re: We might be able to help, **if** we can see the code we are dealing with. As `Console.Beep();` works fine for me. | |
Re: Well what have you got so far for this? Attempt it yourself and we will correct you when you run into trouble, specially when it sounds like homework. | |
Re: Most likely using the standard provided classes microsoft have. and writing SQL that doesnt select redundant data, will be the fastest way in my opinion. | |
The following suggestions will help the process of answering threads in the most efficient manner. 1. Do not hijack other member's threads, you will not get replies, instead start your own question. 2. What have you tried? We are not here to mock mistakes and showing effort made will make … | |
Re: You have two options to convert a string to an integer, convert and tryparse. string TempString = 0; int OutInt = Convert.ToInt32(TempString); // This will exception if not viable to convert to integer string TempString = 0; bool Success; int OutInt; Success = int.TryParse(TempString, out OutInt); // This will return … | |
Re: string update_sql = "UPDATE Customers SET Last_Name = '" + col2 + "', Type_Of_Trip = '" + col3 + "', Leaving_From = '" + col4 + "', Going_To = '" + col5 + "', Departing_Date = '" + col6 + "', Returning_Date = '" + col7 + "', Departing_Time = … | |
Re: using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Cassandra myObject = new Cassandra(); string a ="söt"; a = myObject.hejsan(a); System.Console.WriteLine(a); Console.ReadLine(); } } class Cassandra { public string hejsan(string value) { value +="Cassnadra"; return value; } } } Line 10, you need to assign a … | |
Re: public string[] CreateCards( string[] Cards) { Cards = new string[52]; for (int a = 0; a <= 51; a++) { if (a <= 12) { Cards[a] = " Hjärter " + (a+1).ToString(); } if (a > 12 && a <= 25) { Cards[a] = " Ruter " + (a-12).ToString(); } … | |
Re: I think they mean how do you know whos not telling the truth, though I see no reason to do so as it isnt a competition xD >Rollercoaster tycoon 3 Daaaaaamn used to love that series, so need to get it again for pc :D | |
Re: Well to get this exception you must be referring to the array location in some form (a loop or direct call) that goes past the length, therefore the index of what is causing the issue will be blatently obvious if you debug your code. `Array.Length` returns an integer representing how … | |
Re: This can be partially done using `dtSelectedColumns.Select();` However this doesnt use actual SQL to do the selection simply a filter criteria. For example `dtSelectedColumns.Select("Age > 20");` would be the same as running `Select * From dtSelectedColumns Where Age > 20`. Of course this assumes you have an age column in … | |
Re: <xsl:for-each select="nodename"> <xsl:sort select="substring(., 5, 4)" data-type="number" order="ascending"/> </xsl:for-each> That will work, we substring the node value to only look at the numerical part of it and then sort accordingly. | |
Re: The dataadapter wont update the database without you opening a connection to it prior to the update call and closing it after. If the datagrid isnt updating make a little method that unbinds its datasource, and then rebinds it again, then call that after you update the row. Thats how … | |
Re: You would need to use an XPath query to see if anything returns under the given name, then you can proceed from there with decision making logic | |
Re: <xs:element name="code"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="[a-zA-Z]{4}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> Try that. | |
![]() | Re: > If you choose the former, go ahead and join the forums whiners.com. I tried, the work proxy filters blocked me :( Must be a sign it was not meant to be! |
Re: I like the song list :) What happens if two songs have identical votes? Whats the sort done on then? | |
Re: Its not to do with the fact the table your making the new row from is referred to as `orders.cashCustomers` is it? Your then adding the row to `cashCustomers`. |
The End.