461 Posted Topics
Re: Sounds like your talking about XML here but nothing is clear at all. Can you state what your working with and show us the data and where the issue is occuring. Then we may be able to assist further. | |
Re: Hi Mark, You would need to set up the first list so that the `.SelectedItem` in list box (What you can physically see) is as you state above, but the `.SelectedValue` contains the actual ID value. Then the SQL can adjust too: `SELECT ID,QTY,Description,Supplier,Date,Cost,Sell from cashOrders INNER JOIN cashCustomers ON … | |
Just noticed this, but is it intentional that if a user is logged in, and happens to stumble upon a broken link ([ie. here](http://www.daniweb.com/members/957352/Imrude) (given for replication)), that the 404 page bar at the top acts as if you are not logged in and gives the option for member login? … | |
Re: So just the title info? Sorry the explanation confused me xD | |
Re: Not related to the question but: private bool GetValues() { bool isValid = true; if (isValid == false) { isValid = IsAllDigits(txtBoxEmpID.Text); MessageBox.Show("Please Enter Valid Digits for Employee Id"); } You will never hit the line `isValid = IsAllDigits(txtBoxEmpID.Text);` because your setting the variable to `true` in instanciation and then … | |
Re: I've also noticed firefox doesnt allow file uploading, the way round it is to edit the post after submission and then add the file in there. | |
Re: Specifically for `<tab>` Match: `(<tab>){2,20}` Replace: `<tab>` This will match occurances of `<tab>` between 2 and 20 in a row, can adjust as needed. Works on your provided example though. Input: `nesa<tab><tab>pera<tab><tab><tab><tab>nn<tab><tab><tab><tab><tab><tab>kkn` Output: `nesa<tab>pera<tab>nn<tab>kkn` | |
Re: Im with nmaillet on this one, I would *personally* prefer to have the validation fire on button click. This would allow use of errorproviders locally to each textbox to state which is causing issue. **Also** the suggestion of using the leave event forces the user to complete one textbox at … | |
Re: Could you not store which image is selected in a Session? and then pull up the correct image on the next page using the session value? (don't do much ASP.Net work so cant remember if this works) | |
I bet it is most likely only myself that keeps falling into this. Its noticed to me that more old threads seem to be ressed for no reason by people and I have a habit of not looking at when they were posted :D Would it not be easier to … | |
Re: See my response on here: http://www.daniweb.com/software-development/csharp/threads/432707/help-with-linking-ids-to-show-in-listview-below It is a similar question. Listboxes have the ability to store different values underlying to what the user sees and utilising this will make the retrieving of data alot easier. | |
Re: > plz do suggest ne good topic for final year project in .net . Right now i am a beginner in c# . @'Stein Please do suggest any good topic for my final year project in .Net, right now I am a beginner in C#. @Martand All of what Stein … | |
Re: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes" method ="text"/> <xsl:strip-space elements="*"/> <xsl:template match ="root"> <xsl:apply-templates select="x/y"> <!-- Year --> <xsl:sort select="substring(date, 1, 4)" data-type="number" order="descending"/> <!-- Month --> <xsl:sort select="substring(date, 6, 2)" data-type="number" order="descending"/> <!-- Day --> <xsl:sort select="substring(date, 9, 2)" data-type="number" order="descending"/> <!-- Hour --> <xsl:sort select="substring(date, 12, 2)" data-type="number" … | |
Re: Ok firstly, With the information contained within the <Para> tag, is that always in that format (for demonstration of point are the parts in caps lock always there?) 'NameX AND NameY ARE EQUAL CONTRIBUTORS' because if they are not ripping variable values from a text string isnt fun. | |
Re: Two questions. 1. Will the dates always be so neatly ordered, ie. all four entries for the same date together? 2. Will there always be the four rate entries or can it vary? | |
Re: Change the value in the dataset it is bound too, and then update the datagrid. | |
Re: Browse DaniWeb excessively often, play League of Legends/Smite, go to the gym, watch tv, wash the car or play with the cat :) Note first entry on list, my continuous availability monday -> friday 9-5. spot the correlation | |
Re: In your XSD... change all the `xs:` to `xsl:` and add a reference to `xmlns:xsl="http://www.w3.org/1999/XSL/Transform"` Your missing that reference and so its saying your referencing a prefix `xs` which does not exist anywhere. The above is a general reference that I have in ALL of my XSLT files. | |
Re: So what actually remains to be done? As you've solved some of your own problems fine :) You dont need to change anything about the element re-ordering XSL thats how I would of done it. | |
Re: Semi-double post question, see [here](http://www.daniweb.com/software-development/csharp/threads/431436/how-to-know-the-line-starting-point-x1y1-and-ending-pointx2y2) | |
Re: Unfortunately I am little help on the Java aspect, I will point you to these sites though: - http://www.roseindia.net/xml/dom/CreatXMLFile.shtml - http://t.genedavis.com/library/xml/java_dom_xml_creation.jsp They should help with the XML generation part. I can be of more help when you get round to the XSLT :) | |
Re: @nmaillet, It was probably intended as a code snippet, even then it is very trivial to most of the forums, the only completely non basic functionality is the date format masking and that doesnt take much. Of course its worth remembering `Console.WriteLine(DateTime.Now.ToShortDateString());` Does exactly the same thing as this, but … | |
Re: Linked to and responded [here](http://www.daniweb.com/software-development/xml-xslt-and-xpath/threads/430322/csv-xml) | |
Re: When I first learnt C# I used [HomeAndLearn](http://www.homeandlearn.co.uk/csharp/csharp.html) alot as they have quite an extensive c# guide. It will get you going the right way hopefully :) | |
Re: Any error messages? What doesn't work. Please don't just give us a code chunk. | |
Re: static void Main(string[] args) { string fileName; string destFile; string sourcePath = @"E:\Source"; string targetPath = @"E:\Destination"; // To copy all the files in one directory to another directory. string[] files = System.IO.Directory.GetFiles(sourcePath); // Copy the files and overwrite destination files if they already exist. int skipNum = 1; //as … | |
Re: Random Rnd = new Random() Rnd.Next(); //Generates a random non-negative number Rnd.Next(1000); //Generates a random non-negative number less than specified number Rnd.Next(100, 1000); //Generates a random number between the specified range See here for more on the Random class: http://msdn.microsoft.com/en-us/library/system.random.aspx In your case you will be using `Rnd.Next(MinNumber, MaxNumber);` | |
Re: Are you getting any errors? If so: - what is the error? - what line does it occur? It is quite hard to run code in your head and generate errors that you have no clue about. | |
Re: Does this 'editbutton' load the second form, or is it already open? | |
Re: Sounds like the notorious redirect virus. [See Here](http://deletemalware.blogspot.co.uk/2010/02/remove-google-redirect-virus.html) edit: [And Here](http://www.bleepingcomputer.com/virus-removal/remove-tdss-tdl3-alureon-rootkit-using-tdsskiller) | |
Re: Sounds like a college assignment. What have you done so far? | |
Re: The main question is are you going to mask the input to force that format, or simply tell them to do it and then validate it? Masking is alot harder. | |
Re: It is worth noting if you are not running a multi-threaded application the load bar will not update normally as the form will 'freeze' until the whole thread has run, ie. bar will jump from 0% to 100%. | |
Re: What you actually mean: Is a property faster than a method. In the provided code it wont really matter as your doing such miniscule operations it is probably hard to split the difference in performance. Plus I doubt there is one as both are very simple operations. public string GetString() … | |
Say I have the below example, the syntax is based off constuctor chaining for clarity (and my cluelessness). public static void Feed() : this("Unknown"){} public static void Feed(string FoodType) { if (Food != "Unknown") Console.WriteLine("{0} eats some {1}.", Name, Food); } How would I actually implement this for methods? It … | |
Re: Might be worth moving this to mobile development as it seems more related. | |
Re: What language? As this is more an issue for that specific forum than an XML one. | |
I am currently running a live 'in-memory' XSLT transformation using the following code XmlDocument XmlDoc = new XmlDocument(); XmlDoc.LoadXml(DS.GetXml()); XslCompiledTransform XsltTranformation = new XslCompiledTransform(); XsltTranformation.Load(@"C:\Users\maskew\Desktop\XSLTMapping.xsl"); Stream XmlStream = new MemoryStream(); XmlDoc.Save(XmlStream); //Stream is still blank after this line XmlReader XmlRdr = XmlReader.Create(XmlStream); MemoryStream stm = new MemoryStream(); XsltTranformation.Transform(XmlRdr, null, stm); … | |
Re: Could you try, a 'contains' condition? This will allow you to match specific strings within the node. Not sure how your implementing the condition so cant suggest code until I know that. But contains should do the job :) | |
Re: I would personally think that the end of the number wouldnt be assumed as a space. Perhaps you could store the value of > <xsl:value-of select='translate(translate(format-number(ns:FormatNoDollar4(ns:ReturnTotalUndesignated()),"0.00"),"-","(")," ",")")'/> into a local variable instead and then use a concatenation of the variable and `")"` to put the final bracket on? Its a … | |
Re: [Try Here](http://social.msdn.microsoft.com/Forums/en-GB/winforms/thread/6bc7ceca-4591-42ba-a483-b313d3226ba0) | |
I think it would be interesting to see what appeals to most across this forum in terms of desktop wallpapers :) My current: As im a rediculous cat lover.  | |
Re: > 1 - Is there any way to post directly to a person like sending mail to a person so that that person will get notification about that post? You can send private messages to individuals, using the `Private Messages` link in purple bar at top, which they will receive … | |
Re: Are you using WinForms or does the timer need to be instantiated programatically? | |
Re: In reply to #1 - Do you mean to do 1 + 0.5 - 0.33 + 0.25? or 1 + (half of total) - (third of total) + (quarter of total)? It isnt very clear to me. In reply to #2 [Majestics beat me to it while writing :(] - … | |
Re: I did it using the following: string sourcePath = @"E:\Source"; string targetPath = @"E:\Destination"; StreamReader strmReader = new StreamReader(@"E:\Source\videoID.txt"); string videoIDs = strmReader.ReadToEnd(); videoIDs = Regex.Replace(videoIDs, "\\r\\n", ","); string[] individualVidIDs = videoIDs.Split(','); foreach (string videoID in individualVidIDs) { Console.WriteLine("Checking if video {0} exists...", videoID); string tempFilePath = sourcePath + "\\" … | |
Re: href=".*" Will match > href="/ccm/do/docket?county=65&data=eedd78d10fd9da341e05b25b48b62013" [Very useful regex builder](http://gskinner.com/RegExr/) | |
Re: @Abby2012 please make a new thread instead of hi-jacking this dead one and someone will help. |
The End.