461 Posted Topics

Member Avatar for nirmaladevi.rajagopal

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.

Member Avatar for Mike Askew
0
32
Member Avatar for sundog1

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 …

Member Avatar for Mike Askew
0
518
Member Avatar for Mike Askew

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? …

Member Avatar for Mike Askew
0
212
Member Avatar for nesa24casa
Member Avatar for nesa24casa
0
189
Member Avatar for reach_ay

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 …

Member Avatar for reach_ay
0
120
Member Avatar for Reverend Jim

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.

Member Avatar for Mike Askew
0
267
Member Avatar for nesa24casa

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`

Member Avatar for Mike Askew
0
174
Member Avatar for np complete
Member Avatar for zeroliken
0
90
Member Avatar for mcgarcia
Member Avatar for king03

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 …

Member Avatar for nmaillet
0
231
Member Avatar for Gaving30

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)

Member Avatar for Gaving30
0
820
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
167
Member Avatar for sundog1

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.

Member Avatar for Mike Askew
0
191
Member Avatar for martand

> 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 …

Member Avatar for Mike Askew
0
152
Member Avatar for sritech97

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

Member Avatar for Mike Askew
0
192
Member Avatar for WebStone

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.

Member Avatar for Mike Askew
0
131
Member Avatar for lokesh.r.kandula

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?

Member Avatar for lokesh.r.kandula
0
370
Member Avatar for l_rankov
Member Avatar for jasonrle0332
0
11K
Member Avatar for PrimeOutsourcin

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

Member Avatar for Ene Uran
0
232
Member Avatar for biblemdkeid

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.

Member Avatar for Mike Askew
0
2K
Member Avatar for abbelylee

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.

Member Avatar for Mike Askew
0
212
Member Avatar for Mahesh57

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)

Member Avatar for Mike Askew
0
160
Member Avatar for abbelylee

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 :)

Member Avatar for abbelylee
0
327
Member Avatar for Chatthanz

@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 …

Member Avatar for Mike Askew
0
151
Member Avatar for abbelylee

Linked to and responded [here](http://www.daniweb.com/software-development/xml-xslt-and-xpath/threads/430322/csv-xml)

Member Avatar for Mike Askew
0
223
Member Avatar for mcuk

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 :)

Member Avatar for abhishekde.nasa
0
116
Member Avatar for bhawnanarang91
Member Avatar for Momerath
0
204
Member Avatar for jumboora

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 …

Member Avatar for jumboora
0
165
Member Avatar for bodazhao

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);`

Member Avatar for Mike Askew
0
198
Member Avatar for emokidzz

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.

Member Avatar for Mike Askew
0
297
Member Avatar for l_rankov
Member Avatar for Q8iEnG

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)

Member Avatar for Q8iEnG
0
642
Member Avatar for stevG
Member Avatar for Mike Askew
0
40
Member Avatar for hackit

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.

Member Avatar for Mike Askew
0
2K
Member Avatar for manhthaodn

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%.

Member Avatar for Mike Askew
0
602
Member Avatar for Donnovan

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() …

Member Avatar for Donnovan
0
137
Member Avatar for Mike Askew

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 …

Member Avatar for Mike Askew
0
145
Member Avatar for riahc3
Member Avatar for Mike Askew
0
56
Member Avatar for abbelylee

What language? As this is more an issue for that specific forum than an XML one.

Member Avatar for Mike Askew
0
70
Member Avatar for Mike Askew

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); …

Member Avatar for Mike Askew
0
585
Member Avatar for crazykoolit

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 :)

Member Avatar for Mike Askew
0
259
Member Avatar for Oracan

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 …

Member Avatar for gilltech
0
182
Member Avatar for M.Waqas Aslam

[Try Here](http://social.msdn.microsoft.com/Forums/en-GB/winforms/thread/6bc7ceca-4591-42ba-a483-b313d3226ba0)

Member Avatar for M.Waqas Aslam
0
96
Member Avatar for Mike Askew

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. ![wallpaper-323276](/attachments/large/3/wallpaper-323276.png "wallpaper-323276")

Member Avatar for Mike Askew
0
115
Member Avatar for Perry31

> 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 …

Member Avatar for WaltP
0
213
Member Avatar for pallas_athena

Are you using WinForms or does the timer need to be instantiated programatically?

Member Avatar for M.Waqas Aslam
0
114
Member Avatar for thechampp

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 :(] - …

Member Avatar for thewebhostingdi
0
166
Member Avatar for jumboora

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 + "\\" …

Member Avatar for Mike Askew
0
190
Member Avatar for notconfirmed

href=".*" Will match > href="/ccm/do/docket?county=65&amp;data=eedd78d10fd9da341e05b25b48b62013" [Very useful regex builder](http://gskinner.com/RegExr/)

Member Avatar for Mike Askew
0
1K
Member Avatar for bestonearth

@Abby2012 please make a new thread instead of hi-jacking this dead one and someone will help.

Member Avatar for Mike Askew
-1
206

The End.